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 11/26/14 02:49, Andy Ruhl wrote:
Hello all,

I just had a panic on my Dockstar. I compiled the kernel from netbsd-7
source synched about a few hours ago, and it has a userland from earlier
today. I added the athn driver because that's the USB wifi device I want to
use. The kernel was cross compiled on an i386 machine using the -m evbarm
flag (is this right?).

Here's what it looks like:

uvm_fault(0xc058a150, 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 =c288ce00
r8 =00003ff4, r9 =00000041, r10=00000000, r11=c7e71eec
r12=00001388, ssp=c7e71e88, slr=c00d5614, pc =c0310814

Stopped in pid 0.3 (system) at  netbsd:usbd_setup_xfer+0x4:     ldrb    r4,
[r0,
  #0x050]
db>
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>

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

Nick



Home | Main Index | Thread Index | Old Index