Subject: NetBSD 2.0 crash report
To: None <tech-kern@netbsd.org>
From: Rui Paulo <phlox-netbsd-kern@fnop.net>
List: tech-kern
Date: 11/30/2004 23:59:37
Today I got a crash from a NetBSD 2.0 kernel. Unfortunatly, I didn't
enabled DEBUG and -g when I built it, so the information here is
probably useless anyhow...
But here here is the backtrace and the panic message:
$ uname -v
NetBSD 2.0 (PHEISAR) #3: Mon Nov 29 23:03:22 WET 2004 root@proton.fnop.lan:/usr/obj/sys/arch/i386/compile/PHEISAR
Nov 30 23:42:31 proton savecore: reboot after panic: panic: kernel diagnostic assertion "to_ticks >= 0" failed: file "/usr/src/sys/kern/kern_timeout.c", line 281
gdb> target kcore /var/crash/netbsd.0.core
panic: kernel %sassertion "%s" failed: file "%s", line %d
#0 0xc0532000 in ?? ()
gdb> bt
#0 0xc0532000 in ?? ()
#1 0xc02df0b8 in cpu_reboot ()
#2 0xc026f3c9 in panic ()
#3 0xc036fe3e in __assert ()
#4 0xc026744f in callout_schedule ()
#5 0xc012a59f in tcp_output ()
#6 0xc012ec0e in tcp_usrreq ()
#7 0xc0286ff3 in sosend ()
#8 0xc028b738 in sendit ()
#9 0xc028b4e5 in sys_sendto ()
#10 0xc02e81a5 in syscall_plain ()
gdb>
And the process list:
$ ps ax -M netbsd.0.core
PID TT STAT TIME COMMAND
0 ?? RWKs 0:00.00 [swapper]
1 ?? RWs 0:00.00 init
2 ?? RWK 0:00.00 [cryptoret]
3 ?? RWK 0:00.00 [sysmon]
4 ?? RWK 0:00.00 [atabus0]
5 ?? RWK 0:00.00 [atabus1]
6 ?? RWK 0:00.00 [usb0]
7 ?? RWK 0:00.00 [usbtask]
8 ?? RWK 0:00.00 [usb1]
9 ?? RWK 0:00.00 [pms0]
10 ?? RWK 0:00.00 [atapibus0]
11 ?? RWK 0:00.00 [pagedaemon]
12 ?? RWK 0:01.00 [ioflush]
13 ?? RWK 0:00.00 [aiodoned]
105 ?? RWs 0:13.00 (powerd)
249 ?? RWK 0:00.00 [nfsio]
292 ?? RW 0:01.00 (xbindkeys)
311 ?? RWK 0:00.00 [nfsio]
314 ?? RWK 0:00.00 [nfsio]
315 ?? RWK 0:00.00 [nfsio]
344 ?? RWs 0:00.00 (mountd)
402 ?? RWs 0:00.00 /usr/sbin/syslogd -s
431 ?? RWs 0:00.00 (dhclient)
504 ?? RWs 0:13.00 (inetd)
543 ?? RWs 0:00.00 (rpcbind)
606 ?? RWs 0:04.00 /usr/sbin/mountd (nfsd)
630 ?? RWL 0:04.00 nfsd: server
655 ?? RWs 0:00.00 (xclock)
660 ?? RWL 0:04.00 (nfsd)
693 ?? RWL 0:04.00 (nfsd)
703 ?? RWs 0:00.00 (cron)
721 ?? RWL 0:04.00 (nfsd)
851 ?? RWs 0:13.00 X :0 -nolisten tcp (lpd)
925 ?? RWs 0:00.00 sendmail: accepting connections
947 ?? RWs 0:00.00 (screenblank)
1072 ?? RW 0:00.00 (XFree86)
1084 ?? RWs 0:00.00 (ssh-agent)
3242 ?? RWa 0:00.00 (firefox-bin)
4454 ?? RW 0:00.00 (sh)
4546 ?? RWs 0:00.00 (rxvt)
5672 ?? RWs 0:00.00 (rxvt)
6631 ?? RWs 0:06.00 (ksh)
7141 ?? RWsa 0:06.00 (amule)
9968 ?? RW 0:31.00 (gaim)
14633 ?? RWa 0:00.00 (xmms)
19695 ?? RWs 0:00.00 (gaim)
29522 ?? RW 0:00.00 (gconfd-2)
20804 p0 RWs+ 0:00.00 (mutt)
2505 p1 RW+ 0:30.00 (ksh)
3965 p1 RWN+ 0:36.00 (FahCore_78.exe)
4288 p1 RWN+ 0:00.00 (FahCore_78.exe)
4641 p1 RW+ 0:00.00 (FAH4Console-Linu)
4707 p1 RW+ 0:30.00 (FAH4Console-Linu)
5118 p1 RWs 0:21.00 (ksh)
5247 p1 RW+ 0:00.00 (FAH4Console-Linu)
5267 p1 RWN+ 0:00.00 (FahCore_78.exe)
5361 p1 RW+ 0:00.00 (FAH4Console-Linu)
5392 p1 RW+ 0:30.00 (FAH4Console-Linu)
5428 p1 RWN+ 0:00.00 (FahCore_78.exe)
235 E0 RW+ 0:00.00 (sh)
301 E0 RW 0:00.00 gaim (enlightenment)
409 E0 RW 0:00.00 (sh)
853 E0 RW+ 0:00.00 (xinit)
976 E0 RWs 0:00.00 (ksh)
224 E1 RWs+ 0:04.00 /usr/libexec/getty Pc ttyE3
411 E2 RWs+ 0:04.00 (getty)
225 E3 RWs+ 0:04.00 (getty)
Should I even try to do something else or this is just useless and I
should build a new kernel and wait for the bug to happen again ?
-- Rui Paulo <rpaulo@netbsd-pt.org>