Subject: little help with ddb(4)?
To: None <current-users@netbsd.org>
From: Jeff Rizzo <riz@boogers.sf.ca.us>
List: current-users
Date: 02/08/2004 19:29:46
I'm hoping someone can point me at some documentation that helps, or
even just a quick "here's how to find out what you want to find out".

I've got a soekris box running 1.6ZG (i386) which boots just fine
over the network, but is hanging when booting from CF, long enough
to trigger the watchdog reset.  Basically, I'd like to find out what
it's doing at this point, so I disabled the watchdog and sure enough,
it hangs for an indefinite period during (I think) the network configuration
on bootup.  Dropping into ddb, I see:

[most boot messages elided]
Configuring network interfaces: sip0 gif0add net default: gateway 2001:470:1f01:257:104::1
 gif1add net 10.1.0.0: gateway 199.233.217.238
add net 10.2.0.0: gateway 199.233.217.238
.
add net default: gateway 199.233.217.242
Adding interface aliases:

~Stopped at      netbsd:cpu_Debugger+0x4:        popl    %ebp
db> ps
 PID           PPID     PGRP        UID S   FLAGS LWPS          COMMAND    WAIT
 1363          1272     1183          0 2  0x4002    1            sleep nanosle
 1272          1183     1183          0 2     0x2    1               sh    wait
 1241             1     1241          0 2       0    1        mount_mfs  mfsidl
 1236             1     1236          0 2       0    1        mount_mfs  mfsidl
 1229             1     1229          0 2       0    1        mount_mfs  mfsidl
 1183             1     1183          0 2  0x4002    1               sh    wait
 11               1       11          0 2       0    1        mount_mfs  mfsidl
 9                0        0          0 2 0x20200    1         aiodoned aiodone
 8                0        0          0 2 0x20200    1          ioflush  syncer
 7                0        0          0 2 0x20200    1           reaper  reaper
 6                0        0          0 2 0x20200    1       pagedaemon pgdaemo
 5                0        0          0 2 0x20200    1          atabus0   atath
 4                0        0          0 2 0x20200    1        cardslot1 cardslo
 3                0        0          0 2 0x20200    1        cardslot0 cardslo
 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>


which, because I'm clueless, doesn't help me much.  Any pointers to
documentation on how to proceed from here (I've read ddb(4)) would be
most welcome...

Thanks,
+j

-- 
Jeff Rizzo                                         http://boogers.sf.ca.us/~riz