Bug #69521 [NEW]: Segfault in gc_collect_cycles().

From: Date: Fri, 24 Apr 2015 07:53:59 +0000
Subject: Bug #69521 [NEW]: Segfault in gc_collect_cycles().
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192318@lists.php.net to get a copy of this message
From:             arjen at react dot com
Operating system: Linux
PHP version:      master-Git-2015-04-24 (Git)
Package:          Reproducible crash
Bug Type:         Bug
Bug description:Segfault in gc_collect_cycles().

Description:
------------
USE_ZEND_ALLOC=0 valgrind --vgdb=yes --tool=memcheck --smc-check=all
--track-origins=yes --error-limit=no --leak-check=full sapi/cli/php
runTests.php

Internal testsuite crashes when gc_collect_cycles is called.

Fix in
https://github.com/php/php-src/commit/6718b56e4563b899ccc115f451f2d3623f528919
indeed not complete.

Could not find a status report for it. Any progress yet? Do you have a
testcase available or can I help by finding one?

Test script:
---------------
Internal testsuite.

Expected result:
----------------
No segfault.

Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
0x0000000000968a65 in gc_mark_grey (ref=0x0) at
/home/arjen/phpng/php-src/Zend/zend_gc.c:478
478				GC_REFCOUNT(ref)--;

#0  0x0000000000968a65 in gc_mark_grey (ref=0x0) at
/home/arjen/phpng/php-src/Zend/zend_gc.c:478
#1  0x0000000000968aba in gc_mark_roots () at
/home/arjen/phpng/php-src/Zend/zend_gc.c:490
#2  0x0000000000969a5b in zend_gc_collect_cycles () at
/home/arjen/phpng/php-src/Zend/zend_gc.c:911
#3  0x0000000000950d85 in zif_gc_collect_cycles (execute_data=0xc57d320,
return_value=0xc57d150)
    at /home/arjen/phpng/php-src/Zend/zend_builtin_functions.c:378
#4  0x000000000098e81f in ZEND_DO_ICALL_SPEC_HANDLER ()
    at /home/arjen/phpng/php-src/Zend/zend_vm_execute.h:558
#5  0x000000000098e25e in execute_ex (ex=0xc57b0b0) at
/home/arjen/phpng/php-src/Zend/zend_vm_execute.h:394
#6  0x000000000098e374 in zend_execute (op_array=0xc5c55b0,
return_value=0x0)
    at /home/arjen/phpng/php-src/Zend/zend_vm_execute.h:434
#7  0x00000000009379da in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
    at /home/arjen/phpng/php-src/Zend/zend.c:1389
#8  0x00000000008ac790 in php_execute_script (primary_file=0xffeffff30)
    at /home/arjen/phpng/php-src/main/main.c:2468
#9  0x00000000009f6c0d in do_cli (argc=4, argv=0xbf604c0)
    at /home/arjen/phpng/php-src/sapi/cli/php_cli.c:967
#10 0x00000000009f7bb6 in main (argc=4, argv=0xbf604c0)
    at /home/arjen/phpng/php-src/sapi/cli/php_cli.c:1334

-- 
Edit bug report at https://bugs.php.net/bug.php?id=69521&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=69521&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=69521&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=69521&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=69521&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=69521&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=69521&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=69521&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=69521&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=69521&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=69521&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=69521&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=69521&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=69521&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69521&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=69521&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=69521&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=69521&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69521&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=69521&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=69521&r=mysqlcfg



Thread (8 messages)

« previous php.bugs (#192318) next »