Bug #69599 [Asn->Csd]: Strange generator+exception+variadic crash

From: Date: Tue, 12 May 2015 13:10:42 +0000
Subject: Bug #69599 [Asn->Csd]: Strange generator+exception+variadic crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192638@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69599&edit=1

 ID:                 69599
 Updated by:         nikic@php.net
 Reported by:        imbolk at gmail dot com
 Summary:            Strange generator+exception+variadic crash
-Status:             Assigned
+Status:             Closed
 Type:               Bug
 Package:            Reproducible crash
 Operating System:   Mac OS
 PHP Version:        5.6.8
 Assigned To:        nikic
 Block user comment: N
 Private report:     N

 New Comment:

Automatic comment on behalf of nikic
Revision: http://git.php.net/?p=php-src.git;a=commit;h=e1cb22a23e881d13ddf80a90f1b0bf2d37913f75
Log: Fix bug #69599


Previous Comments:
------------------------------------------------------------------------
[2015-05-08 04:33:32] 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


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=69599&edit=1


Thread (2 messages)

« previous php.bugs (#192638) next »