Subject: bin/26264: gdb on NetBSD 2.0_BETA i386 crashes when examinging cores
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hsaliak@kasba.ath.cx>
List: netbsd-bugs
Date: 07/12/2004 22:49:20
>Number:         26264
>Category:       bin
>Synopsis:       gdb on NetBSD 2.0_BETA i386 crashes when examinging cores
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 12 15:10:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 2.0_BETA
>Organization:

>Environment:
ident output for gdb:
/usr/bin/gdb:
     $NetBSD: crt0.c,v 1.13 2003/07/26 19:24:27 salo Exp $
System: NetBSD kasba 2.0_BETA NetBSD 2.0_BETA (GENERIC) #0: Wed Jun 23 14:35:57 SGT 2004 root@kasba:/usr/src/nbsd/obj/usr/src/nbsd/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
When using gdb on a core, a combination of 'bt' and 'show' commands cause gdb
to crash. Gdb reports that debugging has become unreliable and it prompts 
for dumping core itself.  
>How-To-Repeat:
	Loading a core file, and a combination of 'bt' and 'show' commands
cause it to be dumped. For example:
The following commands can cause gdb to core dump.
file some-executable
core giftd.core
show
bt
show
--gdb errors here with the following message-- 
/usr/src/nbsd/src/gnu/dist/gdb/gdb/ui-out.c:130: gdb-internal-error: push_level: Assertion `uiout->level >= 0 && uiout->level < MAX_UI_OUT_LEVELS' failed.
check An internal GDB error was detected.  This may make further
debugging unreliable.  Quit this debugging session? (y or n) y
--
Sample sessions where gdb core dumps while examining different cores with the
irrelevant output truncated are at
http://hsaliak.bsdunix.info/gdblog.txt
http://hsaliak.bsdunix.info/gdblog2.txt
Sample sessions with all the output shown as is :
http://hsaliak.bsdunix.info/gdb_log.txt
http://hsaliak.bsdunix.info/gdb_log2.txt
Gdb core file :
http://hsaliak.bsdunix.info/gdb.core.gz
>Fix:
    unknown
>Release-Note:
>Audit-Trail:
>Unformatted: