Bug #76080 [Opn->Dup]: Segmentation fault running a simple script
| From: | nikic@php.net | Date: | Sat, 10 Mar 2018 17:22:01 +0000 |
| Subject: | Bug #76080 [Opn->Dup]: Segmentation fault running a simple script | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-214278@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76080&edit=1
ID: 76080
Updated by: nikic@php.net
Reported by: r dot dellaversana+php at gmail dot com
Summary: Segmentation fault running a simple script
-Status: Open
+Status: Duplicate
Type: Bug
Package: Reproducible crash
Operating System: Ubuntu 17.10
PHP Version: 7.2.3
Block user comment: N
Private report: N
New Comment:
Duplicate of bug #75636.
Previous Comments:
------------------------------------------------------------------------
[2018-03-10 17:11:52] ekin at coproductivity dot com
Can reproduce on fresh master. valgrind says:
==21607==
start counting
count: ==21607== Stack overflow in thread #1: can't grow stack to 0xffe801000
==21607==
==21607== Process terminating with default action of signal 11 (SIGSEGV)
==21607== Access not within mapped region at address 0xFFE801FF8
==21607== Stack overflow in thread #1: can't grow stack to 0xffe801000
==21607== at 0xCC4E4E: zend_std_get_gc (zend_object_handlers.c:119)
https://gist.github.com/ekinhbayar/d1c8a4c26b75d219f6703bdc41f3eaa9
------------------------------------------------------------------------
[2018-03-10 16:40:19] r dot dellaversana+php at gmail dot com
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 this bug report at https://bugs.php.net/bug.php?id=76080&edit=1