Subject: port-mac68k/5044: gdb crashes system if stepped over printf()
To: None <gnats-bugs@gnats.netbsd.org>
From: John Firestone <john.firestone@nordkom.netsurf.de>
List: netbsd-bugs
Date: 02/23/1998 18:25:11
>Number: 5044
>Category: port-mac68k
>Synopsis: gdb crashes system while stepping over printf()
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 23 09:35:01 1998
>Last-Modified:
>Originator: John Firestone
>Organization:
>Release: GDB 4.16 (m68k-netbsd)
>Environment:
Mac IIsi
NetBSD 1.3, X11R6
Mac IIsi
stdio
System: NetBSD eisbox 1.3 NetBSD 1.3 (GENERICSBC) #56: Wed Dec 31 13:40:50 PST 1997 allen@wormey:/usr/src/sys/arch/mac68k/compile/GENERICSBC mac68k
>Description:
If a breakpoint is set at a printf() line, gdb stops at the printf()
but is unable to proceed to the next line. Instead it stops
in _DYNAMIC() then repeatedly in end() until the system crashes.
>How-To-Repeat:
% cat > foo.c
#include <stdio.h>
main()
{
printf("Hello world.\n");
printf("Moin.\n");
}
^D
% gdb foo
GDB is free software and you are welcome to 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.
GDB 4.16 (m68k-netbsd), Copyright 1996 Free Software Foundation, Inc...
(gdb) break 4
Breakpoint 1 at 0x27bc: file foo.c, line 4.
(gdb) run
Starting program: /home/erf/foo
Breakpoint 1, main () at foo.c:4
4 printf("Hello world.\n");
(gdb) next
0x4084 in _DYNAMIC ()
(gdb) next
Single stepping until exit from function _DYNAMIC,
which has no line number information.
0x4004050 in end ()
(gdb) next
Single stepping until exit from function end,
which has no line number information.
0x4010294 in end ()
(gdb) next
Single stepping until exit from function end,
which has no line number information.
Stopped at _trap12: movl d1, sp@-
db>
[System stopped.]
>Fix:
>Audit-Trail:
>Unformatted: