php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64134 segmentation fault on high network latency and multi-get with only one item
Submitted: 2013-02-02 16:39 UTC Modified: 2013-02-04 16:08 UTC
From: rene dot kerner at trivago dot com Assigned:
Status: Closed Package: memcache (PECL)
PHP Version: Irrelevant OS: Ubuntu 12.04_2, freeBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rene dot kerner at trivago dot com
New email:
PHP Version: OS:

 

 [2013-02-02 16:39 UTC] rene dot kerner at trivago dot com
Description:
------------
On our production servers from time to 
time we got segmentation faults. On 
further investigation we found out 
that the problem was a not or late 
answer of the memcache server or 
another kind of network/request 
latency.

to simulate network latency:
http://www.linuxfoundation.org/
collaborate/workgroups/networking/
netem



Test script:
---------------
<?php
// ...
$keys = array ( 123 );

// set incoming traffic latency to 1200ms, memcache standard timeout is 1s = 1000 ms
exec("tc qdisc add dev ifb0 root netem delay 1200ms");

$result = $memcache->get($keys);

// remove network latency
exec("tc qdisc del dev ifb0 root netem");

?>

Expected result:
----------------
No Segmentation fault

Actual result:
--------------
Segmentation fault

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-02-02 16:47 UTC] rene dot kerner at trivago dot com
Test Script should be corrected, the 
keys array in our test case was 
something like:

$keys = array ( "item::123" );

or something, an array with only one 
item, but that should not make any 
difference to my reported testcase.
 [2013-02-04 16:08 UTC] rene dot kerner at trivago dot com
sorry, bad error description.
will close this report and open a better, new one.
 [2013-02-04 16:08 UTC] rene dot kerner at trivago dot com
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 20:01:31 2024 UTC