parser

Написать ответ на текущее сообщение

 

 
   команды управления поиском

GDB

SLAD 02.06.2007 22:22

может это чем-то поможет найти решение проблемы:
gdb parser3 parser3.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Core was generated by `parser3'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.3...done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /lib/libm.so.4...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 Request::execute (this=0xbfbfdf90, ops=@0x0) at pa_array.h:221
221 pa_array.h: No such file or directory.
in pa_array.h
(gdb) bt
#0 Request::execute (this=0xbfbfdf90, ops=@0x0) at pa_array.h:221
#1 0x080636d4 in Request::execute_method (this=0xbfbfdf90, amethod_frame=@0x0, method=@0x0) at execute.C:1027
#2 0x0805232a in Request::core (this=0xbfbfdf90, config_filespec=0x28288ce0 "х\023\r\b═╔$(",
config_fail_on_read_problem=false, header_only=false) at pa_wcontext.h:34
#3 0x0804afe9 in main (argc=-1077944432, argv=0xbfbfdb90) at parser3.C:514
(gdb) list
514 request.core(
515 config_filespec_cstr, fail_on_config_read_problem,
516 header_only);
517
518 // no request [prevent signal handlers from accessing invalid memory]
519 ::request=0;
520
521 // finalize global variables
522 pa_globals_done();
523
(gdb) up
#1 0x080636d4 in Request::execute_method (this=0xbfbfdf90, amethod_frame=@0x0, method=@0x0) at execute.C:1027
1027 execute(*method.parser_code);
(gdb) list
1022
1023 // initialize contexts
1024 rcontext=wcontext=method_frame=&amethod_frame;
1025
1026 // execute!
1027 execute(*method.parser_code);
1028
1029 // result
1030 StringOrValue result=wcontext->result();
1031
(gdb) up
#2 0x0805232a in Request::core (this=0xbfbfdf90, config_filespec=0x28288ce0 "х\023\r\b═╔$(",
config_fail_on_read_problem=false, header_only=false) at pa_wcontext.h:34
34 pa_wcontext.h: No such file or directory.
in pa_wcontext.h
(gdb) list
29 in pa_wcontext.h
(gdb) up
#3 0x0804afe9 in main (argc=-1077944432, argv=0xbfbfdb90) at parser3.C:514
514 request.core(
(gdb) list
509 fail_on_config_read_problem=entry_exists(config_filespec_cstr);
510 }
511 }
512
513 // process the request
514 request.core(
515 config_filespec_cstr, fail_on_config_read_problem,
516 header_only);
517
518 // no request [prevent signal handlers from accessing invalid memory]
(gdb) up
Initial frame selected; you cannot go up.
(gdb) list
519 ::request=0;
520
521 // finalize global variables
522 pa_globals_done();
523
524 //
525 pa_socks_done();
526 }
527
528 #ifdef PA_SUPPRESS_SYSTEM_EXCEPTION
(gdb) up
Initial frame selected; you cannot go up.



#locate pa_wcontext.h
/root/parser/parser-3.2.1/src/types/pa_wcontext.h

#locate pa_array.h
/root/parser/parser-3.2.1/src/include/pa_array.h