Subject: kern/15946: panic/kernel trap in -current as of 20020317
To: None <gnats-bugs@gnats.netbsd.org>
From: Frank Kardel <kardel@acm.org>
List: netbsd-bugs
Date: 03/17/2002 16:25:47
>Number:         15946
>Category:       kern
>Synopsis:       kernel panic during rc startup (around/after building databases)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 17 07:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Frank Kardel
>Release:        NetBSD 1.5ZB
>Organization:
>Environment:
System: NetBSD pip 1.5ZB NetBSD 1.5ZB (PIP) #0: current after 20020310 (last check with 20020317-100000UTC)
Architecture: i386
Machine: i386
>Description:
	kernels built after around 20020310 fail to survive rc phase of startup.
	Panics (bad trap) occur mainly in malloc code
	happend with custom and GENERIC kernels
>How-To-Repeat:
	build kernel from current and try to boot into multi user with
	new kernel 8-(
	Example (using GENERIC_ISDN)
	DDB: (beware hand copy - as savecore from alternate device wont - see other PR)
	uvm_fault(0xe3819468, 0, 0, 1) -> e
	kernel: page fault trap, code=0
	stopped in pid 120 (sh) at malloc + 0x24d: 0(%esi),%eax
	db> tr
	malloc(10, 52, 1, 1, 0xe3819468) at malloc+0x24d
	amap_copy(0xe3819468, 0xe3833a80, 1, 1, 0x80ad000, 0x80ad001, 0xe4053f48, 0xc0353faf) at amap_copy + 0x184
	gcc2_compiled.(0xe4053f34, 6, 0, 7, 0) at gcc2_compiled. + 0x128
	uvm_fault(0xe3819468, 0x80ad000, 0, 2, 0x80b8080) at uvm_fault + 0x1b6
	trap() at trap + 0x4d4
	--- trap (number 6) ---
	0x804ed63:

>Fix:
	? - i did see changes in subr_pool.c and alike around that time - seems close
>Release-Note:
>Audit-Trail:
>Unformatted: