From:             don dot schulzo at gmail dot com
Operating system: linux
PHP version:      5CVS-2005-09-23 (snap)
PHP Bug Type:     Reproducible crash
Bug description:  libxml segfault

Description:
------------
libxml segfaults but i was unable to locate the "bad" piece of code,
here's the backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 20114)]
php_libxml_node_free_list (node=0x83a812c)
    at /root/src/php5-200509220630/ext/libxml/libxml.c:207
207                             switch (node->type) {
(gdb) bt
#0  php_libxml_node_free_list (node=0x83a812c)
    at /root/src/php5-200509220630/ext/libxml/libxml.c:207
#1  0xb77bc6c9 in php_libxml_node_free_list (node=0x83a812c)
    at /root/src/php5-200509220630/ext/libxml/libxml.c:223
#2  0xb77bc74d in php_libxml_node_free_resource (node=0x83e9d40)
    at /root/src/php5-200509220630/ext/libxml/libxml.c:936
#3  0xb77bc7ef in php_libxml_node_decrement_resource (object=0x83a5904)
    at /root/src/php5-200509220630/ext/libxml/libxml.c:970
#4  0xb77d5188 in dom_objects_free_storage (object=0x83a5904)
    at /root/src/php5-200509220630/ext/dom/php_dom.c:902
#5  0xb78e37fc in zend_objects_store_del_ref (zobject=0xb77d5110)
    at /root/src/php5-200509220630/Zend/zend_objects_API.c:161
#6  0xb78bf66f in _zval_ptr_dtor (zval_ptr=0x83a5a58) at
zend_variables.h:35
#7  0xb78d4ab8 in zend_hash_destroy (ht=0x83a4ccc)
    at /root/src/php5-200509220630/Zend/zend_hash.c:519
#8  0xb78e0c35 in zend_objects_free_object_storage (object=0x83e5d04)
    at /root/src/php5-200509220630/Zend/zend_objects.c:91
#9  0xb78e37fc in zend_objects_store_del_ref (zobject=0xb78e0c20)
    at /root/src/php5-200509220630/Zend/zend_objects_API.c:161
#10 0xb78bf66f in _zval_ptr_dtor (zval_ptr=0x83e9d98) at
zend_variables.h:35
#11 0xb78d4ab8 in zend_hash_destroy (ht=0x82fb7f4)
    at /root/src/php5-200509220630/Zend/zend_hash.c:519
#12 0xb78e0c35 in zend_objects_free_object_storage (object=0x82f5a3c)
    at /root/src/php5-200509220630/Zend/zend_objects.c:91
#13 0xb78e37fc in zend_objects_store_del_ref (zobject=0xb78e0c20)
    at /root/src/php5-200509220630/Zend/zend_objects_API.c:161
#14 0xb78bf66f in _zval_ptr_dtor (zval_ptr=0x82fb028) at
zend_variables.h:35
#15 0xb78d4ab8 in zend_hash_destroy (ht=0x82fb82c)
    at /root/src/php5-200509220630/Zend/zend_hash.c:519
---Type <return> to continue, or q <return> to quit---
#16 0xb78cabd9 in _zval_dtor_func (zvalue=0x82f963c)
    at /root/src/php5-200509220630/Zend/zend_variables.c:43
#17 0xb78bf66f in _zval_ptr_dtor (zval_ptr=0x82f5938) at
zend_variables.h:35
#18 0xb78d4ab8 in zend_hash_destroy (ht=0x835f64c)
    at /root/src/php5-200509220630/Zend/zend_hash.c:519
#19 0xb77d5125 in dom_objects_free_storage (object=0x82ed08c)
    at /root/src/php5-200509220630/ext/dom/php_dom.c:897
#20 0xb78e3679 in zend_objects_store_free_object_storage
(objects=0xb7a09b3c)
    at /root/src/php5-200509220630/Zend/zend_objects_API.c:82
#21 0xb78bfe79 in shutdown_executor ()
    at /root/src/php5-200509220630/Zend/zend_execute_API.c:272
#22 0xb78cbeef in zend_deactivate ()
    at /root/src/php5-200509220630/Zend/zend.c:832
#23 0xb78909e5 in php_request_shutdown (dummy=0x0)
    at /root/src/php5-200509220630/main/main.c:1241
#24 0xb795ce24 in php_handler (r=0x8275f50)
    at /root/src/php5-200509220630/sapi/apache2handler/sapi_apache2.c:443
#25 0x08068aa5 in ap_run_handler ()
#26 0x08068f1c in ap_invoke_handler ()
#27 0x08065ce8 in ap_process_request ()
#28 0x08060ec8 in _start ()
#29 0x08275f50 in ?? ()
#30 0x00000004 in ?? ()
#31 0x08275f50 in ?? ()
#32 0x08072bbc in ap_run_pre_connection ()
#33 0x08072a75 in ap_run_process_connection ()
#34 0x08066c6b in ap_graceful_stop_signalled ()
#35 0x08066e69 in ap_graceful_stop_signalled ()
#36 0x08066f70 in ap_graceful_stop_signalled ()
---Type <return> to continue, or q <return> to quit---~
#37 0x080677ad in ap_mpm_run ()
#38 0x0806e090 in main ()


-- 
Edit bug report at http://bugs.php.net/?id=34610&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34610&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34610&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34610&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34610&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34610&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34610&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34610&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34610&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34610&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34610&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34610&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34610&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34610&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34610&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34610&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34610&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34610&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34610&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34610&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34610&r=mysqlcfg

Reply via email to