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
 [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: Tue Mar 19 10:01:30 2024 UTC