Subject: bin/28781: "gdb -write" dump core.
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <obata@zit.to>
List: netbsd-bugs
Date: 12/26/2004 02:51:00
>Number:         28781
>Category:       bin
>Synopsis:       "gdb -write" core dump
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 26 02:51:00 +0000 2004
>Originator:     OBATA Akio
>Release:        NetBSD 2.0
>Organization:
	GURU-GURU
>Environment:
System: NetBSD miki 2.0 NetBSD 2.0 (MIKI) #2: Sat Dec 11 11:57:34 JST 2004 obata@miki:/usr/src/sys/arch/i386/compile/MIKI i386
Architecture: i386
Machine: i386
gdb: GNU gdb 5.3nb1
>Description:
	Startup "gdb -write a.out", set valiables and quit,
	then gdb dumps core file.
>How-To-Repeat:
	== foo.c ==
	#include <stdio.h>
	int foo = 100;
	main() {
		printf("%d\n", foo);
	}
	== foo.c ==

	% cc foo.c
	% gdb a.out
	(gdb) set foo=200
	(gdb) quit
	Segmentation fault (core dumped)
>Fix: