Subject: Re: sleep forever (again)
To: None <port-sparc64@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-sparc64
Date: 12/02/2004 17:19:05
On Thu, Dec 02, 2004 at 05:16:05PM +0100, Manuel Bouyer wrote:
> Well, no. I managed to panic it from ddb :(
> 
> I set a breakpoint on cc_microtime(), thinking that one possible cause
> could be that it's looping here at splclock. It wasn't looping in there,
> but was called several time, before I got an alignement fault in ddb.

Here's the ddb session, in case it helps:

db> break cc_microtime
db> c
hme0: status=30001<GOTFRAME,RXTOHOST,NORXD>
kdb breakpoint at 13b14e0
Breakpoint in pid 269.1 (rpcbind) at    netbsd:cc_microtime:    save            %
sp, -0x70, %sp
db> tr
ltsleep(187eb08, 118, 0, bb9, 0, 0) at netbsd:ltsleep+0x3b4
sys_poll(0, 5e5fdd8, 5e5fdd0, 2, 5e5ff10, 200) at netbsd:sys_poll+0x1f0
syscall(5e5fed0, d1, 0, 0, 400bedb8, 5e5fdd8) at netbsd:syscall+0xe0
?(ffffc4f0, 7, 7530, 294c8, a, ffffc528) at 0x1008cb8
db> c
kdb breakpoint at 13b14e4
kdb breakpoint at 13b14e4
Stopped in pid 269.1 (rpcbind) at       netbsd:cc_microtime+0x8:        ld              [
%g1 + %g0], %g4
db> tr
mi_switch(1, 0, 126f280, 5d60908, 2, 1834cd8) at netbsd:mi_switch+0x204
ltsleep(187eb08, 118, 0, bb9, 0, 0) at netbsd:ltsleep+0x3b4
sys_poll(0, 5e5fdd8, 5e5fdd0, 2, 5e5ff10, 200) at netbsd:sys_poll+0x1f0
syscall(5e5fed0, d1, 0, 0, 400bedb8, 5e5fdd8) at netbsd:syscall+0xe0
?(ffffc4f0, 7, 7530, 294c8, a, ffffc528) at 0x1008cb8
db> c
trap type 0x34: pc=13b14e8 npc=13b14ec pstate=ffffffffff82000e<AM,PRIV,IE>
kernel trap 34: mem address not aligned
Stopped in pid 269.1 (rpcbind) at       netbsd:cc_microtime+0x8:        ld              [
%g1 + %g0], %g4
db> tr
mi_switch(1, 0, 126f280, 5d60908, 2, 1834cd8) at netbsd:mi_switch+0x204
ltsleep(187eb08, 118, 0, bb9, 0, 0) at netbsd:ltsleep+0x3b4
sys_poll(0, 5e5fdd8, 5e5fdd0, 2, 5e5ff10, 200) at netbsd:sys_poll+0x1f0
syscall(5e5fed0, d1, 0, 0, 400bedb8, 5e5fdd8) at netbsd:syscall+0xe0
?(ffffc4f0, 7, 7530, 294c8, a, ffffc528) at 0x1008cb8
db> c
panic: mem address not aligned
kdb breakpoint at 13c68a0
Stopped in pid 269.1 (rpcbind) at       netbsd:cpu_Debugger+0x4:        nop
db> c
syncing disks... hme0: status=30001<GOTFRAME,RXTOHOST,NORXD>

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--