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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: imbolk at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 30 09:01:27 2025 UTC