This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

SYMBOL_LANGUAGE assertion failure on AIX


Hi All,

Lot of gdb testcases are failing due assertion failures on AIX with the 
error below. 

(gdb) br main
Breakpoint 1 at 0x1000075c: file 
/home/gdb_build/binutils-gdb/gdb/testsuite/gdb.base/savedregs.c, line 67.
(gdb) r
Starting program: 
/home/gdb_build/binutils-gdb/gdb/testsuite/outputs/gdb.base/savedregs/savedregs 


Breakpoint 1, main ()
    at /home/gdb_build/binutils-gdb/gdb/testsuite/gdb.base/savedregs.c:67
67        signal (SIGILL, catcher);
(gdb) s
dictionary.c:690: internal-error: void insert_symbol_hashed(dictionary*, 
symbol*): Assertion `SYMBOL_LANGUAGE (sym) == DICT_LANGUAGE 
(dict)->la_language' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y


This error seems to be happening after the fix 
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=5ffa0793690b42b2a0c1c21dbb5e64634e58fa00


Attached patch resolves the assertion failure and  gdb is able to debug 
the program further.

(gdb) br main
Breakpoint 1 at 0x1000075c: file 
/home/gdb_build/binutils-gdb/gdb/testsuite/gdb.base/savedregs.c, line 67.
(gdb) r
Starting program: 
/home/gdb_build/binutils-gdb/gdb/testsuite/outputs/gdb.base/savedregs/savedregs 


Breakpoint 1, main ()
    at /home/gdb_build/binutils-gdb/gdb/testsuite/gdb.base/savedregs.c:67
67        signal (SIGILL, catcher);
(gdb) s
warning: (Internal error: pc 0x10000804 in read in psymtab, but not in 
symtab.)

warning: (Internal error: pc 0x10000804 in read in psymtab, but not in 
symtab.)

warning: (Internal error: pc 0x10000804 in read in psymtab, but not in 
symtab.)

68        signal (SIGSEGV, catcher);
(gdb) s
warning: (Internal error: pc 0x10000804 in read in psymtab, but not in 
symtab.)

warning: (Internal error: pc 0x10000804 in read in psymtab, but not in 
symtab.)

warning: (Internal error: pc 0x10000804 in read in psymtab, but not in 
symtab.)

warning: (Internal error: pc 0x10000804 in read in psymtab, but not in 
symtab.)

69        thrower ();
(gdb) s
thrower ()
    at /home/gdb_build/binutils-gdb/gdb/testsuite/gdb.base/savedregs.c:49
49        *(char *)0 = 0;
(gdb) 



Please let me know the comments.



Thanks,
Sangamesh

Attachment: aix_assertion_failure.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]