PHP :: Bug #67359 :: Segfault in recursiveDirectoryIterator
| Bug #67359 | Segfault in recursiveDirectoryIterator | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2014-05-29 13:55 UTC | Modified: | 2014-06-01 11:40 UTC |
|
||||||||||
| From: | kevin dot waterson at gmail dot com | Assigned: | ||||||||||||
| Status: | Closed | Package: | SPL related | |||||||||||
| PHP Version: | 5.6Git-2014-05-29 (Git) | OS: | Linux | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2014-05-29 13:55 UTC] kevin dot waterson at gmail dot com
Description:
------------
(gdb) bt
#0 0x0000000000a04d5d in zend_call_function (fci=0x7fffda4a13d0, fci_cache=0x7fffda4a1360, tsrm_ls=0x1d754b0)
at /home/kevin/php/php5.6-201405270630/Zend/zend_execute_API.c:711
#1 0x0000000000a4220e in zend_call_method (object_pp=0x7fffda4a1490, obj_ce=0x1eb6df0, fn_proxy=0x7fed57b82238, function_name=0xe8d1a3 "valid", function_name_len=5,
retval_ptr_ptr=0x7fffda4a14b8, param_count=0, arg1=0x0, arg2=0x0, tsrm_ls=0x1d754b0) at /home/kevin/php/php5.6-201405270630/Zend/zend_interfaces.c:97
#2 0x00000000007a6037 in zim_spl_DirectoryIterator_seek (ht=1, return_value=0x7fed57b81b38, return_value_ptr=0x7fed57b46488, this_ptr=0x7fed57b7f4a8, return_value_used=0,
tsrm_ls=0x1d754b0) at /home/kevin/php/php5.6-201405270630/ext/spl/spl_directory.c:837
#3 0x0000000000a6c601 in zend_do_fcall_common_helper_SPEC (execute_data=0x7fed57b46620, tsrm_ls=0x1d754b0) at /home/kevin/php/php5.6-201405270630/Zend/zend_vm_execute.h:558
#4 0x0000000000a6d0df in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (execute_data=0x7fed57b46620, tsrm_ls=0x1d754b0)
at /home/kevin/php/php5.6-201405270630/Zend/zend_vm_execute.h:693
#5 0x0000000000a6b830 in execute_ex (execute_data=0x7fed57b46620, tsrm_ls=0x1d754b0) at /home/kevin/php/php5.6-201405270630/Zend/zend_vm_execute.h:363
#6 0x0000000000a6b913 in zend_execute (op_array=0x7fed57b804d8, tsrm_ls=0x1d754b0) at /home/kevin/php/php5.6-201405270630/Zend/zend_vm_execute.h:388
#7 0x0000000000a1e5a3 in zend_execute_scripts (type=8, tsrm_ls=0x1d754b0, retval=0x0, file_count=3) at /home/kevin/php/php5.6-201405270630/Zend/zend.c:1330
#8 0x000000000095bc69 in php_execute_script (primary_file=0x7fffda4a4b30, tsrm_ls=0x1d754b0) at /home/kevin/php/php5.6-201405270630/main/main.c:2584
#9 0x0000000000aeb10a in do_cli (argc=2, argv=0x1d753d0, tsrm_ls=0x1d754b0) at /home/kevin/php/php5.6-201405270630/sapi/cli/php_cli.c:994
#10 0x0000000000aec49d in main (argc=2, argv=0x1d753d0) at /home/kevin/php/php5.6-201405270630/sapi/cli/php_cli.c:1378
(gdb) quit
Test script:
---------------
http://pastie.org/private/9fwdoeiukaip9dhyjlu1g
Expected result:
----------------
Exception
Actual result:
--------------
Seg Fault
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2014-05-29 14:10 UTC] rasmus@php.net
[2014-06-01 11:40 UTC] laruence@php.net
-Summary: Seg Fault +Summary: Segfault in recursiveDirectoryIterator
[2014-08-13 13:27 UTC] aavindraa at gmail dot com