Subject: bin/12609: gdb dumps core on sparc with "show commands"
To: None <gnats-bugs@gnats.netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 04/10/2001 23:58:03
>Number:         12609
>Category:       bin
>Synopsis:       gdb dumps core on sparc with "show commands"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 10 21:43:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Greg A. Woods
>Release:        2001/03/24
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:

System: NetBSD sometimes 1.5T NetBSD 1.5T (GENERIC) #0: Mon Mar 26 01:38:17 EST 2001     woods@sometimes:/proven/work/woods/NetBSD-src/sys/arch/sparc/compile/GENERIC sparc
Architecture: sparc
Machine: sparc

>Description:

	gdb dumps core when given a "show commands" command

>How-To-Repeat:

# gdb /usr/bin/gdb          
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc--netbsd"...(no debugging symbols found)...
(gdb) show commands
Memory fault 

# gdb /usr/bin/gdb gdb.core 
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc--netbsd"...(no debugging symbols found)...
Core was generated by `gdb'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.elf_so...(no debugging symbols found)...
done.
Reading symbols from /usr/lib/libedit.so.2...(no debugging symbols found)...
done.
Reading symbols from /usr/lib/libkvm.so.5...(no debugging symbols found)...
done.
Reading symbols from /usr/lib/libtermcap.so.0...(no debugging symbols found)...
done.
Reading symbols from /usr/lib/libbfd.so.3...(no debugging symbols found)...
done.
Reading symbols from /usr/lib/libc.so.12...(no debugging symbols found)...done.
#0  0x9dc90 in show_commands ()
(gdb) where
#0  0x9dc90 in show_commands ()
#1  0x9b364 in execute_command ()
#2  0x9b550 in command_loop ()
#3  0x14494 in main ()
#4  0x12a38 in ___start ()

>Fix:

unknown
>Release-Note:
>Audit-Trail:
>Unformatted: