=dev-libs/libmemcached-1.0.18-r2 segfaults with the OPT_LIBKETAMA_COMPATIBLE enabled and a call to addServer, then resetServerList and another call to addServer.
Reproducible: Always
Steps to Reproduce:
Example of how to reproduce in php (using pecl-memcached):
=dev-libs/ libmemcached- 1.0.18- r2 segfaults with the OPT_LIBKETAMA_ COMPATIBLE enabled and a call to addServer, then resetServerList and another call to addServer.
Reproducible: Always
Steps to Reproduce:
Example of how to reproduce in php (using pecl-memcached):
<?php Memcached: :OPT_LIBKETAMA_ COMPATIBLE, true);
$host = 'localhost';
$port = '11211';
$weight = null;
$m = new Memcached('test');
$m->setOption(
var_dump( $m->addServer( $host, $port, $weight)); $m->resetServer List()) ; $m->addServer( $host, $port, $weight)); $m->getServerLi st());
var_dump(
var_dump(
var_dump(
?>
Actual Results:
segfault
Expected Results:
A call to addServer after resetServerList should not cause a segfault