Bug #67523 [Fbk->Opn]: Crash when doing highlight_file on a large php file
Edit report at https://bugs.php.net/bug.php?id=67523&edit=1
ID: 67523
User updated by: bartv at thisnet dot nl
Reported by: bartv at thisnet dot nl
Summary: Crash when doing highlight_file on a large php file
-Status: Feedback
+Status: Open
Type: Bug
Package: Reproducible crash
Operating System: Debian/Linux
PHP Version: 5.6.0RC1
Block user comment: N
Private report: N
New Comment:
The file can be found at http://owncloud.thisnet.nl/public.php?service=files&t=449b256bb9a78cb13e6435dad9c1efd8
Previous Comments:
------------------------------------------------------------------------
[2014-06-29 23:39:54] tyrael@php.net
any chance you could attach the file which produces the crash?
------------------------------------------------------------------------
[2014-06-26 18:29:42] bartv at thisnet dot nl
Description:
------------
Calling highlight_file with a file with many classes (about 180). This is the classes cache file
generated by a default installation of symfony2.
Actual result:
--------------
#0 _zend_mm_free_int (heap=0x7fffe00b63f8, p=0x7fffe00b6408) at
/tmp/buildd/php5-5.6.0~rc1+dfsg/Zend/zend_alloc.c:2104
#1 0x00000000006c6ae8 in zend_highlight
(syntax_highlighter_ini=syntax_highlighter_ini@entry=0x7fffffff52f0) at
/tmp/buildd/php5-5.6.0~rc1+dfsg/Zend/zend_highlight.c:153
#2 0x000000000069d93b in highlight_file (filename=0x181ed78
"/home/bart/projects/symfonyapp/app/cache/dev/classes.php",
syntax_highlighter_ini=syntax_highlighter_ini@entry=0x7fffffff52f0) at
Zend/zend_language_scanner.l:795
#3 0x00000000005fafc1 in zif_highlight_file (ht=<optimized out>, return_value=0x18862b0,
return_value_ptr=<optimized out>, this_ptr=<optimized out>,
return_value_used=<optimized out>) at
/tmp/buildd/php5-5.6.0~rc1+dfsg/ext/standard/basic_functions.c:5187
#4 0x00000000006c2e7a in dtrace_execute_internal (execute_data_ptr=<optimized out>,
fci=<optimized out>, return_value_used=<optimized out>) at
/tmp/buildd/php5-5.6.0~rc1+dfsg/Zend/zend_dtrace.c:97
#5 0x00007ffff3e24a46 in xdebug_execute_internal (current_execute_data=0x7ffff7f8af88, fci=0x0,
return_value_used=1) at /build/xdebug-RIyDQR/xdebug-2.2.4/xdebug-2.2.4/xdebug.c:1551
#6 0x000000000077d158 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7f8af88) at
/tmp/buildd/php5-5.6.0~rc1+dfsg/Zend/zend_vm_execute.h:560
#7 0x000000000070e660 in execute_ex (execute_data=0x7ffff7f8af88) at
/tmp/buildd/php5-5.6.0~rc1+dfsg/Zend/zend_vm_execute.h:363
#8 0x00000000006c2d38 in dtrace_execute_ex (execute_data=0x7ffff7f8af88) at
/tmp/buildd/php5-5.6.0~rc1+dfsg/Zend/zend_dtrace.c:73
#9 0x00007ffff3e23fcc in xdebug_execute_ex (execute_data=0x7ffff7f8af88) at
/build/xdebug-RIyDQR/xdebug-2.2.4/xdebug-2.2.4/xdebug.c:1437
#10 0x000000000077d68e in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7f8ae08) at
/tmp/buildd/php5-5.6.0~rc1+dfsg/Zend/zend_vm_execute.h:592
#11 0x000000000070e660 in execute_ex (execute_data=0x7ffff7f8ae08) at
/tmp/buildd/php5-5.6.0~rc1+dfsg/Zend/zend_vm_execute.h:363
#12 0x00000000006c2d38 in dtrace_execute_ex (execute_data=0x7ffff7f8ae08) at
/tmp/buildd/php5-5.6.0~rc1+dfsg/Zend/zend_dtrace.c:73
#13 0x00007ffff3e23fcc in xdebug_execute_ex (execute_data=0x7ffff7f8ae08) at
/build/xdebug-RIyDQR/xdebug-2.2.4/xdebug-2.2.4/xdebug.c:1437
#14 0x000000000077d68e in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7f8ac98) at
/tmp/buildd/php5-5.6.0~rc1+dfsg/Zend/zend_vm_execute.h:592
#15 0x000000000070e660 in execute_ex (execute_data=0x7ffff7f8ac98) at
/tmp/buildd/php5-5.6.0~rc1+dfsg/Zend/zend_vm_execute.h:363
#16 0x00000000006c2d38 in dtrace_execute_ex (execute_data=0x7ffff7f8ac98) at
/tmp/buildd/php5-5.6.0~rc1+dfsg/Zend/zend_dtrace.c:73
#17 0x00007ffff3e23fcc in xdebug_execute_ex (execute_data=0x7ffff7f8ac98) at
/build/xdebug-RIyDQR/xdebug-2.2.4/xdebug-2.2.4/xdebug.c:1437
#18 0x000000000077d68e in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7f8ab58) at
/tmp/buildd/php5-5.6.0~rc1+dfsg/Zend/zend_vm_execute.h:592
#19 0x000000000070e660 in execute_ex (execute_data=0x7ffff7f8ab58) at
/tmp/buildd/php5-5.6.0~rc1+dfsg/Zend/zend_vm_execute.h:363
#20 0x00000000006c2d38 in dtrace_execute_ex (execute_data=0x7ffff7f8ab58) at
/tmp/buildd/php5-5.6.0~rc1+dfsg/Zend/zend_dtrace.c:73
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67523&edit=1
Thread (6 messages)