php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65403 Segmentation fault when using closure
Submitted: 2013-08-06 11:42 UTC Modified: 2017-10-24 23:03 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: thibault dot debatty at gmail dot com Assigned:
Status: Suspended Package: operator (PECL)
PHP Version: 5.4.17 OS: Ubuntu
Private report: No CVE-ID: None
 [2013-08-06 11:42 UTC] thibault dot debatty at gmail dot com
Description:
------------
When operator extension is installed, anonymous functions create a segfault.

Crashes on PHP 5.4.17 and 5.3.10
With operator 0.4.1

Backtrace:
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x0000000000b22cde in execute (op_array=0x7f9dcf967d30, tsrm_ls=0x1e7a760)
    at /home/tibo/Downloads/php-5.4.17/Zend/zend_vm_execute.h:410
#2  0x0000000000addd7a in zend_execute_scripts (type=8, tsrm_ls=0x1e7a760, 
retval=0x0, file_count=3)
    at /home/tibo/Downloads/php-5.4.17/Zend/zend.c:1315
#3  0x0000000000a20bd7 in php_execute_script (primary_file=0x7fff7e76de40, 
tsrm_ls=0x1e7a760)
    at /home/tibo/Downloads/php-5.4.17/main/main.c:2494
#4  0x0000000000b982fd in do_cli (argc=2, argv=0x7fff7e76f238, 
tsrm_ls=0x1e7a760)
    at /home/tibo/Downloads/php-5.4.17/sapi/cli/php_cli.c:988
#5  0x0000000000b99864 in main (argc=2, argv=0x7fff7e76f238) at 
/home/tibo/Downloads/php-5.4.17/sapi/cli/php_cli.c:1364

Test script:
---------------
$f = function(){
};

Expected result:
----------------
Nothing special...

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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-08-07 13:34 UTC] thibault dot debatty at gmail dot com
Operator is working OK when using PHP 5.5.1 and installing operator from github (commit 8d08917aad74a8d1f05efb1bd0a09f0fdc327e23 fetched on 7 Aug 2013).
 [2013-08-07 14:44 UTC] thibault dot debatty at gmail dot com
Bug is also present when using
PHP 5.3.10 and
operator extension fetched from github (commit 
8d08917aad74a8d1f05efb1bd0a09f0fdc327e23 fetched on 7 Aug 2013).
 [2017-10-24 23:03 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-10-24 23:03 UTC] kalle@php.net
The operator PECL package have not had a release for 4 years and development activity seems to have ceased, if a new maintainer picks up this package, then this report should be re-opened
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Nov 12 11:01:29 2024 UTC