Subject: kern/31083: netbsd-2 system crash - wdc?
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <j+nbsd@2005.salmi.ch>
List: netbsd-bugs
Date: 08/28/2005 11:43:00
>Number:         31083
>Category:       kern
>Synopsis:       netbsd-2 system crash - wdc?
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 28 11:43:00 +0000 2005
>Originator:     Jukka Salmi
>Release:        NetBSD 2.0_STABLE
>Environment:
System: NetBSD grouper.salmi.ch 2.0_STABLE NetBSD 2.0_STABLE (GROUPER) #3: Wed Aug 24 07:22:34 UTC 2005  root@moray.salmi.ch:/build/nbsd/i386/sys/arch/i386/compile/GROUPER i386
Architecture: i386
Machine: i386
>Description:

Two days ago an up-to-date netbsd-2 system crashed:

db> dmesg
[...]
viaide0:0:1: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
db> bt
ltsleep(c03a4db8,10,c02d6d2f,1,0) at netbsd:ltsleep+0x6b
wdcwait(c0c45900,48,40,3e8,9) at netbsd:wdcwait+0xa5
__wdccommand_start(c0c45900,c0d97000,0,c0d98904,c0d98904) at netbsd:__wdccommand_start+0x73
wdcstart(c0c45900,c0d97034,c03a4e50,c0d37b00,4000) at netbsd:wdcstart+0xb1
wdc_ata_bio_intr(c0c45900,c0d97034,1,1,c03a4e7c) at netbsd:wdc_ata_bio_intr+0x18a
wdcintr(c0c45900,0,7aad0010,30,580e0010) at netbsd:wdcintr+0xda
Xintr_legacy14() at netbsd:Xintr_legacy14+0xa8
--- interrupt ---
cpu_switch(c0354400,0,cb762000,c024ebd9,1) at netbsd:cpu_switch+0x9f
ltsleep(c0354260,4,c02dc1c2,0,0) at netbsd:ltsleep+0x323
uvm_scheduler(c0354240,0,c03587dc,c02d9069,0) at netbsd:uvm_scheduler+0x74
main(0,0,0,0,0) at netbsd:main+0x67f
db> show registers
ds          0x10
es          0x10
fs          0x30
gs          0x10
edi         0xffffffff
esi         0x10
ebp         0xc03a4d70  usb_all_tasks+0x4a18c
ebx         0
edx         0
ecx         0
eax         0
eip         0xc01fd537  ltsleep+0x6b
cs          0x8
eflags      0x10246
esp         0xc03a4d58  usb_all_tasks+0x4a174
ss          0x10
netbsd:ltsleep+0x6b:    movl    0xa8(%edx),%eax
db> ps /a
 PID          COMMAND      STRUCT PROC *            UAREA *     VMSPACE/VM_MAP
 25704          lmtpd         0xcb640b28         0xcb6b4000         0xcba5f530
 23487     trivial-re         0xcb919cd0         0xcb46c000         0xcb860a54
 26020          anvil         0xcb9194d8         0xcbd53000         0xcb860ce8
 21615         pickup         0xcb714998         0xcb6d9000         0xcafd2974
 416            httpd         0xcb919e68         0xcbe5a000         0xcb860c0c
 1213           httpd         0xcb919b38         0xcb927000         0xcba5f008
 2003           httpd         0xcb919010         0xcbb32000         0xcba5f1c0
 1905           httpd         0xcb919340         0xcb915000         0xcb860b30
 2646           httpd         0xcb919670         0xcbae9000         0xcb86089c
 1369           httpd         0xcb0044cc         0xcb907000         0xcb860450
 1001           httpd         0xcb858e64         0xcb900000         0xcb860374
 2160           httpd         0xcb858ccc         0xcb89b000         0xcb860978
 938            httpd         0xcb85899c         0xcb890000         0xcb860ea0
 866            httpd         0xcb85866c         0xcb876000         0xcafd21b8
 702            getty         0xcb004334         0xcb020000         0xcafd20dc
 892            httpd         0xcb858b34         0xcb8c6000         0xcb8606e4
 568             cron         0xcb858804         0xcb895000         0xcb86052c
 948       in.imappro         0xcb714800         0xcb75a000         0xcb8601bc
 303            inetd         0xcb85833c         0xcb86f000         0xcb860298
 782        saslauthd         0xcb8581a4         0xcb867000         0xcb8600e0
 109        saslauthd         0xcb85800c         0xcb863000         0xcafd2e9c
 108        saslauthd         0xcb714cc8         0xcb84f000         0xcafd2c08
 107        saslauthd         0xcb714668         0xcb846000         0xcafd2b2c
 96         saslauthd         0xcb714e60         0xcb85b000         0xcb860004
 750            slapd         0xcb714338         0xcb760000         0xcafd2ce4
 606             qmgr         0xcb714b30         0xcb7f0000         0xcafd2dc0
 796           smartd         0xcb004e5c         0xcb68b000         0xcafd26e0
 852           master         0xcb7144d0         0xcb74f000         0xcafd2a50
 474           master         0xcb7141a0         0xcb740000         0xcafd2898
 472             sshd         0xcb714008         0xcb054000         0xcafd2294
 439             ntpd         0xcb004664         0xcb710000         0xcafd27bc
 185            named         0xcb004cc4         0xcb67f000         0xcafd2604
 210            named         0xcb004b2c         0xcb674000         0xcafd2528
 207              kdc         0xcb004994         0xcb471000         0xcafd2370
 179          syslogd         0xcb0047fc         0xcb458000         0xcafd244c
 12          aiodoned         0xcb00419c         0xcb005000         0xc0354080
 11           ioflush         0xcb004004         0xcb000000         0xc0354080
 10        pagedaemon         0xcafcce58         0xcaffc000         0xc0354080
 9          atapibus0         0xcafcccc0         0xcaff4000         0xc0354080
 8               apm0         0xcafccb28         0xcafee000         0xc0354080
 7               usb2         0xcafcc990         0xcafea000         0xc0354080
 6               usb1         0xcafcc7f8         0xcafe6000         0xc0354080
 5            usbtask         0xcafcc660         0xcafe2000         0xc0354080
 4               usb0         0xcafcc4c8         0xcafde000         0xc0354080
 3            atabus1         0xcafcc330         0xcafda000         0xc0354080
 2            atabus0         0xcafcc198         0xcafd6000         0xc0354080
 1               init         0xcafcc000         0xcafc8000         0xcafd2000
 0            swapper         0xc0354260         0xc03a1000         0xc0354080
