Subject: kern/37192: netbsd-4 MP kernel hang
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <anil_public@yahoo.com>
List: netbsd-bugs
Date: 10/24/2007 08:10:01
>Number:         37192
>Category:       kern
>Synopsis:       netbsd-4 MP kernel  hang
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 24 08:10:00 +0000 2007
>Originator:     Anil Gopinath
>Release:        NetBSD-4
>Organization:
>Environment:
>Description:
After some intense i/o to an an lfs partition, a netbsd-4 based MP kernel appears to hang. There is no response to ping and the console is unresponsive. The kernel is running on a  amd64 based platform. 

This issue is not reproducible with the single processor kernel. 

Here is the info from ddb (always the same for all hangs):

db{0}> bt
cpu_Debugger() at netbsd:cpu_Debugger+0x5
comintr() at netbsd:comintr+0x725
Xintr_ioapic_edge4() at netbsd:Xintr_ioapic_edge4+0xd4
--- interrupt ---
brelvp() at netbsd:brelvp+0xa0
lfs_cluster_aiodone() at netbsd:lfs_cluster_aiodone+0x1d3
uvm_aiodone_daemon() at netbsd:uvm_aiodone_daemon+0xd2
db{0}> 


 5179             0        0          0 2 0x20200    1       lfs_writer lfswrit
 5174             0        0          0 2 0x20200    1             vnd0   vndbp
 5151             0        0          0 2 0x20200    1          physiod physiod
 19               1       19          0 2       0    1        mount_mfs  mfsidl
 16               1       16          0 2  0x4002    1               sh    wait
>15               0        0          0 2 0x20200    1         aiodoned
 14               0        0          0 2 0x20200    1          ioflush  syncer
 13               0        0          0 2 0x20200    1       pagedaemon pgdaemo
 12               0        0          0 2 0x20200    1          atabus3   atath
 11               0        0          0 2 0x20200    1          atabus2   atath
 10               0        0          0 2 0x20200    1          atabus1   atath
 9                0        0          0 2 0x20200    1          atabus0   atath
 8                0        0          0 2 0x20200    1             usb3  usbevt
 7                0        0          0 2 0x20200    1             usb2  usbevt
 6                0        0          0 2 0x20200    1             usb1  usbevt
 5                0        0          0 2 0x20200    1       usbtask-dr  usbtsk
 4                0        0          0 2 0x20200    1       usbtask-hc  usbtsk
 3                0        0          0 2 0x20200    1             usb0  usbevt
 2                0        0          0 2 0x20200    1           sysmon smtaskq
 1                0        1          0 2  0x4000    1             init    wait
 0               -1        0          0 2 0x20200    1          swapper schedul



>How-To-Repeat:

>Fix: