Bug #68611 [Opn]: Segmentation fault with deep linked list
Edit report at https://bugs.php.net/bug.php?id=68611&edit=1
ID: 68611
Updated by: derick@php.net
Reported by: reen at alphacomm dot nl
Summary: Segmentation fault with deep linked list
Status: Open
Type: Bug
Package: Reproducible crash
Operating System: Ubuntu
PHP Version: 5.6.3
Block user comment: N
Private report: N
New Comment:
Note: this also happens without opcache and without xdebug
Previous Comments:
------------------------------------------------------------------------
[2014-12-15 13:16:13] reen at alphacomm dot nl
Description:
------------
Tested against:
PHP 5.6.3 (cli) (built: Nov 20 2014 10:45:50)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
with Xdebug v2.2.6, Copyright (c) 2002-2014, by Derick Rethans
AND
PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans
Test script:
---------------
<?php
class A {
public $next;
}
$first = $a = new A();
for ($i = 0; $i < 100000; $i++) {
$a = $a->next = new A();
}
echo 'Complete'.PHP_EOL;
Expected result:
----------------
Complete
Actual result:
--------------
Complete
Segmentation fault: 11
Complete
Segmentation fault (core dumped)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68611&edit=1
Thread (5 messages)