|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-08-25 17:33 UTC] sergiu dot ionescu at gmail dot com
Description:
------------
I randomly get segmentation faults while running cli scripts.
The fault occurs at the end of the script run and happens in more than 50% of the cases.
Expected result:
----------------
No seg fault.
Actual result:
--------------
syslog: [24766.653698] php[8084]: segfault at 30 ip 00000000006b7241 sp 00007fff508cc110 error 4 in php5[400000+70e000]
The GDB backtrace is:
#0 0x00000000006b7241 in ?? ()
#1 0x00000000006b771b in ?? ()
#2 0x00000000006a3a38 in zend_hash_destroy ()
#3 0x0000000000696a3f in _zval_dtor_func ()
#4 0x000000000068aa9d in _zval_ptr_dtor ()
#5 0x00000000006a3a38 in zend_hash_destroy ()
#6 0x0000000000696a3f in _zval_dtor_func ()
#7 0x000000000068aa9d in _zval_ptr_dtor ()
#8 0x00000000006a3a38 in zend_hash_destroy ()
#9 0x0000000000696a3f in _zval_dtor_func ()
#10 0x000000000068aa9d in _zval_ptr_dtor ()
#11 0x00000000006a3a38 in zend_hash_destroy ()
#12 0x00000000006b8a89 in zend_object_std_dtor ()
#13 0x00000000006b8aa9 in zend_objects_free_object_storage ()
#14 0x00000000006bc16c in zend_objects_store_free_object_storage ()
#15 0x000000000068ae95 in ?? ()
#16 0x0000000000697782 in ?? ()
#17 0x0000000000643165 in php_request_shutdown ()
#18 0x00000000007273e4 in ?? ()
#19 0x00007ffff52a5c4d in __libc_start_main (main=<value optimized out>,
argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>,
fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fffffffe6a8)
at libc-start.c:226
#20 0x000000000042c6f9 in _start ()
The php version i am running is PHP 5.3.2-1ubuntu4.17 with Suhosin-Patch (cli) (built: Jun 19 2012 03:21:35).
What is your recommendation.
Thanks.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 05:00:01 2025 UTC |
After updating all the extensions i still get the same thing. I extra detail i can provide is that i occasionally get zend_mm_heap corrupted instead of segmentation fault and the line where the segfault occurs is the condition line from: #if ZEND_MM_SAFE_UNLINKING if (UNEXPECTED(prev->next_free_block != mm_block) || UNEXPECTED(next->prev_free_block != mm_block)) { zend_mm_panic("zend_mm_heap corrupted"); } #endif