Subject: sysinst core dumps retrning to main menu
To: None <tech-install@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: tech-install
Date: 11/22/2003 22:21:03
I remember someone reporting that sysinst on sparc and alpha? core dumps
just before returning to the main menu.

I worked out why this happens, but can't find the email/bug report.

The problem is that the menu code uses realloc() when the array of
menus is too small.  Unfortunately this can happen inside menu
routines and the outer stack frames can have a pointer to the
old area.

This doesn't affect i386 because there are > 32 static menus so there
are lots of free slots.  sparc and alpha have just under 32 static menus
so almost always realloc the area.....

Quick fix is to change DYN_IMIT_NUM from 32 to (say) 64.
Since this bug is probably in 1.6.2.

Fixed (with a few other things) in rev 1.50 of src/usr.bin/menuc/menu_sys.def

	David

-- 
David Laight: david@l8s.co.uk