php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69599 Strange generator+exception+variadic crash
Submitted: 2015-05-08 04:33 UTC Modified: 2015-05-08 06:08 UTC
From: imbolk at gmail dot com Assigned: nikic (profile)
Status: Closed Package: Reproducible crash
PHP Version: 5.6.8 OS: Mac OS
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
35 + 7 = ?
Subscribe to this entry?

 
 [2015-05-08 04:33 UTC] imbolk at gmail dot com
Description:
------------
PHP crashes if I use variardic, Exception and generator together.

Test script:
---------------
// Minimal example to reproduce

function crash()
{
    sin(...[0]);
    throw new \Exception();
    yield;
}

iterator_to_array(crash());

Expected result:
----------------
PHP Fatal error:  Uncaught exception 'Exception'… blah-blah

Actual result:
--------------
Segmentation fault: 11

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-05-08 06:08 UTC] laruence@php.net
-Assigned To: +Assigned To: nikic
 [2015-05-12 13:10 UTC] nikic@php.net
Automatic comment on behalf of nikic
Revision: http://git.php.net/?p=php-src.git;a=commit;h=e1cb22a23e881d13ddf80a90f1b0bf2d37913f75
Log: Fix bug #69599
 [2015-05-12 13:10 UTC] nikic@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 15:01:28 2024 UTC