Bug 23999

Summary: SYMBOL_LANGUAGE assertion failure on AIX
Product: gdb Reporter: sangamesh <sangamesh.swamy>
Component: gdbAssignee: Not yet assigned to anyone <unassigned>
Severity: normal CC: brobecker
Priority: P2    
Version: 8.2   
Target Milestone: 8.2.1   
Host: Target:
Build: Last reconfirmed:

Description sangamesh 2018-12-17 11:39:24 UTC
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: 

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 
Comment 2 cvs-commit@gcc.gnu.org 2018-12-19 10:35:30 UTC
The gdb-8.2-branch branch has been updated by Sangamesh Mallayya <sangameshs@sourceware.org>:


commit efa138468817d1d26d1a57c0c772793f31908064
Author: Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
Date:   Fri Oct 26 15:31:36 2018 +0530

    Fix SYMBOL_LANGUAGE assertion failure on AIX.
    PR gdb/23999
    * xcoffread.c (read_xcoff_symtab): Pass deduced language to
    symtab_start instead of always using language_unknown.
Comment 3 sangamesh 2018-12-19 12:18:38 UTC
Changes have been backported.