db> ps /n
 PID           PPID     PGRP        UID S   FLAGS LWPS          COMMAND    WAIT
 25704          474      474       1004 2  0x4001    1            lmtpd
 23487          852      852         12 2  0x4100    1  trivial-rewrite  select
 26020          852      852         12 2  0x4100    1            anvil  select
 21615          852      852         12 2  0x4100    1           pickup  select
 416            892      892       1005 2   0x100    1            httpd   lockf
 1213           892      892       1005 2   0x100    1            httpd   lockf
 2003           892      892       1005 2   0x100    1            httpd   lockf
 1905           892      892       1005 2   0x100    1            httpd   lockf
 2646           892      892       1005 2   0x100    1            httpd   lockf
 1369           892      892       1005 2   0x100    1            httpd   lockf
 1001           892      892       1005 2   0x100    1            httpd   lockf
 2160           892      892       1005 2   0x100    1            httpd   lockf
 938            892      892       1005 2   0x100    1            httpd   lockf
 866            892      892       1005 2   0x100    1            httpd  select
 702              1      702          0 2  0x4002    1            getty   ttyin
 892              1      892          0 2       0    1            httpd  select
 568              1      568          0 2       0    1             cron nanosle
 948              1      306       1007 2   0x500    2    in.imapproxyd       *
 303              1      303          0 2       0    1            inetd  kqread
 782             96       96       1006 2     0x1    1        saslauthd   lockf
 109             96       96       1006 2     0x1    1        saslauthd  netcon
 108             96       96       1006 2     0x1    1        saslauthd   lockf
 107             96       96       1006 2     0x1    1        saslauthd   lockf
 96               1       96       1006 2     0x1    1        saslauthd   lockf
 750              1      750       1008 2   0x500    2            slapd       *
 606            852      852         12 2  0x4100    1             qmgr  select
 796              1      822          0 2       0    1           smartd  wdccmd
 852              1      852          0 2  0x4108    1           master  select
 474              1      474       1004 2   0x109    1           master  select
 472              1      472          0 2       0    1             sshd  select
 439              1      439         15 2   0x100    1             ntpd   pause
 185              1      185        501 2   0x100    1            named  select
 210              1      210        500 2   0x100    1            named  select
 207              1      207          0 2       0    1              kdc  select
 179              1      179          0 2       0    1          syslogd  kqread
 12               0        0          0 2 0x20200    1         aiodoned aiodone
 11               0        0          0 2 0x20200    1          ioflush  syncer
 10               0        0          0 2 0x20200    1       pagedaemon pgdaemo
 9                0        0          0 2 0x20200    1        atapibus0  sccomp
 8                0        0          0 2 0x20200    1             apm0   apmev
 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  usbtsk
 4                0        0          0 2 0x20200    1             usb0  usbevt
 3                0        0          0 2 0x20200    1          atabus1   atath
 2                0        0          0 2 0x20200    1          atabus0   atath
 1                0        1          0 2  0x4000    1             init    wait
 0               -1        0          0 2 0x20200    1          swapper schedul
