Bug #64111 [Com]: Segfault in gc_zval_possible_root

From: Date: Tue, 16 Dec 2014 07:58:36 +0000
Subject: Bug #64111 [Com]: Segfault in gc_zval_possible_root
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189081@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64111&edit=1

 ID:                 64111
 Comment by:         eugene at zhegan dot in
 Reported by:        remi@php.net
 Summary:            Segfault in gc_zval_possible_root
 Status:             Re-Opened
 Type:               Bug
 Package:            *General Issues
 Operating System:   GNU/Linux (Fedora 18)
 PHP Version:        5.4.11
 Block user comment: N
 Private report:     N

 New Comment:

Same problem on 5.4.16.

[root@pitchblack php-fpm.cores]# gdb /usr/sbin/php-fpm core-php-fpm.25014 
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-51.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/php-fpm...Reading symbols from /usr/sbin/php-fpm...(no debugging
symbols found)...done.
(no debugging symbols found)...done.
[New LWP 25014]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `php-fpm: pool www              '.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f4d38cca289 in gc_zval_possible_root ()
Missing separate debuginfos, use: debuginfo-install php-fpm-5.4.16-23.el7_0.3.x86_64
(gdb) bt
#0  0x00007f4d38cca289 in gc_zval_possible_root ()
#1  0x00007f4d38cb7d38 in zend_hash_destroy ()
#2  0x00007f4d38ca8b0b in _zval_dtor_func ()
#3  0x00007f4d38c9a42a in _zval_ptr_dtor ()
#4  0x00007f4d38cb66c5 in zend_hash_apply_deleter ()
#5  0x00007f4d38cb7ef8 in zend_hash_graceful_reverse_destroy ()
#6  0x00007f4d38c9abbe in shutdown_executor ()
#7  0x00007f4d38ca9bb5 in zend_deactivate ()
#8  0x00007f4d38c495d5 in php_request_shutdown ()
#9  0x00007f4d38b08934 in main ()
(gdb) quit


Previous Comments:
------------------------------------------------------------------------
[2014-10-14 10:27:05] valery dot tereshko at gmail dot com

I have same issue in php-5.5.15

Core was generated by `/usr/bin/php -q /home/moodlee/public_html/admin/cli/cron.php'.
Program terminated with signal 11, Segmentation fault.
#0  0x0844d25f in gc_zval_possible_root (zv=0xa60b9e8) at
/home/cpeasyapache/src/php-5.5.15/Zend/zend_gc.c:143
143			GC_ZOBJ_CHECK_POSSIBLE_ROOT(zv);
(gdb) bt
#0  0x0844d25f in gc_zval_possible_root (zv=0xa60b9e8) at
/home/cpeasyapache/src/php-5.5.15/Zend/zend_gc.c:143
#1  0x084501f8 in zend_object_std_dtor (object=0xa4d0644) at
/home/cpeasyapache/src/php-5.5.15/Zend/zend_objects.c:54
#2  0x08450232 in zend_objects_free_object_storage (object=0xa4d0644) at
/home/cpeasyapache/src/php-5.5.15/Zend/zend_objects.c:137
#3  0x08455858 in zend_objects_store_free_object_storage (objects=0x87fb0e0) at
/home/cpeasyapache/src/php-5.5.15/Zend/zend_objects_API.c:97
#4  0x084239f1 in shutdown_executor () at
/home/cpeasyapache/src/php-5.5.15/Zend/zend_execute_API.c:293
#5  0x0842fe23 in zend_deactivate () at /home/cpeasyapache/src/php-5.5.15/Zend/zend.c:935
#6  0x083d2ab2 in php_request_shutdown (dummy=0x0) at
/home/cpeasyapache/src/php-5.5.15/main/main.c:1808
#7  0x084d15d9 in main (argc=3, argv=0xbfeaa914) at
/home/cpeasyapache/src/php-5.5.15/sapi/cgi/cgi_main.c:2505

------------------------------------------------------------------------
[2014-08-05 17:00:36] mike@php.net

commit typo

------------------------------------------------------------------------
[2014-08-05 16:50:02] mike@php.net

Automatic comment on behalf of mike
Revision: http://git.php.net/?p=pecl/http/pecl_http.git;a=commit;h=58410541834f8f897291c290d38e7a505dbb93c1
Log: fix bug #64111

------------------------------------------------------------------------
[2013-10-17 15:22:27] djonline at djonline dot ru

Same on 5.3.13

------------------------------------------------------------------------
[2013-03-04 16:51:19] jaredsmith at jaredsmith dot net

I'm also seeing this on PHP 5.4.12, for what it's worth.

Program terminated with signal 11, Segmentation fault.
#0  0x00007fce6f4635b9 in gc_zval_possible_root (zv=0x7fce7e2cbbd8)
    at /usr/src/debug/php-5.4.12/Zend/zend_gc.c:143
143			GC_ZOBJ_CHECK_POSSIBLE_ROOT(zv);

Full backtrace at http://web2.jaredsmith.net/core.6360.backtrace.txt,
and core file at http://web2.jaredsmith.net/core.6360.backtrace.txt.

Again, if a PHP developer is interested in looking more closely, I'm happy to help facilitate
access to a server.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=64111


--
Edit this bug report at https://bugs.php.net/bug.php?id=64111&edit=1


Thread (12 messages)

« previous php.bugs (#189081) next »