Comment 0 for bug 637114

Revision history for this message
Carlos (carlos-abalde) wrote :

Binary package hint: memcached

* Ubuntu release.

  Description: Ubuntu 10.04 LTS
  Release: 10.04

* How to reproduce the bug?

Send several large multiget requests to a Ubuntu 1.4.2 Memcached server, and you'll notice that some of them will break, and other will return only a subset of the requested keys. You can use the following PHP test code:

$m = new Memcached();
$m->addServer('localhost', 11211);
$keys = array();
for ($i=0; $i<50000; $i++) {
  $key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx::foo::' . $i;
  $keys[] = $key;
}
$result = $m->getMulti($keys, $cas);
var_dump($result, $cas);
var_dump($m->getResultCode());

* How to fix de bug?

Rebuilding the server without the fix-issue-102-segfault & fix-ubuntu-ftbfs patches fixes that bug for us.