Re: Fatal trap 30 when loading if_xl

From: John Baldwin <jhb_at_freebsd.org>
Date: Fri, 25 Aug 2006 10:12:42 -0400
On Saturday 19 August 2006 17:18, Paolo Pisati wrote:
> Today's CURRENT panic my box everytime i load
> if_xl:
> 
> [flag_at_newluxor NEWLUXOR]$ sudo kgdb kernel.debug /var/crash/vmcore.0
> [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
> GNU gdb 6.1.1 [FreeBSD]
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i386-marcel-freebsd".

30 (unknown trap) can mean that you got a device interrupt to an IDT
entry you haven't installed a handler for yet.  If you want to figure
out exactly which IDT entry, you'll need to install a unique custom
dummy handler in each IDT entry so you can tell which one fired.

> Unread portion of the kernel message buffer:
> <118>.
> <118>.
> <118>Aug 19 22:38:31 newluxor syslogd: exiting on signal 15
> <118>Enter full pathname of shell or RETURN for /bin/sh:
> <118>#
> <118>/dev/ad4s1a on / (ufs, local)
> <118>devfs on /dev (devfs, local)
> <118>/dev/ad4s1d on /usr (ufs, local, soft-updates)
> <118>/dev/ad4s5 on /storage (msdosfs, local)
> <118>procfs on /proc (procfs, local)
> <118>linprocfs on /usr/compat/linux/proc (linprocfs, local)
> <118># 
> <118># 
> <118># 
> <118>/dev/ad4s1a on / (ufs, local)
> <118>devfs on /dev (devfs, local)
> <118>/dev/ad4s1d on /usr (ufs, local, soft-updates)
> <118>/dev/ad4s5 on /storage (msdosfs, local)
> <118># 
> <118># 
> <118>/dev/ad4s1a on / (ufs, local)
> <118>devfs on /dev (devfs, local)
> <118>/dev/ad4s1d on /usr (ufs, local, soft-updates)
> <118># 
> <118># 
> <118>umount:
> <118>unmount of /dev failed
> <118>: 
> <118>Device busy
> <118># 
> <118>.cshrc             cdrom           home            media           storage
> <118>.profile   compat          lib             mnt             sys
> <118>.snap              dev             libexec         proc            tmp
> <118>COPYRIGHT  dist            linc_data       rescue          usr
> <118>bin                entropy         linc_storage    root            var
> <118>boot               etc             lost+found      sbin
> <118># 
> xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xcc00-0xcc7f mem 0xff8ffc00-0xff8ffc7f irq 18 at device 2.0 on pci1
> 
> Fatal trap 30: reserved (unknown) fault while in kernel mode
> cpuid = 0; apic id = 00
> instruction pointer     = 0x20:0xc04ef25b
> stack pointer           = 0x28:0xe3491c34
> frame pointer           = 0x28:0xe3491c50
> code segment            = base 0x0, limit 0xfffff, type 0x1b
>                         = DPL 0, pres 1, def32 1, gran 1
> processor eflags        = interrupt enabled, IOPL = 0
> current process         = 12 (swi4: clock sio)
> panic: from debugger
> cpuid = 0
> Uptime: 2m36s
> Physical memory: 2031 MB
> Dumping 61 MB: 46 30 14
> 
> #0  doadump () at pcpu.h:166
> 166             __asm __volatile("movl %%fs:0,%0" : "=r" (td));
> (kgdb) bt            
> #0  doadump () at pcpu.h:166
> #1  0xc04f9cd4 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409
> #2  0xc04fa0b3 in panic (fmt=0xc06976c3 "from debugger")
>     at /usr/src/sys/kern/kern_shutdown.c:565
> #3  0xc0451b47 in db_panic (addr=-1068567973, have_addr=0, count=-1, 
>     modif=0xe3491a1c "") at /usr/src/sys/ddb/db_command.c:428
> #4  0xc0451ada in db_command (last_cmdp=0xc06ef7c4, cmd_table=0x0)
>     at /usr/src/sys/ddb/db_command.c:396
> #5  0xc0451ba1 in db_command_loop () at /usr/src/sys/ddb/db_command.c:448
> #6  0xc0453ae9 in db_trap (type=30, code=0) at /usr/src/sys/ddb/db_main.c:221
> #7  0xc051bcde in kdb_trap (type=0, code=0, tf=0xe3491bf4)
>     at /usr/src/sys/kern/subr_kdb.c:502
> #8  0xc066f602 in trap_fatal (frame=0xe3491bf4, eva=0)
>     at /usr/src/sys/i386/i386/trap.c:858
> #9  0xc066f04d in trap (frame=
>       {tf_fs = -1066467320, tf_es = -481755096, tf_ds = 40, tf_edi = -997181328, tf_esi = -996104080, tf_ebp = -481747888, tf_isp = -481747936, tf_ebx = -1066453624, tf_edx = 4, tf_ecx = -996104080, tf_eax = 582, tf_trapno = 30, tf_err = 0, tf_eip = -1068567973, tf_cs = 32, tf_eflags = 582, tf_esp = -1066453624, tf_ss = -1066446508}) at /usr/src/sys/i386/i386/trap.c:658
> #10 0xc065766a in calltrap () at /usr/src/sys/i386/i386/exception.s:138
> #11 0xc04ef25b in _mtx_lock_sleep (m=0xc06f3588, tid=3297785968, opts=0, 
>     file=0x0, line=0) at cpufunc.h:317
> #12 0xc050c028 in softclock (dummy=0x0) at /usr/src/sys/kern/kern_timeout.c:240
> #13 0xc04dfbbf in ithread_execute_handlers (p=0xc49028d0, ie=0xc4957180)
>     at /usr/src/sys/kern/kern_intr.c:662
> #14 0xc04dfd05 in ithread_loop (arg=0xc48c68f0)
>     at /usr/src/sys/kern/kern_intr.c:745
> #15 0xc04de558 in fork_exit (callout=0xc04dfca1 <ithread_loop>, arg=0x246, 
>     frame=0x246) at /usr/src/sys/kern/kern_fork.c:818
> #16 0xc06576cc in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:199
> (kgdb) frame 12
> #12 0xc050c028 in softclock (dummy=0x0) at /usr/src/sys/kern/kern_timeout.c:240
> 240                                             mtx_lock(c_mtx);
> (kgdb) p c_mtx
> $1 = (struct mtx *) 0xc06f3588
> (kgdb) p *c_mtx
> $2 = {mtx_object = {lo_name = 0xc06a1779 "Giant", 
>     lo_type = 0xc06a1779 "Giant", lo_flags = 17498112, lo_witness_data = {
>       lod_list = {stqe_next = 0x0}, lod_witness = 0x0}}, 
>   mtx_lock = 3298863219, mtx_recurse = 1}
> (kgdb) 
> 
> bye

-- 
John Baldwin
Received on Fri Aug 25 2006 - 12:24:53 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:59 UTC