Bug #72767 [NEW]: PHP Segfaults when trying to expand an infinite operator

From: Date: Fri, 05 Aug 2016 15:25:58 +0000
Subject: Bug #72767 [NEW]: PHP Segfaults when trying to expand an infinite operator
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202969@lists.php.net to get a copy of this message
From:             danack
Operating system: 
PHP version:      7.0.9
Package:          Scripting Engine problem
Bug Type:         Bug
Bug description:PHP Segfaults when trying to expand an infinite operator

Description:
------------
PHP Segfaults when trying to expand an infinite operator

Test script:
---------------
$iterator = new InfiniteIterator(new ArrayIterator([0, 1, 2, 3, 4]));
var_dump(...$iterator);

echo "Still alive!";

Expected result:
----------------
Something sensible, either the script aborting to lack of memory, or
otherwise shutting down cleanly.

Actual result:
--------------
Segfaults apparently https://3v4l.org/6IRrp/segfault#tabs

/usr/bin/php-7.0.0(zend_call_function+0x1c6)[0x72b196]
/usr/bin/php-7.0.0(zend_call_method+0x22e)[0x754f2e]
/usr/bin/php-7.0.0(zend_user_it_move_forward+0x37)[0x755457]
/usr/bin/php-7.0.0[0x7c5e8b]
/usr/bin/php-7.0.0(execute_ex+0x1b)[0x77617b]
/usr/bin/php-7.0.0(zend_execute+0x1a7)[0x7c7e37]
/usr/bin/php-7.0.0(zend_execute_scripts+0xb4)[0x739484]
/usr/bin/php-7.0.0(php_execute_script+0x280)[0x6dd2e0]
/usr/bin/php-7.0.0[0x7c9a54]
/usr/bin/php-7.0.0[0x434198]
/usr/lib/libc.so.6(__libc_start_main+0xf1)[0x7fd7c1dd2741]
/usr/bin/php-7.0.0(_start+0x29)[0x4342d9]

-- 
Edit bug report at https://bugs.php.net/bug.php?id=72767&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=72767&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=72767&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=72767&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=72767&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=72767&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=72767&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=72767&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=72767&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=72767&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=72767&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=72767&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=72767&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=72767&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72767&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=72767&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=72767&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=72767&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72767&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=72767&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=72767&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#202969) next »