Subject: kern/28992: usb-related kernel panic
To: None <,,>
From: None <>
List: netbsd-bugs
Date: 01/17/2005 22:36:00
>Number:         28992
>Category:       kern
>Synopsis:       usb-related kernel panic
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 17 22:36:00 +0000 2005
>Originator:     Ove Soerensen
>Release:        -current
NetBSD elysium.localnet 2.99.14 NetBSD 2.99.14 (ELYSIUM01) #15: Sun Jan 16 12:46:57 CET 2005  donloco@elysium.localnet:/usr/src/sys/arch/i386/compile/ELYSIUM01 i386
I can make the kernel of my -current laptop (i386) panic by:

1. Starting X
2. Exiting from X
3. Starting X again

The problem seems to be USB-related, i do have 2 USB keyboards and 1 USB mouse
connected to this machine. It's running the latest release from pkgsrc.

Backtrace follows:
#0  0xc04fb000 in ?? ()
#1  0xc02f1dcc in cpu_reboot (howto=256, bootstr=0x0)
    at ../../../../arch/i386/i386/machdep.c:751
#2  0xc0262929 in panic (fmt=0xc03c7ed1 "trap")
    at ../../../../kern/subr_prf.c:242
#3  0xc02fae5b in trap (frame=0xcbbe7c14)
    at ../../../../arch/i386/i386/trap.c:296
#4  0xc0102d17 in calltrap ()
#5  0xc0374e87 in uhidev_close (scd=0xc0ed7f00)
    at ../../../../dev/usb/uhidev.c:506
#6  0xc03753db in uhidclose (dev=14336, flag=3, mode=8192, p=0xcbbba4d4)
    at ../../../../dev/usb/uhid.c:293
#7  0xc029cc5f in spec_close (v=0xcbbe7d44)
    at ../../../../miscfs/specfs/spec_vnops.c:782
#8  0xc0211501 in ufsspec_close (v=0xcbbe7d44)
    at ../../../../ufs/ufs/ufs_vnops.c:1843
#9  0xc0295f66 in VOP_CLOSE (vp=0xcb4b19e4, fflag=3, cred=0xca780054, 
    p=0xcbbba4d4) at ../../../../kern/vnode_if.c:300
#10 0xc0294b85 in vn_close (vp=0xcb4b19e4, flags=3, cred=0xca780054, 
    p=0xcbbba4d4) at ../../../../kern/vfs_vnops.c:375
#11 0xc0295649 in vn_closefile (fp=0xca7959d8, p=0xcbbba4d4)
    at ../../../../kern/vfs_vnops.c:815
#12 0xc02379de in closef (fp=0xca7959d8, p=0xcbbba4d4)
    at ../../../../kern/kern_descrip.c:1424
#13 0xc023780a in fdfree (p=0xcbbba4d4) at ../../../../kern/kern_descrip.c:1290
#14 0xc023c7ba in exit1 (l=0xcbbbd190, rv=15)
    at ../../../../kern/kern_exit.c:267
#15 0xc024ec42 in postsig (signum=15) at ../../../../kern/kern_sig.c:1852
#16 0xc02fa7a7 in syscall_plain (frame=0xcbbe7fa8)
    at ../../../../sys/userret.h:93