Subject: bin/26264: gdb on NetBSD 2.0_BETA i386 crashes when examinging cores
To: None <>
From: None <>
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
>Release:        NetBSD 2.0_BETA

ident output for 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
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.  
	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
--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
Sample sessions with all the output shown as is :
Gdb core file :