kitt@kitt-dell:~/scripts$ gdb --args php -f /var/www/test.php GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2 Copyright (C) 2010 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 "i686-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /usr/local/bin/php...done. (gdb) c The program is not being run. (gdb) r Starting program: /usr/local/bin/php -f /var/www/test.php [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x083da8ff in _zval_dtor_func (zvalue=0xbfffcb30, __zend_filename=0xb78e5fe8 "/home/kitt/foxdl/xdebugsvn/xdebug/xdebug_handler_dbgp.c", __zend_lineno=1225) at /home/kitt/Загрузки/php/php5-5.3.5/Zend/zend_variables.c:52 52 Z_OBJ_HT_P(zvalue)->del_ref(zvalue TSRMLS_CC); (gdb) bt full #0 0x083da8ff in _zval_dtor_func (zvalue=0xbfffcb30, __zend_filename=0xb78e5fe8 "/home/kitt/foxdl/xdebugsvn/xdebug/xdebug_handler_dbgp.c", __zend_lineno=1225) at /home/kitt/Загрузки/php/php5-5.3.5/Zend/zend_variables.c:52 No locals. #1 0xb78c8010 in _zval_dtor (zvalue=0xbfffcb30, __zend_filename=0xb78e5fe8 "/home/kitt/foxdl/xdebugsvn/xdebug/xdebug_handler_dbgp.c", __zend_lineno=1225) at /usr/local/include/php/Zend/zend_variables.h:35 No locals. #2 0xb78cd54c in xdebug_dbgp_handle_eval (retval=0xbfffcc4c, context=0xb78edddc, args=0x88ec6a8) at /home/kitt/foxdl/xdebugsvn/xdebug/xdebug_handler_dbgp.c:1225 eval_string = 0x88797ac 'Z' , "\001\251\020\064\020\064\200\312Z6A" ret_xml = 0x88ee4e0 ret_zval = {value = {lval = 32, dval = 6.3659873887059176e-314, str = {val = 0x20
, len = 3}, ht = 0x20, obj = { handle = 32, handlers = 0x3}}, refcount__gc = 3084932088, type = 229 '\345', is_ref__gc = 60 '<'} new_length = 18 res = -1215377420 options = 0x88ab448 #3 0xb78d380d in xdebug_dbgp_parse_option (context=0xb78edddc, line=0x88ec750 "eval -i 19 -- bmV3IE5vbkV4aXN0c0NsYXNz\n", flags=0, retval=0x88ab468) at /home/kitt/foxdl/xdebugsvn/xdebug/xdebug_handler_dbgp.c:2261 cmd = 0x88ec7a8 "eval" res = 0 ret = 0 args = 0x88ec6a8 command = 0xb78ed990 error = 0xbfffcc38 #4 0xb78d3bab in xdebug_dbgp_cmdloop (context=0xb78edddc, bail=1) at /home/kitt/foxdl/xdebugsvn/xdebug/xdebug_handler_dbgp.c:2310 option = 0x88ec750 "eval -i 19 -- bmV3IE5vbkV4aXN0c0NsYXNz\n" ret = 0 response = 0x88ab468 #5 0xb78d523d in xdebug_dbgp_breakpoint (context=0xb78edddc, stack=0x88eb828, file=0x887aa20 "/var/www/test.php", lineno=2, type=2, exception=0x0, message=0x0) at /home/kitt/foxdl/xdebugsvn/xdebug/xdebug_handler_dbgp.c:2613 response = 0x88ab468 error_container = 0x88ec778 #6 0xb78c5bad in xdebug_statement_call (op_array=0x887b090) at /home/kitt/foxdl/xdebugsvn/xdebug/xdebug.c:1804 le = 0x88ab4a8 brk = 0x0 fse = 0x88ee450 lineno = 2 file = 0x887aa20 "/var/www/test.php" level = 1 #7 0x08407fd7 in zend_extension_statement_handler (extension=0x87b9228, op_array=0x887b090) at /home/kitt/Загрузки/php/php5-5.3.5/Zend/zend_execute.c:740 No locals. #8 0x083d1ac6 in zend_llist_apply_with_argument (l=0x877f76c, func=0x8407fb9 , arg=0x887b090) ---Type to continue, or q to quit--- at /home/kitt/Загрузки/php/php5-5.3.5/Zend/zend_llist.c:236 element = 0x87b9220 #9 0x0840ade3 in ZEND_EXT_STMT_SPEC_HANDLER (execute_data=0x88ab508) at /home/kitt/Загрузки/php/php5-5.3.5/Zend/zend_vm_execute.h:530 No locals. #10 0x0840b547 in ZEND_USER_OPCODE_SPEC_HANDLER (execute_data=0x88ab508) at /home/kitt/Загрузки/php/php5-5.3.5/Zend/zend_vm_execute.h:706 ret = 2 #11 0x084098a4 in execute (op_array=0x887b090) at /home/kitt/Загрузки/php/php5-5.3.5/Zend/zend_vm_execute.h:107 ret = -1208001472 execute_data = 0x88ab508 nested = 1 '\001' original_in_execution = 0 '\000' #12 0xb78c45f9 in xdebug_execute (op_array=0x887b090) at /home/kitt/foxdl/xdebugsvn/xdebug/xdebug.c:1303 dummy = 0x8786d00 edata = 0x0 fse = 0x88ee450 xfse = 0x88ee450 magic_cookie = 0x0 do_return = 0 function_nr = 0 le = 0x88ab4a8 eval_id = 0 clear = 1 return_val = 0x0 #13 0x083dce63 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/kitt/Загрузки/php/php5-5.3.5/Zend/zend.c:1194 files = 0xbfffcfe4 "" i = 1 file_handle = 0xbffff294 orig_op_array = 0x0 orig_retval_ptr_ptr = 0x0 #14 0x083732e2 in php_execute_script (primary_file=0xbffff294) at /home/kitt/Загрузки/php/php5-5.3.5/main/main.c:2265 realfile = "/var/www/test.php", '\000' "\356, Gѷ", '\000' "\345, <ѷ", '\000' , "\021\000\000\000\021\000\000\000\201\000\000\000\370Sෟ\345ݷ\210", '\000' "\240, \342{\b8\000\000\000\250\333{\b\364?\340\267`\333{\b \342{\b\344\346\377\277\001`ѷ \342{\bh\333{\bD\000\000\000\356Gѷ\300\351\377\277\064\244;\b߀÷Լw\b\004\000\000\000\206\255;\b\300\234÷Լw\b\004\000\000\000\023\000\000\000\023\000\000\000\220\000\000\000\370Sෟ\345ݷ\230\000\000\000+\253۷\000\000\000\000߀÷\254\200÷\000\000\000\000\360S\340\267\364?\340\267\300S\340\267\001", '\000' , ",\256̷\205\251۷\300\351\377\277\206\263;\bԀ÷Z\000\000\000\v\000\000\000LEu\b\362\a\000\000\000\000\000\000\000\000\000\000\300"... __orig_bailout = 0xbffff1ac __bailout = {{__jmpbuf = {-1073749820, 0, -1073749760, -1073745560, 893185690, -1530672651}, __mask_was_saved = 0, __saved_mask = {__val = { 3087003636, 134578279, 1, 3221217424, 3086940721, 3087006416, 3084945240, 1, 1, 0, 201, 0, 3083921636, 134555644, 0, 3083514864, 141986624, 3084926964, 3084928224, 3221217448, 3083873713, 3084928224, 141986624, 141986772, 142078228, 3221217480, 139044444, 3084928224, 0, 3084932080, 0, 3084932032}}}} prepend_file_p = 0x0 ---Type to continue, or q to quit--- append_file_p = 0x0 prepend_file = {type = ZEND_HANDLE_FILENAME, filename = 0x0, opened_path = 0x0, handle = {fd = 0, fp = 0x0, stream = {handle = 0x0, isatty = 0, mmap = {len = 0, pos = 0, map = 0x0, buf = 0x0, old_handle = 0x0, old_closer = 0}, reader = 0, fsizer = 0, closer = 0}}, free_filename = 0 '\000'} append_file = {type = ZEND_HANDLE_FILENAME, filename = 0x0, opened_path = 0x0, handle = {fd = 0, fp = 0x0, stream = {handle = 0x0, isatty = 0, mmap = {len = 0, pos = 0, map = 0x0, buf = 0x0, old_handle = 0x0, old_closer = 0}, reader = 0, fsizer = 0, closer = 0}}, free_filename = 0 '\000'} old_cwd = 0xbfffd000 "" use_heap = 0 '\000' retval = 0 #15 0x0849be8a in main (argc=3, argv=0xbffff424) at /home/kitt/Загрузки/php/php5-5.3.5/sapi/cli/php_cli.c:1193 __orig_bailout = 0x0 __bailout = {{__jmpbuf = {-1210040332, 0, 0, -1073745032, 893496986, 1506363893}, __mask_was_saved = 0, __saved_mask = {__val = {909653609, 0 , 1869490176, 2712942, 0, 0, 3086922054, 3083573651, 134592715, 0, 0, 3084945240, 2, 3086947797, 134561122, 3086470464, 3087003636, 3083512808}}}} exit_status = 0 c = -1 file_handle = {type = ZEND_HANDLE_MAPPED, filename = 0xbffff5c3 "/var/www/test.php", opened_path = 0x0, handle = {fd = 143110796, fp = 0x887b28c, stream = {handle = 0x887b28c, isatty = 0, mmap = {len = 21, pos = 0, map = 0xb7fdb000, buf = 0xb7fdb000 "\300dз\302\027\375\267\322\027\375\267p\210ط\362\027\375\267\002\030\375\267\022\030\375\267\"\030\375\267\062\030\375\267B\030\375\267R\030\375\267b\030\375\267r\030\375\267\202\030\375\267\360\301ѷ\242\030\375\267\262\030\375\267\302\030\375\267\322\030\375\267@cط@\217з\002\031\375\267\200\261̷\200(з2\031\375\267 cɷp\272۷b\031\375\267\360\026ҷ`3з\222\031\375\267Pxɷ\262\031\375\267\302\031\375\267\322\031\375\267\342\031\375\267\362\031\375\267\002\032\375\267\022\032\375\267\020\327ѷ@tַB\032\375\267\260<ܷb\032\375\267r\032\375\267\340\302ѷ\270\260", , old_handle = 0x88ab360, old_closer = 0x83f4551 }, reader = 0x83f4528 , fsizer = 0x83f4576 , closer = 0x83f4659 }}, free_filename = 0 '\000'} behavior = 1 reflection_what = 0x0 orig_optind = 1 orig_optarg = 0x0 arg_free = 0xbffff5c3 "/var/www/test.php" arg_excp = 0xbffff42c script_file = 0xbffff5c3 "/var/www/test.php" interactive = 0 module_started = 1 request_started = 1 lineno = 1 exec_direct = 0x0 exec_run = 0x0 exec_begin = 0x0 exec_end = 0x0 param_error = 0x0 hide_argv = 0 ---Type to continue, or q to quit--- ini_entries_len = 110 (gdb) q A debugging session is active. Inferior 1 [process 2838] will be killed. Quit anyway? (y or n) y