Subject: bin/4457: sysinst dumps core selecting "custom distribution"
To: None <gnats-bugs@gnats.netbsd.org>
From: Simon Burge <simonb@telstra.com.au>
List: netbsd-bugs
Date: 11/10/1997 15:35:54
>Number:         4457
>Category:       bin
>Synopsis:       sysinst dumps core selecting "custom distribution"
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov  9 20:50:04 1997
>Last-Modified:
>Originator:     Simon Burge
>Organization:
	IBM Global Services Australia
>Release:        NetBSD 1.3_ALPHA, November 8th snapshot
>Environment:
System: NetBSD vlad 1.3_ALPHA NetBSD 1.3_ALPHA (MONA) #0: Wed Oct 29 10:31:18 EST 1997 simonb@vlad:/usr/src/sys/arch/pmax/compile/MONA pmax


>Description:
	sysinst dumps core when selecting the "custom distribution"
	option from the "select distribution" menu.  Here's the
	stacktrace:

	vlad:1/dlboot0/mona 13# gdb sbin/sysinst sysinst.core
	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 (mips-netbsd), Copyright 1996 Free Software Foundation, Inc...
	Core was generated by `sysinst'.
	Program terminated with signal 11, Segmentation fault.
	#0  0x418800 in makech ()
	(gdb) bt
	#0  0x418800 in makech ()
	#1  0x41835c in wrefresh ()
	#2  0x40b360 in process_menu (num=16) at menu_defs.c:1208
	#3  0x409b78 in process_item (menu_no=0x10066280, sel=14) at menu_defs.c:639
	#4  0x40b40c in process_menu (num=14) at menu_defs.c:1219
	#5  0x411d2c in get_and_unpack_sets (success_msg=41, failure_msg=78)
	    at /greyhawk/u1/project/NetBSD/jonathan/src/distrib/utils/sysinst/arch/pmax/../../util.c:351
	#6  0x40c8cc in do_upgrade ()
	    at /greyhawk/u1/project/NetBSD/jonathan/src/distrib/utils/sysinst/arch/pmax/../../upgrade.c:94
	#7  0x408b30 in process_item (menu_no=0x10066280, sel=14) at menu_defs.c:253
	#8  0x40b40c in process_menu (num=0) at menu_defs.c:1219
	#9  0x40c2e0 in main (argc=3, argv=0x7ffffccc)
	    at /greyhawk/u1/project/NetBSD/jonathan/src/distrib/utils/sysinst/arch/pmax/../../main.c:93
	(gdb) 

	Another segfault occurs when choosing a custom partition
	layout, but I can't get a valid core file for that one.

	Both of these segfaults occur every time.

	This may be a ``port-pmax'' problem, and not a ``bin'' one,
	but I can only test this on a pmax now and it's an MI
	program that's causing grief.

>How-To-Repeat:
	Boot a pmax of the diskimage from the November 8 snapshot.
	At the "select distribution" menu, choose "custom distribtion".
	Watch the distribution list appear on the screen, then the
	"Segmentation fault - core dumped" message...

>Fix:
	Unknown.  This is hard to debug whilst the latest sysinst
	in the 1.3 release branch isn't the same as the sysinst on
	the install tools.
>Audit-Trail:
>Unformatted: