Public bug reported: On oneiric php-memcached version 1.0.2-1build1
rusp@php2:~/src$ cat memcached_test.php <?php $mc = new Memcached(); $mc->addServer(localhost, 11211); $mc->set("hi", "hello world"); $mc->getServerByKey("test"); rusp@php2:~/src$ php memcached_test.php Segmentation fault ... EDIT: Insert $mc->get("hi") .... rusp@php2:~/src$ cat memcached_test.php <?php $mc = new Memcached(); $mc->addServer("a.php2.dev.tv2net.dk", 11211); $mc->set("hi", "hello world\n"); echo $mc->get("hi"); $mc->getServerByKey("test"); rusp@php2:~/src$ php memcached_test.php hello world *** glibc detected *** php: free(): invalid pointer: 0x00007f33e01fcf08 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x75676)[0x7f33dfef7676] /lib64/libc.so.6(freeaddrinfo+0x20)[0x7f33dff4ac80] /usr/lib64/libmemcached.so.7(memcached_server_list_free+0x2d)[0x7f33d1bc4f6d] /usr/lib64/libmemcached.so.7(+0xf130)[0x7f33d1bc3130] /opt/php52/lib/php/20060613/memcached.so(+0x5cb2)[0x7f33d1ddacb2] php(zend_objects_store_del_ref_by_handle+0x215)[0x5fa9b5] php(zend_objects_store_del_ref+0xf)[0x5fa9cf] php(_zval_ptr_dtor+0x4d)[0x5cec6d] php[0x5e64a5] php(zend_hash_reverse_apply+0x59)[0x5e65b9] php(shutdown_destructors+0x65)[0x5cfb55] php(zend_call_destructors+0x34)[0x5dc234] php(php_request_shutdown+0x305)[0x5992e5] php(main+0x83c)[0x64f8fc] /lib64/libc.so.6(__libc_start_main+0xfd)[0x7f33dfea0c5d] php[0x43d0a9] ======= Memory map: ======== 00400000-00757000 r-xp 00000000 fd:02 1704088 /opt/php52/bin/php 00957000-009a9000 rw-p 00357000 fd:02 1704088 /opt/php52/bin/php 009a9000-009b3000 rw-p 00000000 00:00 0 00e10000-0119d000 rw-p 00000000 00:00 0 [heap] ... SNIP ** Affects: php-memcached (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/922053 Title: set key then getServerByKey causes segmentation fault To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php-memcached/+bug/922053/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs