Bug #62929 [Opn]: Segmentation fault on Zend Framework application
| From: | sergiu dot ionescu at gmail dot com | Date: | Mon, 27 Aug 2012 14:55:12 +0000 |
| Subject: | Bug #62929 [Opn]: Segmentation fault on Zend Framework application | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-172949@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62929&edit=1
ID: 62929
User updated by: sergiu dot ionescu at gmail dot com
Reported by: sergiu dot ionescu at gmail dot com
Summary: Segmentation fault on Zend Framework application
Status: Open
Type: Bug
Package: *General Issues
Operating System: Ubuntu 10.04.4 LTS
-PHP Version: PHP 5.3.2
+PHP Version: PHP 5.3.16
Block user comment: N
Private report: N
New Comment:
Hello,
I have compiled PHP 5.3.16(http://kr.php.net/get/php-5.3.16.tar.bz2) and i am experiencing similar
issues.
The new back-trace is:
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x000000000068a7fb in zend_mm_remove_from_free_list (heap=0xe73290, mm_block=0x2ee4168) at
/home/vagrant/php-5.3.16/Zend/zend_alloc.c:845
845 if (UNEXPECTED(prev->next_free_block != mm_block) ||
UNEXPECTED(next->prev_free_block != mm_block)) {
(gdb) bt
#0 0x000000000068a7fb in zend_mm_remove_from_free_list (heap=0xe73290, mm_block=0x2ee4168) at
/home/vagrant/php-5.3.16/Zend/zend_alloc.c:845
#1 0x000000000068a9ab in _zend_mm_free_int (heap=0xe73290, p=0x2ee4128) at
/home/vagrant/php-5.3.16/Zend/zend_alloc.c:2029
#2 0x000000000069fcd0 in destroy_zend_class (pce=<value optimized out>) at
/home/vagrant/php-5.3.16/Zend/zend_opcode.c:187
#3 0x00000000006b43d5 in zend_hash_apply_deleter (ht=0xe73be0, p=0x142dda0) at
/home/vagrant/php-5.3.16/Zend/zend_hash.c:612
#4 0x00000000006b44e9 in zend_hash_reverse_apply (ht=0xe73be0, apply_func=0x69aed0
<clean_non_persistent_class>) at /home/vagrant/php-5.3.16/Zend/zend_hash.c:762
#5 0x000000000069bbbe in shutdown_executor () at
/home/vagrant/php-5.3.16/Zend/zend_execute_API.c:312
#6 0x00000000006a85c2 in zend_deactivate () at /home/vagrant/php-5.3.16/Zend/zend.c:891
#7 0x0000000000654305 in php_request_shutdown (dummy=<value optimized out>) at
/home/vagrant/php-5.3.16/main/main.c:1661
#8 0x0000000000733dfa in main (argc=<value optimized out>, argv=<value optimized out>)
at /home/vagrant/php-5.3.16/sapi/cli/php_cli.c:1368
I am still using some on the old php5.3.2 extensions but i am upgrading the one by one - just in
case i catch the culprit.
Please let me know if i can provide additional details.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2012-08-26 05:54:15] rasmus@php.net
There is no changelog entry for it. Your report is not specific enough, but we
need to know if it is happening in a current version before we bother spending
any time looking for it. chasing fixed bugs isn't the best use of our time.
------------------------------------------------------------------------
[2012-08-26 05:26:02] sergiu dot ionescu at gmail dot com
Can you please point me to the change-log note for this fix?
I want to be 100% sure that it's the same issue, as we are trying to be as conservative as
possible with environment updates.
Thanks!
------------------------------------------------------------------------
[2012-08-25 17:42:42] rasmus@php.net
Ah, I see the version at the bottom of your report now. I have fixed it in the
report. 5.3.2 is from March 2010. Please upgrade to something more recent.
------------------------------------------------------------------------
[2012-08-25 17:41:00] rasmus@php.net
The PHP version is not irrelevant at all. We can't possibly do anything with this
bug unless you tell us which version you are seeing it in.
------------------------------------------------------------------------
[2012-08-25 17:33:11] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62929&edit=1