Bug #76080 [NEW]: Segmentation fault running a simple script

From: Date: Sat, 10 Mar 2018 16:40:20 +0000
Subject: Bug #76080 [NEW]: Segmentation fault running a simple script
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214274@lists.php.net to get a copy of this message
From: r dot dellaversana+php at gmail dot com Operating system: Ubuntu 17.10 PHP version: 7.2.3 Package: Reproducible crash Bug Type: Bug Bug description:Segmentation fault running a simple script Description: ------------ I have a segmentation fault in a very simple class. It builds a simple linked list and when I try to scan the list the php cli crashes. I tried with php 5.6.33 and php 7.2.3 both on Ubuntu 17.10. Simply run the script below and see the core dump happen! gdb says: Program terminated with signal SIGSEGV, Segmentation fault. #0 0x0000556cb4949594 in gc_mark_grey (ref=0x7fa2b2378c60) at /tmp/php-build/source/7.2.3/Zend/zend_gc.c:499 Test script: --------------- https://pastebin.com/8KeB6RSZ Expected result: ---------------- start counting count: 200000 Actual result: -------------- Segmentation fault gdb says: Program terminated with signal SIGSEGV, Segmentation fault. #0 0x0000556cb4949594 in gc_mark_grey (ref=0x7fa2b2378c60) at /tmp/php-build/source/7.2.3/Zend/zend_gc.c:499 -- Edit bug report at https://bugs.php.net/bug.php?id=76080&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76080&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76080&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76080&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76080&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76080&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76080&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76080&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76080&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76080&r=support Expected behavior: https://bugs.php.net/fix.php?id=76080&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76080&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76080&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76080&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76080&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76080&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76080&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76080&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76080&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76080&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76080&r=mysqlcfg

« previous php.bugs (#214274) next »