Subject: Crash on shutdown - 2.0_BETA, custom MP kernel
To: None <port-i386@netbsd.org>
From: Jeff Rizzo <riz@boogers.sf.ca.us>
List: port-i386
Date: 05/05/2004 07:55:42
[ This is my last attempt to send this message - I'll
 try not attaching the kernel configs. If anyone ever 
 comes across the ones that were filtered out, I hope
 they don't send them on to the list, or I'll be quite
 embarrassed ]

I have several boxes with Tyan 2510 motherboards - dual PIII,
1-2G RAM.  They seem to operate OK with GENERIC.MP, but when
I use a custom MP kernel, it crashes on shutdown.  The UP
version of the kernel seems fine.  Before I send a PR, I'd like
some confirmation that I haven't removed something critical or
done some other foolish thing with my custom config.

I'm happy to troubleshoot this further if someone can suggest things
to try.  My suspicion is that I've removed something from the kernel
config (they're based on GENERIC, with things commented out), but a quick
glance doesn't tell me much.

Here's the trace and ps info from the crash:


About to run shutdown hooks...
Stopping cron.
Stopping inetd.
Waiting for PIDS: 366.
uvm_fault(0xcbcb7604, 0, 0, 2) -> 0xe
kernel: page fault trap, code=0
Stopped in pid 309.1 (ntpd) at  netbsd:npxsave_cpu+0x30:        fxsavel
db{1}> trace
npxsave_cpu(c1746800,1,c034e4f6,c0528180,400006) at netbsd:npxsave_cpu+0x30
npxdna_xmm(c1746800,bfbf001f,1f,bfbf001f,4826001f) at netbsd:npxdna_xmm+0x14b
db{1}> ps
 PID           PPID     PGRP        UID S   FLAGS LWPS          COMMAND    WAIT
 438            433      404          0 2     0x2    1               sh
 433            412      404          0 2  0x4002    1               sh    wait
 412              1      404          0 2     0x2    1         shutdown    wait
 403              1      403          0 2  0x4002    1            getty   ttyin
 377              1      377          0 2  0x4002    1            getty   ttyin
 375              1      375          0 2  0x4002    1            getty   ttyin
 368              1      368          0 2  0x4003    1              csh   ttyin
 338              1      338          0 2       0    1             sshd  select
>309              1      309          0 2       0    1             ntpd
 122              1      122          0 2       0    1          syslogd
 125              1      125          0 2       0    1         dhclient  select
 11               0        0          0 2 0x20200    1         aiodoned aiodone
 10               0        0          0 2 0x20200    1          ioflush  syncer
 9                0        0          0 2 0x20200    1       pagedaemon pgdaemo
 8                0        0          0 2 0x20200    1       lfs_writer lfswrit
 7                0        0          0 2 0x20200    1        atapibus0  sccomp
 6                0        0          0 2 0x20200    1          usbtask  usbtsk
 5                0        0          0 2 0x20200    1             usb0  usbevt
 4                0        0          0 2 0x20200    1          atabus1   atath
 3                0        0          0 2 0x20200    1          atabus0   atath
 2                0        0          0 2 0x20200    1        cryptoret crypto_
 1                0        1          0 2  0x4000    1             init    wait
 0               -1        0          0 2 0x20200    1          swapper schedul
db{1}>    1              csh   ttyin
 338              1      338          0 2       0    1             sshd  select
>309              1      309          0 2       0    1             ntpd
 122              1      122          0 2       0    1          syslogd
 125              1      125          0 2       0    1         dhclient  select
 11               0        0          0 2 0x20200    1         aiodoned aiodone
 10               0        0          0 2 0x20200    1          ioflush  syncer
 9                0        0          0 2 0x20200    1       pagedaemon pgdaemo
 8                0        0          0 2 0x20200    1       lfs_writer lfswrit
 7                0        0          0 2 0x20200    1        atapibus0  sccomp
 6                0        0          0 2 0x20200    1          usbtask  usbtsk
 5                0        0          0 2 0x20200    1             usb0  usbevt
 4                0        0          0 2 0x20200    1          atabus1   atath
 3                0        0          0 2 0x20200    1          atabus0   atath
 2                0        0          0 2 0x20200    1        cryptoret crypto_
 1                0        1          0 2  0x4000    1             init    wait
 0               -1        0          0 2 0x20200    1          swapper schedul
db{1}>  0 2 0x20200    1          atabus0   atath
 2                0        0          0 2 0x20200    1        cryptoret crypto_
 1                0        1          0 2  0x4000    1             init    wait
 0               -1        0          0 2 0x20200    1          swapper schedul
db{1}> 


The kernel configs can be found here:

http://random.tastylime.net/netbsd/TYAN251X
http://random.tastylime.net/netbsd/TYAN251X.MP

[I suspect that attaching those is why my previous messages got filtered]

Thanks,
+j