Bug #77162 [NEW]: endless-loop script segfaults instead of exit with a proper error

From: Date: Thu, 15 Nov 2018 10:03:56 +0000
Subject: Bug #77162 [NEW]: endless-loop script segfaults instead of exit with a proper error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217967@lists.php.net to get a copy of this message
From: maggus dot staab at googlemail dot com Operating system: ubuntu16 lts PHP version: 7.0.32 Package: *General Issues Bug Type: Bug Bug description:endless-loop script segfaults instead of exit with a proper error Description: ------------ the following code segfaults on the php-cli (and on mod_php) but I expected a proper error to happen mstaab@mst16:/tmp$ php test.php Speicherzugriffsfehler (Speicherabzug geschrieben) mstaab@mst16:/tmp$ php -v PHP 7.0.32-4+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Nov 4 2018 05:10:29) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.0.32-4+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2017, by Zend Technologies with blackfire v1.23.1~linux-x64-non_zts70, https://blackfire.io, by Blackfire Test script: --------------- <?php // test.php class a { private $prop; public function __construct() { $this->prop = new a(); } } new a(); Expected result: ---------------- no segfault Actual result: -------------- segfaults -- Edit bug report at https://bugs.php.net/bug.php?id=77162&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77162&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77162&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77162&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77162&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77162&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77162&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77162&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77162&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77162&r=support Expected behavior: https://bugs.php.net/fix.php?id=77162&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77162&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77162&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77162&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77162&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77162&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77162&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77162&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77162&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77162&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77162&r=mysqlcfg

« previous php.bugs (#217967) next »