On 24 Apr 2005 at 0:22, Frank Heckenbach wrote:
[...]
Type `bt' in gdb.
While or after running what?
As previously:
: > > Can you post a complete traceback or at least error position? (There are : > > many strncmp's in gpc.c, and know which one it is might help.) : > : > Attached ... : > (Mingw)/src/mingw/gcc-3.2.3/build/gcc $gdb xgpc.exe : > GNU gdb 6.3 : > (gdb) run : <snip> : > Program received signal SIGSEGV, Segmentation fault. : > 0x77c47a64 in strncmp () : > (gdb) info line *0x77c47a64 : > No line number information available for address 0x77c47a64 <strncmp+20> : : can you type `bt' here (to get the calling place)?
IIRC, what I ran then was xgpc with no arguments (xgpc was crashing). That doesn't work here. Eventually, what I did was to load gpc1.exe into gdb and to do "run fjf1044s.pas -g -O3 -W". This is the output and that and the backtrace:
(gdb) run fjf1044s.pas -g -O3 -W Starting program: d:\src\mingw\gcc-3.2.3\build\gcc/gpc1.exe fjf1044s.pas -g -O3 -W gdb: do_initial_child_stuff: process 3296 gdb: kernel event for pid=3296 tid=3956 code=CREATE_PROCESS_DEBUG_EVENT) gdb: child_resume.SetThreadContext: thread 3296.0xf74 ContinueDebugEvent (cpid=3296, ctid=3956, DBG_CONTINUE); gdb: kernel event for pid=3296 tid=3956 code=LOAD_DLL_DEBUG_EVENT) gdb: child_resume.SetThreadContext: thread 3296.0xf74 ContinueDebugEvent (cpid=3296, ctid=3956, DBG_CONTINUE); gdb: kernel event for pid=3296 tid=3956 code=LOAD_DLL_DEBUG_EVENT) gdb: child_resume.SetThreadContext: thread 3296.0xf74 ContinueDebugEvent (cpid=3296, ctid=3956, DBG_CONTINUE); gdb: kernel event for pid=3296 tid=3956 code=LOAD_DLL_DEBUG_EVENT) gdb: child_resume.SetThreadContext: thread 3296.0xf74 ContinueDebugEvent (cpid=3296, ctid=3956, DBG_CONTINUE); gdb: kernel event for pid=3296 tid=3956 code=EXCEPTION_DEBUG_EVENT) gdb: Target exception EXCEPTION_BREAKPOINT at 0x7c901230 q1 q2 q3 q4 q5 pgdb: child_resume.SetThreadContext: thread 3296.0xf74 ContinueDebugEvent (cpid=3296, ctid=3956, DBG_CONTINUE); gdb: kernel event for pid=3296 tid=3956 code=EXCEPTION_DEBUG_EVENT) (gdb) #14 0x004e013c in main (argc=5, argv=0x3d40a8) at ../../gcc/main.c:35 gdb: Target exception EXCEPTION_BREAKPOINT at 0x004de444
Breakpoint 1, fancy_abort (file=0x7484ec "../../gcc/calls.c", line=3078, function=0x7485f1 "expand_call") at ../../gcc/diagnostic.c:1452 1452 internal_error ("Internal compiler error in %s, at %s:%d", (gdb) bt #0 fancy_abort (file=0x7484ec "../../gcc/calls.c", line=3078, function=0x7485f1 "expand_call") at ../../gcc/diagnostic.c:1452 During symbol reading, struct/union type gets multiply defined: struct rtx_def. During symbol reading, struct/union type gets multiply defined: struct rtvec_def. During symbol reading, forward-referenced types left unresolved, type code 0.. During symbol reading, forward-referenced types left unresolved, type code 0.. During symbol reading, forward-referenced types left unresolved, type code 0.. During symbol reading, forward-referenced types left unresolved, type code 0.. During symbol reading, forward-referenced types left unresolved, type code 0.. During symbol reading, forward-referenced types left unresolved, type code 0.. During symbol reading, forward-referenced types left unresolved, type code 0.. During symbol reading, forward-referenced types left unresolved, type code 0.. During symbol reading, forward-referenced types left unresolved, type code 0.. During symbol reading, forward-referenced types left unresolved, type code 0.. During symbol reading, forward-referenced types left unresolved, type code 0.. During symbol reading, forward-referenced types left unresolved, type code 0.. During symbol reading, forward-referenced types left unresolved, type code 0.. During symbol reading, forward-referenced types left unresolved, type code 0.. During symbol reading, forward-referenced types left unresolved, type code 0.. During symbol reading, forward-referenced types left unresolved, type code 0.. During symbol reading, forward-referenced types left unresolved, type code 0.. During symbol reading, forward-referenced types left unresolved, type code 0.. During symbol reading, forward-referenced types left unresolved, type code 0.. During symbol reading, forward-referenced types left unresolved, type code 0.. During symbol reading, struct/union type gets multiply defined: struct function. During symbol reading, struct/union type gets multiply defined: struct function. #1 0x00587b97 in expand_call (exp=0xc41cc0, target=0x0, ignore=1) at ../../gcc/calls.c:3078 #2 0x00479a00 in expand_expr (exp=0xc41cc0, target=0x0, tmode=VOIDmode, modifier=EXPAND_NORMAL) at ../../gcc/expr.c:7379 During symbol reading, struct/union type gets multiply defined: struct basic_block_def. #3 0x004c4b86 in expand_expr_stmt_value (exp=0xc41cc0, want_value=0, maybe_last=1) at ../../gcc/stmt.c:2254 #4 0x004c4a49 in expand_expr_stmt (exp=0xc41cc0) at ../../gcc/stmt.c:2208 #5 0x0044c15e in expand_call_statement (t=0xc41cc0) at ../../gcc/p/statements.c:1101 #6 0x00409468 in yyuserAction (yyn=395, yyrhslen=1, yyvsp=0xc25bd8, yyvalp=0x22fd44, yylocp=0x22fd20, yystack=0x22fdc0) at parse.y:1386 #7 0x004114d0 in yydoAction (yystack=0x22fdc0, yyk=0, yyrule=395, yyvalp=0x22fd44, yylocp=0x22fd20) at parse.c:7795 #8 0x00410fc3 in yyglrReduce (yystack=0x22fdc0, yyk=0, yyrule=395, yyforceEval=1 '\001') at parse.c:7867 #9 0x0041236a in main_yyparse () at parse.c:8591 #10 0x00412e9e in yyparse () at parse.y:2373 #11 0x004b4fe2 in compile_file () at ../../gcc/toplev.c:2124 #12 0x004b9f04 in do_compile () at ../../gcc/toplev.c:5218 #13 0x004b9f6a in toplev_main (argc=5, argv=0x3d40a8) at ../../gcc/toplev.c:5250 #14 0x004e013c in main (argc=5, argv=0x3d40a8) at ../../gcc/main.c:35
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/