Bug #68611 [NEW]: Segmentation fault with deep linked list
From: reen at alphacomm dot nl
Operating system: Ubuntu
PHP version: 5.6.3
Package: Reproducible crash
Bug Type: Bug
Bug description:Segmentation fault with deep linked list
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 bug report at https://bugs.php.net/bug.php?id=68611&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68611&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68611&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68611&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68611&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68611&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68611&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68611&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68611&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68611&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68611&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68611&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68611&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68611&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68611&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68611&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68611&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68611&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68611&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68611&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68611&r=mysqlcfg
Thread (5 messages)
- reen at alphacomm dot nl