gdb --args php test.php GNU gdb (Debian 8.2.1-2+b3) 8.2.1 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from php...(no debugging symbols found)...done. (gdb) run Starting program: /usr/local/bin/php test.php warning: Error disabling address space randomization: Operation not permitted [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:65 65 ../sysdeps/x86_64/multiarch/strlen-avx2.S: No such file or directory. (gdb) bt full #0 __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:65 No locals. #1 0x00005579afbb3c10 in ?? () No symbol table info available. #2 0x00005579afbb48cb in ?? () No symbol table info available. #3 0x00005579afbb4a6d in ap_php_vsnprintf () No symbol table info available. #4 0x00007fdf9b71a46b in xdebug_sprintf (fmt=fmt@entry=0x7fdf9b73bbd5 ":%s:%d-%d}") at /tmp/pear/temp/xdebug/src/lib/str.c:215 n = new_str = 0x5579b24a2bc0 ":" size = 32 args = {{gp_offset = 16, fp_offset = 48, overflow_arg_area = 0x7fff1e7b6e00, reg_save_area = 0x7fff1e7b6d20}} #5 0x00007fdf9b718358 in xdebug_wrap_closure_location_around_function_name (opa=0x7fdf9b8667b8, fname=0x5579b23692e8 "newInstanceWithoutConstructor") at /tmp/pear/temp/xdebug/src/lib/lib.c:598 tmp = {l = 28, a = 1052, d = 0x5579b24a2bf0 "newInstanceWithoutConstructo"} tmp_loc_info = #6 0x00007fdf9b712dd1 in xdebug_build_fname (tmp=tmp@entry=0x5579b24a3e50, edata=edata@entry=0x7fdf9b81d130) at /tmp/pear/temp/xdebug/src/base/base.c:264 No locals. #7 0x00007fdf9b713029 in xdebug_add_stack_frame (zdata=, zdata@entry=0x7fdf9b81d130, op_array=0x7fdf9b8667b8, type=type@entry=0) at /tmp/pear/temp/xdebug/src/base/base.c:637 edata = 0x7fdf9b81d130 opline_ptr = 0x7fdf9b81d130 tmp = 0x5579b24a3e50 cur_opcode = #8 0x00007fdf9b713edb in xdebug_execute_internal (current_execute_data=0x7fdf9b81d130, return_value=0x7fdf9b81d110) at /tmp/pear/temp/xdebug/src/base/base.c:888 --Type for more, q to quit, c to continue without paging--c edata = fse = function_nr = 0 function_call_traced = 0 restore_error_handler_situation = 0 tmp_error_cb = 0x0 #9 0x00005579afc95612 in execute_ex () No symbol table info available. #10 0x00007fdf9b713801 in xdebug_execute_ex (execute_data=0x7fdf9b81d030) at /tmp/pear/temp/xdebug/src/base/base.c:801 op_array = 0x7fdf9b890260 edata = fse = 0x5579b24a3d90 function_nr = 0 code_coverage_function_name = 0x0 code_coverage_filename = 0x0 code_coverage_init = 0 #11 0x00005579afc976a2 in zend_execute () No symbol table info available. #12 0x00005579afc113b3 in zend_execute_scripts () No symbol table info available. #13 0x00005579afbb2548 in php_execute_script () No symbol table info available. #14 0x00005579afc99bfe in ?? () No symbol table info available. #15 0x00005579af866fdc in ?? () No symbol table info available. #16 0x00007fdf9e82f09b in __libc_start_main (main=0x5579af866b50, argc=2, argv=0x7fff1e7baa08, init=, fini=, rtld_fini=, stack_end=0x7fff1e7ba9f8) at ../csu/libc-start.c:308 self = result = unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, -9047746716087511225, 93981124228752, 140733704808960, 0, 0, -2926617175082559673, -2944350448894372025}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x7fff1e7baa20, 0x7fdf9f471190}, data = {prev = 0x0, cleanup = 0x0, canceltype = 511420960}}} not_first_call = #17 0x00005579af8676ba in _start () No symbol table info available.