Subject: kern/33438: KASSERT at line 1274 in subr_autoconf.c
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Lennart Augustsson <lennart@main.augustsson.net>
List: netbsd-bugs
Date: 05/07/2006 23:35:00
>Number:         33438
>Category:       kern
>Synopsis:       KASSERT at line 1274 in subr_autoconf.c
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 07 23:35:00 +0000 2006
>Originator:     Lennart Augustsson
>Release:        NetBSD 3.99.19
>Organization:
>Environment:
System: NetBSD bamse.augustsson.net 3.99.19 NetBSD 3.99.19 (BAMSE) #1: Sun May 7 17:41:53 EDT 2006 lennart@bamse.augustsson.net:/sys/arch/i386/compile/BAMSE i386
Architecture: i386
Machine: i386
>Description:
	I'm not exactly sure of the circumstances, but the vnd device
	triggers the KASSERT(dev->dv_properties != 0) in device_detach().
	The problem was introduced in version 1.112 of subr_autoconf.c.
>How-To-Repeat:
	Do a ./build.sh in /usr/src.
>Fix:
	Either use an if before the call freeing the property, or (more
	likely) make sure dv_properties is != NULL even for the vnd device.