db> ps /w
 PID          COMMAND     EMUL  PRI UTIME STIME WAIT-MSG    WAIT-CHANNEL
 25704          lmtpd   netbsd   17   0.0   0.0
 23487     trivial-rewrite   netbsd   24   0.0   0.0 select      netbsd:selwait
 26020          anvil   netbsd   24   0.0   0.0 select      netbsd:selwait
 21615         pickup   netbsd   24   0.0   0.0 select      netbsd:selwait
 416            httpd   netbsd   40   6.1   1.8 lockf       netbsd:usb_all_tasks+0xac129c
 1213           httpd   netbsd   40   5.1   2.0 lockf       netbsd:usb_all_tasks+0xabf51c
 2003           httpd   netbsd   40   6.9   2.0 lockf       netbsd:usb_all_tasks+0xabce1c
 1905           httpd   netbsd   40   4.6   1.7 lockf       netbsd:usb_all_tasks+0xabca9c
 2646           httpd   netbsd   40   6.0   1.9 lockf       netbsd:usb_all_tasks+0xabcd5c
 1369           httpd   netbsd   40   4.4   1.6 lockf       netbsd:usb_all_tasks+0xabe05c
 1001           httpd   netbsd   40   3.7   1.5 lockf       netbsd:usb_all_tasks+0xabc69c
 2160           httpd   netbsd   40   3.6   1.4 lockf       netbsd:usb_all_tasks+0xbb60dc
 938            httpd   netbsd   40   5.5   1.5 lockf       netbsd:usb_all_tasks+0xac10dc  
 866            httpd   netbsd   24   4.1   1.5 select      netbsd:selwait
 702            getty   netbsd   25   0.0   0.0 ttyin       netbsd:usb_all_tasks+0xa2b0638
 892            httpd   netbsd   24   0.1   1.5 select      netbsd:selwait
 568             cron   netbsd   32   0.3   0.0 nanosleep   netbsd:nanowait.0
 948       in.imapproxyd   netbsd   50   0.2   0.5 *
 303            inetd   netbsd   24   0.0   0.0 kqread      netbsd:usb_all_tasks+0xadc520
 782        saslauthd   netbsd   40   0.0   0.0 lockf       netbsd:usb_all_tasks+0xbb62dc
 109        saslauthd   netbsd   24   0.0   0.0 netcon      netbsd:usb_all_tasks+0xb890e6
 108        saslauthd   netbsd   40   0.0   0.0 lockf       netbsd:usb_all_tasks+0xc09f1c
 107        saslauthd   netbsd   40   0.0   0.0 lockf       netbsd:usb_all_tasks+0xc0981c
 96         saslauthd   netbsd   40   0.0   0.0 lockf       netbsd:usb_all_tasks+0xf2491c
 750            slapd   netbsd   50   0.0   0.0 *
 606             qmgr   netbsd   24   0.5   0.5 select      netbsd:selwait
 796           smartd   netbsd   16   0.0   0.1 wdccmd      netbsd:usb_all_tasks+0xb334050
 852           master   netbsd   24   0.4   2.1 select      netbsd:selwait
 474           master   netbsd   24   6.1   1.6 select      netbsd:selwait
 472             sshd   netbsd   24   0.0   0.0 select      netbsd:selwait
 439             ntpd   netbsd   40   2.1   1.3 pause       netbsd:usb_all_tasks+0xb3ba440
 185            named   netbsd   24   5.1   0.6 select      netbsd:selwait
 210            named   netbsd   24   1.1   0.3 select      netbsd:selwait
 207              kdc   netbsd   24   0.0   0.3 select      netbsd:selwait
 179          syslogd   netbsd   24   1.4   1.3 kqread      netbsd:usb_all_tasks+0xadc41c
 12          aiodoned   netbsd    4   0.0   1.0 aiodoned    netbsd:uvm+0x38
 11           ioflush   netbsd   40   0.0 196.0 syncer      netbsd:rushjob
 10        pagedaemon   netbsd    4   0.0   0.8 pgdaemon    netbsd:uvm+0x2c
 9          atapibus0   netbsd   16   0.0   0.0 sccomp      netbsd:usb_all_tasks+0x8eafd8
 8               apm0   netbsd   32   0.2   0.2 apmev       netbsd:usb_all_tasks+0xa1941c
 7               usb2   netbsd   32   0.0   0.0 usbevt      netbsd:usb_all_tasks+0xa1565c
 6               usb1   netbsd   32   0.0   0.0 usbevt      netbsd:usb_all_tasks+0xa1365c
 5            usbtask   netbsd   32   0.0   0.0 usbtsk      netbsd:usb_all_tasks
 4               usb0   netbsd   32   0.0   0.0 usbevt      netbsd:usb_all_tasks+0xa1265c
 3            atabus1   netbsd   16   0.0   0.0 atath       netbsd:usb_all_tasks+0x8eaffc
 2            atabus0   netbsd   16   0.0   0.0 atath       netbsd:usb_all_tasks+0x8eae60
 1               init   netbsd   32   0.0   0.0 wait        netbsd:usb_all_tasks+0xac7141c
 0            swapper   netbsd    4   0.0   0.0 scheduler   netbsd:proc0

>How-To-Repeat:
I can't reproduce the problem so far.
>Fix:
unknown