Bug #78010 [NEW]: Segmentation fault

From: Date: Tue, 14 May 2019 12:37:36 +0000
Subject: Bug #78010 [NEW]: Segmentation fault
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220850@lists.php.net to get a copy of this message
From: valera dot ymnik at gmail dot com Operating system: Debian 9 && Ubuntu 18.04 PHP version: 7.3.5 Package: Reproducible crash Bug Type: Bug Bug description:Segmentation fault Description: ------------ Reproduced on "PHP 7.3.5-1+0~20190503093827.38+stretch~1.gbp60a41b (cli) (built: May 3 2019 09:38:28) ( NTS )" and "PHP 7.3.5-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: May 3 2019 10:00:24) ( NTS )" Test script: --------------- <?php class Test { private $data; private $values; public function __construct() { $this->data = new stdClass; $this->data->context = $this; $this->values = new stdClass; $this->values->store = []; for ($i = 0; $i < 526; $i++) { $obj = new stdClass; $obj->data = new stdClass; $obj->z = new stdClass; $obj->z->a = new stdClass; $obj->z->b = new stdClass; $this->values->store[] = $obj; } } } $data = [array_fill(0, 400, []), array_fill(0, 400, [])]; foreach ($data as $row_id => $values) { foreach ($values as $id => &$params) { $params["store"] = new Test; } unset($params); } echo "Completed\n"; Expected result: ---------------- Completed Actual result: -------------- Segmentation fault -- Edit bug report at https://bugs.php.net/bug.php?id=78010&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78010&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78010&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78010&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=78010&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78010&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78010&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78010&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78010&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78010&r=support Expected behavior: https://bugs.php.net/fix.php?id=78010&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78010&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78010&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78010&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78010&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=78010&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78010&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78010&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78010&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78010&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78010&r=mysqlcfg

« previous php.bugs (#220850) next »