Bug #79646 [NEW]: Segmentation fault in garbage collector

From: Date: Thu, 28 May 2020 08:36:38 +0000
Subject: Bug #79646 [NEW]: Segmentation fault in garbage collector
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227215@lists.php.net to get a copy of this message
From:             enumag at gmail dot com
Operating system: Alpine
PHP version:      7.4.6
Package:          Scripting Engine problem
Bug Type:         Bug
Bug description:Segmentation fault in garbage collector

Description:
------------
Recently my PHPUnit tests started failing with segfault occasionally on
CI. It only started after PHP 7.4.6 was released so I'm guessing
something was broken there. Unfortunately I'm unable to reproduce the
segfault reliably so the best I was capable of doing it setting up my CI
to run PHPUnit through GDB to get a stacktrace the next time it happened
which is how I found that the segfault is related to garbage collection.
Here is the trace:

Program received signal SIGSEGV, Segmentation fault.
0x000055a7fb5ecccd in zend_gc_collect_cycles ()
#0  0x000055a7fb5ecccd in zend_gc_collect_cycles ()
#1  0x000055a7fb5ebe37 in gc_possible_root_when_full ()
#2  0x000055a7fb645f71 in execute_ex ()
#3  0x000055a7fb5f1bb2 in zend_generator_resume ()
#4  0x000055a7fb5f2632 in zim_Generator_send ()
#5  0x000055a7fb64bcae in execute_ex ()
#6  0x000055a7fb5f1bb2 in zend_generator_resume ()
#7  0x000055a7fb5f2632 in zim_Generator_send ()
#8  0x000055a7fb64bcae in execute_ex ()
#9  0x000055a7fb5f1bb2 in zend_generator_resume ()
#10 0x000055a7fb5f2632 in zim_Generator_send ()
#11 0x000055a7fb64bcae in execute_ex ()
#12 0x000055a7fb64d0ed in zend_execute ()
#13 0x000055a7fb5c7744 in zend_execute_scripts ()
#14 0x000055a7fb569428 in php_execute_script ()
#15 0x000055a7fb64f175 in do_cli ()
#16 0x000055a7fb3166a7 in main ()




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


Thread (21 messages)

« previous php.bugs (#227215) next »