Hello Everyone,
I have a large application that segfaults on spl autoload function. I
have not had the time yet to create a small script that can be used to
reproduce the error, but it looks to be similar to the one reported for
PHPUnit.
I'm using the autolaoder script from composer and I have tried
commenting out code to find the offending class but the problem just
moves around to the next call to autoload. Here is a backtrace.
#0 zend_mm_alloc_small (size=<optimized out>, bin_num=2,
heap=0x7ffff0a00040) at /home/frank/Source/php-src-7/Zend/zend_alloc.c:1291
#1 zend_mm_alloc_heap (size=<optimized out>, heap=0x7ffff0a00040) at
/home/frank/Source/php-src-7/Zend/zend_alloc.c:1358
#2 zend_mm_realloc_heap (heap=0x7ffff0a00040, ptr=0x7ffff0a60590,
size=<optimized out>, copy_size=24) at
/home/frank/Source/php-src-7/Zend/zend_alloc.c:1636
#3 0x00000000007e8f4d in zend_add_live_range (start=start@entry=2,
end=end@entry=57, op_array=<optimized out>, op_array=<optimized out>)
at /home/frank/Source/php-src-7/Zend/zend_compile.c:582
#4 0x00000000007fa275 in zend_add_live_range (op_array=<optimized out>,
op_array=<optimized out>, end=57, start=<optimized out>)
at /home/frank/Source/php-src-7/Zend/zend_compile.c:580
#5 zend_compile_switch (ast=ast@entry=0x7ffff0ab7188) at
/home/frank/Source/php-src-7/Zend/zend_compile.c:4139
#6 0x00000000007f8778 in zend_compile_stmt (ast=0x7ffff0ab7188) at
/home/frank/Source/php-src-7/Zend/zend_compile.c:7087
#7 0x00000000007f9287 in zend_compile_stmt_list
(ast=ast@entry=0x7ffff0ab6760) at
/home/frank/Source/php-src-7/Zend/zend_compile.c:4411
#8 0x00000000007f861e in zend_compile_stmt
(ast=ast@entry=0x7ffff0ab6760) at
/home/frank/Source/php-src-7/Zend/zend_compile.c:7041
#9 0x00000000007fa4b9 in zend_compile_func_decl
(result=result@entry=0x0, ast=ast@entry=0x7ffff0ab71a0) at
/home/frank/Source/php-src-7/Zend/zend_compile.c:4947
#10 0x00000000007f879a in zend_compile_stmt (ast=0x7ffff0ab71a0) at
/home/frank/Source/php-src-7/Zend/zend_compile.c:7097
#11 0x00000000007f9287 in zend_compile_stmt_list
(ast=ast@entry=0x7ffff0ab8388) at
/home/frank/Source/php-src-7/Zend/zend_compile.c:4411
#12 0x00000000007f861e in zend_compile_stmt
(ast=ast@entry=0x7ffff0ab8388) at
/home/frank/Source/php-src-7/Zend/zend_compile.c:7041
#13 0x00000000007f7ca2 in zend_compile_class_decl
(ast=ast@entry=0x7ffff0ab8720) at
/home/frank/Source/php-src-7/Zend/zend_compile.c:5353
#14 0x00000000007f8738 in zend_compile_stmt
(ast=ast@entry=0x7ffff0ab8720) at
/home/frank/Source/php-src-7/Zend/zend_compile.c:7109
#15 0x00000000007fb03a in zend_compile_top_stmt (ast=0x7ffff0ab8720) at
/home/frank/Source/php-src-7/Zend/zend_compile.c:7015
#16 0x00000000007fb07f in zend_compile_top_stmt (ast=0x7ffff0ab4018) at
/home/frank/Source/php-src-7/Zend/zend_compile.c:7010
#17 0x00000000007ce6e7 in compile_file (file_handle=<optimized out>,
type=<optimized out>) at Zend/zend_language_scanner.l:607
#18 0x0000000000654bde in phar_compile_file (file_handle=<optimized
out>, type=<optimized out>) at
/home/frank/Source/php-src-7/ext/phar/phar.c:3311
#19 0x00000000007ce815 in compile_filename (type=2,
filename=filename@entry=0x7ffff0a14550) at Zend/zend_language_scanner.l:647
#20 0x000000000089c4cf in ZEND_INCLUDE_OR_EVAL_SPEC_CV_HANDLER () at
/home/frank/Source/php-src-7/Zend/zend_vm_execute.h:29592
#21 0x000000000084d9db in execute_ex (ex=<optimized out>) at
/home/frank/Source/php-src-7/Zend/zend_vm_execute.h:414
#22 0x00000000007fefe7 in zend_call_function (fci=0x7ffff0a899e0,
fci@entry=0x7fffffffa8f0, fci_cache=fci_cache@entry=0x7fffffffa8c0)
at /home/frank/Source/php-src-7/Zend/zend_execute_API.c:854
#23 0x000000000082bd54 in zend_call_method (object=0x7ffff0aa38a8,
obj_ce=<optimized out>, fn_proxy=<optimized out>,
function_name=0x7ffff0aaf108
"composer\\autoload\\classloader::loadclass\001",
function_name_len=<optimized out>, retval_ptr=retval_ptr@entry=0x0,
param_count=param_count@entry=1, arg1=0x7ffff0a14430,
arg2=arg2@entry=0x0) at
/home/frank/Source/php-src-7/Zend/zend_interfaces.c:104
#24 0x00000000006c1bb4 in zif_spl_autoload_call (execute_data=<optimized
out>, return_value=<optimized out>) at
/home/frank/Source/php-src-7/ext/spl/php_spl.c:425
#25 0x00000000007ff080 in zend_call_function
(fci=fci@entry=0x7fffffffab40, fci_cache=fci_cache@entry=0x7fffffffab10)
at /home/frank/Source/php-src-7/Zend/zend_execute_API.c:873
#26 0x00000000007ff8a9 in zend_lookup_class_ex
(name=name@entry=0x7ffff0a55e80, key=0x7ffff0a70420,
use_autoload=use_autoload@entry=1)
at /home/frank/Source/php-src-7/Zend/zend_execute_API.c:1036
#27 0x00000000008003f8 in zend_fetch_class_by_name
(class_name=0x7ffff0a55e80, key=<optimized out>,
fetch_type=fetch_type@entry=512)
at /home/frank/Source/php-src-7/Zend/zend_execute_API.c:1383
#28 0x000000000089dbf1 in ZEND_NEW_SPEC_CONST_HANDLER () at
/home/frank/Source/php-src-7/Zend/zend_vm_execute.h:3359
#29 0x000000000084d9db in execute_ex (ex=<optimized out>) at
/home/frank/Source/php-src-7/Zend/zend_vm_execute.h:414
#30 0x00000000008a0619 in zend_execute (op_array=<optimized out>,
return_value=<optimized out>) at
/home/frank/Source/php-src-7/Zend/zend_vm_execute.h:458
#31 0x000000000080e607 in zend_execute_scripts (type=type@entry=8,
retval=retval@entry=0x0, file_count=file_count@entry=3) at
/home/frank/Source/php-src-7/Zend/zend.c:1428
#32 0x00000000007a33c0 in php_execute_script
(primary_file=primary_file@entry=0x7fffffffd070) at
/home/frank/Source/php-src-7/main/main.c:2471
#33 0x00000000008a243a in do_cli (argc=4, argv=0x116bc60) at
/home/frank/Source/php-src-7/sapi/cli/php_cli.c:974
#34 0x0000000000443617 in main (argc=4, argv=0x116bc60) at
/home/frank/Source/php-src-7/sapi/cli/php_cli.c:1345
- Frank
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php