Detach of an0 induced kernel panic in 7.0-PRE

David Wolfskill david at catwhisker.org
Mon Oct 29 20:53:13 PDT 2007


On Tue, Oct 30, 2007 at 09:38:47AM +0800, Tai-hwa Liang wrote:
> ...
> >Unread portion of the kernel message buffer:
> >an0: RID access failed
> >an0: detached
> >
> >
> >Fatal trap 12: page fault while in kernel mode
> ...
> >#0  doadump () at pcpu.h:195
> >195             __asm __volatile("movl %%fs:0,%0" : "=r" (td));
> >(kgdb) bt
> >#0  doadump () at pcpu.h:195
> >#1  0xc073b637 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409
> >#2  0xc073b8f9 in panic (fmt=Variable "fmt" is not available.
> >) at /usr/src/sys/kern/kern_shutdown.c:563
> >#3  0xc0a005dc in trap_fatal (frame=0xe2987c1c, eva=3358077304)
> >   at /usr/src/sys/i386/i386/trap.c:872
> >#4  0xc0a00860 in trap_pfault (frame=0xe2987c1c, usermode=0, 
> >eva=3358077304)
> >   at /usr/src/sys/i386/i386/trap.c:785
> >#5  0xc0a011d5 in trap (frame=0xe2987c1c) at 
> >/usr/src/sys/i386/i386/trap.c:463
> >#6  0xc09e71eb in calltrap () at /usr/src/sys/i386/i386/exception.s:139
> >#7  0xc04daaf7 in an_stats_update (xsc=0xc8282000) at atomic.h:149
> >#8  0xc074d7ea in softclock (dummy=0x0) at 
> >/usr/src/sys/kern/kern_timeout.c:274
> >#9  0xc071ef0b in ithread_loop (arg=0xc3f0d2f0)
> >   at /usr/src/sys/kern/kern_intr.c:1036
> >#10 0xc071bc19 in fork_exit (callout=0xc071ed60 <ithread_loop>,
> >   arg=0xc3f0d2f0, frame=0xe2987d38) at /usr/src/sys/kern/kern_fork.c:796
> >#11 0xc09e7260 in fork_trampoline () at 
> >/usr/src/sys/i386/i386/exception.s:205
> >(kgdb)
> ...
>   Does the attached patch help?

Aye, it does appear to do so.

I tested at home, where the an0 NIC is actually useful.  But I managed
to detach the card before the script reported successful association;
the machine kept running (and the script fell back to trying the wi0
NIC, since the an0 NIC was  no longer there).

I'd call that a definite improvement -- and fast response!  Thanks again!

Peace,
david
-- 
David H. Wolfskill				david at catwhisker.org
Proprietary data formats obfuscate, rather than disseminate, information.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20071030/22372ba1/attachment.pgp


More information about the freebsd-current mailing list