Bug #66748 [NEW]: GC causes Segmentation Fault
| From: | znakomstvaastrasoft at gmail dot com | Date: | Thu, 20 Feb 2014 15:06:39 +0000 |
| Subject: | Bug #66748 [NEW]: GC causes Segmentation Fault | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-184376@lists.php.net to get a copy of this message | ||
From: znakomstvaastrasoft at gmail dot com
Operating system: CentOS 6
PHP version: 5.4.25
Package: Reproducible crash
Bug Type: Bug
Bug description:GC causes Segmentation Fault
Description:
------------
I'm running a CLI script causing a segfault.
Debugging with GDB gives me this:
(gdb) bt
#0 zval_scan (pz=0x0) at /usr/src/debug/php-5.4.25/Zend/zend_gc.c:516
#1 0x0000000000601b8d in zval_scan (pz=<value optimized out>) at
/usr/src/debug/php-5.4.25/Zend/zend_gc.c:568
#2 0x0000000000601b8d in zval_scan (pz=<value optimized out>) at
/usr/src/debug/php-5.4.25/Zend/zend_gc.c:568
#3 0x0000000000601b8d in zval_scan (pz=<value optimized out>) at
/usr/src/debug/php-5.4.25/Zend/zend_gc.c:568
#4 0x0000000000602431 in zobj_scan () at
/usr/src/debug/php-5.4.25/Zend/zend_gc.c:605
#5 gc_scan_roots () at /usr/src/debug/php-5.4.25/Zend/zend_gc.c:625
#6 gc_collect_cycles () at
/usr/src/debug/php-5.4.25/Zend/zend_gc.c:796
#7 0x00000000006028d4 in gc_zval_possible_root (zv=<value optimized
out>) at /usr/src/debug/php-5.4.25/Zend/zend_gc.c:166
#8 0x0000000000669011 in gc_zval_check_possible_root
(execute_data=0x7f1e1e4ab340) at
/usr/src/debug/php-5.4.25/Zend/zend_gc.h:183
#9 zend_pzval_unlock_func (execute_data=0x7f1e1e4ab340) at
/usr/src/debug/php-5.4.25/Zend/zend_execute.c:81
#10 _get_zval_ptr_var (execute_data=0x7f1e1e4ab340) at
/usr/src/debug/php-5.4.25/Zend/zend_execute.c:184
#11 ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (execute_data=0x7f1e1e4ab340) at
/usr/src/debug/php-5.4.25/Zend/zend_vm_execute.h:33137
#12 0x000000000064bf88 in execute (op_array=0x1a11720) at
/usr/src/debug/php-5.4.25/Zend/zend_vm_execute.h:410
#13 0x00000000005e1e40 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /usr/src/debug/php-5.4.25/Zend/zend.c:1315
#14 0x0000000000584b68 in php_execute_script
(primary_file=0x7fff7ad27070) at
/usr/src/debug/php-5.4.25/main/main.c:2502
#15 0x000000000068d903 in do_cli (argc=6, argv=0x7fff7ad283c8) at
/usr/src/debug/php-5.4.25/sapi/cli/php_cli.c:989
#16 0x000000000068e0c8 in main (argc=6, argv=0x7fff7ad283c8) at
/usr/src/debug/php-5.4.25/sapi/cli/php_cli.c:1365
Digging deeper, GC tries to check zval, which is 0-pointer and fails.
I can send a core dump by request.
--
Edit bug report at https://bugs.php.net/bug.php?id=66748&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66748&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66748&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66748&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66748&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66748&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66748&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66748&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66748&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66748&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66748&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66748&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66748&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66748&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66748&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66748&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66748&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66748&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66748&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66748&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66748&r=mysqlcfg