Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Panic on Dockstar (sheevaplug) with netbsd-7



On Thu, Nov 27, 2014 at 4:16 AM, Nick Hudson <skrll%netbsd.org@localhost> wrote:

It looks like usbd_setup_xfer is being passed a null pointer as the xfer handle by
something in athn (athn_usb_intr doesn't look right).

If you have a debug kernel you can work out source lines. For example, (taken
from an rpi)


db> bt
0xca973e3c: netbsd:plcomintr+0xc
0xca973e5c: netbsd:pic_dispatch+0x28
0xca973edc: netbsd:pic_do_pending_ints+0x380
0xca973fac: netbsd:irq_entry+0x60
db> print pic_dispatch+0x28
        c01c16c8
db>


and then on a running system

zoom$ armv6--netbsdelf-eabihf-addr2line -a c01c16c8 -e netbsd.gdb
0xc01c16c8
/usr/src/sys/arch/arm/pic/pic.c:309

This is line for the return address.

Can you do this for the pc address (pc =c0310814 here) and the first entry
in the backtrace next time it happens

I think I'm missing something here. I do have a debug kernel because it's on by default in the sheevaplug config and I haven't changed that part.

I got it to panic again, here's the output:

dockstar4# /etc/rc.d/hostapd restart
Stopping hostapd.
Waiting for PIDS: 1802
uvm_fault(0xc058a1a0, 0, 1) -> e
Fatal kernel mode data abort: 'Translation Fault (P)'
trapframe: 0xc7e71e38
FSR=00000017, FAR=00000050, spsr=60000013
r0 =00000000, r1 =c2302790, r2 =c2792f24, r3 =c8a73000
r4 =c278f000, r5 =00000000, r6 =c2792f24, r7 =c288dc00
r8 =00003ff4, r9 =00000041, r10=00000000, r11=c7e71eec
r12=00001388, ssp=c7e71e88, slr=c00d58bc, pc =c03116b0

Stopped in pid 0.3 (system) at  netbsd:usbd_setup_xfer+0x4:     ldrb    r4, [r0,
 #0x050]
db> bt
0xc7e71eec: netbsd:athn_usb_intr+0x10
0xc7e71f24: netbsd:usb_transfer_complete+0x3dc
0xc7e71f5c: netbsd:ehci_softintr+0x1a0
0xc7e71f74: netbsd:usb_soft_intr+0x28
0xc7e71fac: netbsd:softint_thread+0xac
db> print athn_usb_intr+0x10
        c00d55a4

But if I try to get the output you asked for, I don't get it:

dockstar4# addr2line -a c03116b0 -e /netbsd 0xc03116b0
0xc03116b0
??:?
0xc03116b0
??:?
dockstar4# addr2line -a c00d55a4 -e /netbsd 0xc00d55a4
0xc00d55a4
??:?
0xc00d55a4
??:?

What is netbsd.gdb in your example? I assume it's the kernel?

Thanks!

Andy

 


Home | Main Index | Thread Index | Old Index