php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58836 segfault on HEAD requests
Submitted: 2009-08-27 10:44 UTC Modified: 2013-02-18 00:35 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: oren at stanzapub dot com Assigned:
Status: No Feedback Package: memcache (PECL)
PHP Version: 5.2.4 OS: Ubuntu 8.04, CentOS 5.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: oren at stanzapub dot com
New email:
PHP Version: OS:

 

 [2009-08-27 10:44 UTC] oren at stanzapub dot com
Description:
------------
When using memcache-2.2.5, and Wordpress Batcache extension, any HEAD request causes PHP to crash and apache to segfault. GET/POST requests work fine. Happens on Ubuntu 8.04 and CentOS 5.2 at least.

When installing memcache-3.0.4, everything works fine.


Here is a backtrace:
#0  0xb748c317 in _zend_hash_add_or_update () from /usr/lib/apache2/modules/libphp5.so
#1  0xb7444cbd in php_register_variable_ex () from /usr/lib/apache2/modules/libphp5.so
#2  0xb72b69a8 in ?? () from /usr/lib/apache2/modules/libphp5.so
#3  0xb743e88a in sapi_getenv () from /usr/lib/apache2/modules/libphp5.so
#4  0xb744a2f0 in ?? () from /usr/lib/apache2/modules/libphp5.so
#5  0xb7462d88 in ?? () from /usr/lib/apache2/modules/libphp5.so
#6  0xb748a94a in zend_hash_destroy () from /usr/lib/apache2/modules/libphp5.so
#7  0xb749b5c3 in zend_object_std_dtor () from /usr/lib/apache2/modules/libphp5.so
#8  0xb749b602 in zend_objects_free_object_storage () from /usr/lib/apache2/modules/libphp5.so
#9  0xb749ecfb in zend_objects_store_del_ref_by_handle () from /usr/lib/apache2/modules/libphp5.so
#10 0xb749ed48 in zend_objects_store_del_ref () from /usr/lib/apache2/modules/libphp5.so
#11 0xb747f341 in _zval_dtor_func () from /usr/lib/apache2/modules/libphp5.so
#12 0xb74721e8 in _zval_ptr_dtor () from /usr/lib/apache2/modules/libphp5.so
#13 0xb6f495b0 in mmc_server_callback_dtor (callback=0x858e8b8) at /tmp/pear/cache/memcache-2.2.5/memcache.c:410
#14 0xb6f495e4 in mmc_server_sleep (mmc=0x8473458) at /tmp/pear/cache/memcache-2.2.5/memcache.c:434
#15 0xb6f4989a in mmc_pool_free (pool=0x8566000) at /tmp/pear/cache/memcache-2.2.5/memcache.c:676
#16 0xb6f4992f in _mmc_pool_list_dtor (rsrc=0x858e3d4) at /tmp/pear/cache/memcache-2.2.5/memcache.c:367
#17 0xb748d863 in list_entry_destructor () from /usr/lib/apache2/modules/libphp5.so
#18 0xb748ba85 in zend_hash_del_key_or_index () from /usr/lib/apache2/modules/libphp5.so
#19 0xb748dafa in _zend_list_delete () from /usr/lib/apache2/modules/libphp5.so
#20 0xb747f30d in _zval_dtor_func () from /usr/lib/apache2/modules/libphp5.so
#21 0xb74721e8 in _zval_ptr_dtor () from /usr/lib/apache2/modules/libphp5.so
#22 0xb748a924 in zend_hash_destroy () from /usr/lib/apache2/modules/libphp5.so
#23 0xb749b5c3 in zend_object_std_dtor () from /usr/lib/apache2/modules/libphp5.so
#24 0xb749b602 in zend_objects_free_object_storage () from /usr/lib/apache2/modules/libphp5.so
#25 0xb749ecfb in zend_objects_store_del_ref_by_handle () from /usr/lib/apache2/modules/libphp5.so
#26 0xb749ed48 in zend_objects_store_del_ref () from /usr/lib/apache2/modules/libphp5.so
#27 0xb747f341 in _zval_dtor_func () from /usr/lib/apache2/modules/libphp5.so
#28 0xb74721e8 in _zval_ptr_dtor () from /usr/lib/apache2/modules/libphp5.so
#29 0xb748a924 in zend_hash_destroy () from /usr/lib/apache2/modules/libphp5.so
#30 0xb747f36d in _zval_dtor_func () from /usr/lib/apache2/modules/libphp5.so
#31 0xb74721e8 in _zval_ptr_dtor () from /usr/lib/apache2/modules/libphp5.so
#32 0xb748a924 in zend_hash_destroy () from /usr/lib/apache2/modules/libphp5.so
#33 0xb749b5c3 in zend_object_std_dtor () from /usr/lib/apache2/modules/libphp5.so
#34 0xb749b602 in zend_objects_free_object_storage () from /usr/lib/apache2/modules/libphp5.so
#35 0xb749ecfb in zend_objects_store_del_ref_by_handle () from /usr/lib/apache2/modules/libphp5.so
#36 0xb749ed48 in zend_objects_store_del_ref () from /usr/lib/apache2/modules/libphp5.so
#37 0xb747f341 in _zval_dtor_func () from /usr/lib/apache2/modules/libphp5.so
#38 0xb74721e8 in _zval_ptr_dtor () from /usr/lib/apache2/modules/libphp5.so
#39 0xb748a924 in zend_hash_destroy () from /usr/lib/apache2/modules/libphp5.so
#40 0xb747f36d in _zval_dtor_func () from /usr/lib/apache2/modules/libphp5.so
#41 0xb74721e8 in _zval_ptr_dtor () from /usr/lib/apache2/modules/libphp5.so
#42 0xb6f49571 in mmc_server_callback_dtor (callback=0x8567894) at /tmp/pear/cache/memcache-2.2.5/memcache.c:412
#43 0xb6f495e4 in mmc_server_sleep (mmc=0x8473458) at /tmp/pear/cache/memcache-2.2.5/memcache.c:434
#44 0xb6f4989a in mmc_pool_free (pool=0x841f924) at /tmp/pear/cache/memcache-2.2.5/memcache.c:676
#45 0xb6f4992f in _mmc_pool_list_dtor (rsrc=0x841f9c4) at /tmp/pear/cache/memcache-2.2.5/memcache.c:367
#46 0xb748d863 in list_entry_destructor () from /usr/lib/apache2/modules/libphp5.so
#47 0xb748ba85 in zend_hash_del_key_or_index () from /usr/lib/apache2/modules/libphp5.so
#48 0xb748dafa in _zend_list_delete () from /usr/lib/apache2/modules/libphp5.so
#49 0xb747f30d in _zval_dtor_func () from /usr/lib/apache2/modules/libphp5.so
#50 0xb74721e8 in _zval_ptr_dtor () from /usr/lib/apache2/modules/libphp5.so
#51 0xb748a924 in zend_hash_destroy () from /usr/lib/apache2/modules/libphp5.so
#52 0xb749b5c3 in zend_object_std_dtor () from /usr/lib/apache2/modules/libphp5.so
#53 0xb749b602 in zend_objects_free_object_storage () from /usr/lib/apache2/modules/libphp5.so
#54 0xb749ecfb in zend_objects_store_del_ref_by_handle () from /usr/lib/apache2/modules/libphp5.so
#55 0xb749ed48 in zend_objects_store_del_ref () from /usr/lib/apache2/modules/libphp5.so
#56 0xb747f341 in _zval_dtor_func () from /usr/lib/apache2/modules/libphp5.so
#57 0xb74721e8 in _zval_ptr_dtor () from /usr/lib/apache2/modules/libphp5.so
#58 0xb748a924 in zend_hash_destroy () from /usr/lib/apache2/modules/libphp5.so
#59 0xb747f36d in _zval_dtor_func () from /usr/lib/apache2/modules/libphp5.so
#60 0xb74721e8 in _zval_ptr_dtor () from /usr/lib/apache2/modules/libphp5.so
#61 0xb748a924 in zend_hash_destroy () from /usr/lib/apache2/modules/libphp5.so
#62 0xb749b5c3 in zend_object_std_dtor () from /usr/lib/apache2/modules/libphp5.so
#63 0xb749b602 in zend_objects_free_object_storage () from /usr/lib/apache2/modules/libphp5.so
#64 0xb749e7d0 in zend_objects_store_free_object_storage () from /usr/lib/apache2/modules/libphp5.so
#65 0xb7472733 in shutdown_executor () from /usr/lib/apache2/modules/libphp5.so
#66 0xb747f9ef in zend_deactivate () from /usr/lib/apache2/modules/libphp5.so
#67 0xb7435ffa in php_request_shutdown () from /usr/lib/apache2/modules/libphp5.so
#68 0xb75053d7 in ?? () from /usr/lib/apache2/modules/libphp5.so
#69 0x08079529 in ap_run_handler ()
#70 0x0807c937 in ap_invoke_handler ()
#71 0x08089fa0 in ap_process_request ()
#72 0x080872ab in ?? ()
#73 0x08080b29 in ap_run_process_connection ()
#74 0x0808e3c9 in ?? ()
#75 0x0808e673 in ?? ()
#76 0x0808f450 in ap_mpm_run ()
#77 0x08066dd5 in main ()



Reproduce code:
---------------
http://svn.wp-plugins.org/memcached/trunk/object-cache.php
http://downloads.wordpress.org/plugin/batcache.1.0.zip


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-28 09:46 UTC] pierre dot php at gmail dot com
Please try using SVN trunk. If the problem persists, can you provide a small reproduce script please? A 10 lines script without WP as depedency :)
 [2011-01-30 13:37 UTC] dissoman at gmail dot com
I can also confirm the same problem with the same setup. Dont 
know how to reproduce yet
 [2011-09-12 19:56 UTC] info at e-awamori dot co dot jp
http://www.pricechampion.net/ accutane 8]]] http://www.unamedic.net/ insurance and propecia uykbew
 [2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 04 11:01:28 2024 UTC