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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 01:01:33 2025 UTC