Re: FreeBSD 5.3 crash (core with debug symbols available)

From: Dariusz Kulinski <d.kulinski_at_gmail.com>
Date: Tue, 1 Mar 2005 10:40:45 -0800
Hello,

Today I had another crash (It looks like is unrelated, since it
happened at night, when I wasn't doing anything, but is really 
strange that is that is exactly same line, as in previous one).

(this time I wrote "panic" right away in the debugger, as it was in
manual)

--- dmesg ---
kernel trap 12 with interrupts disabled


Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xd131cc64
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc04e9d3f
stack pointer           = 0x10:0xcbd25c24
frame pointer           = 0x10:0xcbd25c44
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = resume, IOPL = 0
current process         = 27 (swi5: clock sio)
panic: from debugger
KDB: stack backtrace:
Uptime: 10d12h46m53s
Dumping 255 MB
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Dump complete
Automatic reboot in 15 seconds - press a key on the console to abort
--- dmesg ---

--- kgdb ---
[chinatsu]:/usr/obj/usr/src/sys/CHINATSU# kgdb kernel.debug /var/crash/vmcore.1
[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".
doadump () at pcpu.h:159
(kgdb) list *0xc04e9d3f
0xc04e9d3f is in sigtd (/usr/src/sys/kern/kern_sig.c:1581).
1576   * way to deliver signal.
1577   */
1578  signal_td = NULL;
1579  mtx_lock_spin(&sched_lock);
1580  FOREACH_THREAD_IN_PROC(p, td) {
1581   if (td->td_waitset != NULL &&
1582       SIGISMEMBER(*(td->td_waitset), sig)) {
1583        mtx_unlock_spin(&sched_lock);
1584        return (td);
1585   }
(kgdb) bt
#0  doadump () at pcpu.h:159
#1  0xc04e6024 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:397
#2  0xc04e63d9 in panic (fmt=0xc06c3f8d "from debugger") at /usr/src/sys/kern/kern_shutdown.c:553
#3  0xc0441c22 in db_panic (addr=-1068589761, have_addr=0, count=-1, modif=0xcbd25a54 "")
    at /usr/src/sys/ddb/db_command.c:435
#4  0xc0441b92 in db_command (last_cmdp=0xc071bf24, cmd_table=0x0, aux_cmd_tablep=0xc06ea7fc, aux_cmd_tablep_end=0xc06ea800)
    at /usr/src/sys/ddb/db_command.c:349
#5  0xc0441ca5 in db_command_loop () at /usr/src/sys/ddb/db_command.c:455
#6  0xc0443df5 in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_main.c:221
#7  0xc0503b87 in kdb_trap (type=0, code=0, tf=0xcbd25be4) at /usr/src/sys/kern/subr_kdb.c:418
#8  0xc069e014 in trap_fatal (frame=0xcbd25be4, eva=0) at /usr/src/sys/i386/i386/trap.c:804
#9  0xc069d633 in trap (frame=
      {tf_fs = -1051852776, tf_es = 16, tf_ds = -1051852784, tf_edi = 0, tf_esi = 0, tf_ebp = -875406268, tf_isp = -875406320, tf_ebx = -1048401968, tf_edx = 8192, tf_ecx = 13, tf_eax = -785265564, tf_trapno = 12, tf_err = 0, tf_eip = -1068589761, tf_cs = 8, tf_eflags = 65666, tf_esp = 0, tf_ss = -1051819632}) at /usr/src/sys/i386/i386/trap.c:247
#10 0xc068ad7a in calltrap () at /usr/src/sys/i386/i386/exception.s:140
#11 0xc14e0018 in ?? ()
#12 0x00000010 in ?? ()
#13 0xc14e0010 in ?? ()
#14 0x00000000 in ?? ()
#15 0x00000000 in ?? ()
#16 0xcbd25c44 in ?? ()
#17 0xcbd25c10 in ?? ()
#18 0xc182a7d0 in ?? ()
#19 0x00002000 in ?? ()
#20 0x0000000d in ?? ()
#21 0xd131cc64 in ?? ()
#22 0x0000000c in ?? ()
#23 0x00000000 in ?? ()
#24 0xc04e9d3f in sigtd (p=0xc183554c, sig=14, prop=129) at /usr/src/sys/kern/kern_sig.c:1581
#25 0xc04e9e2b in psignal (p=0x0, sig=14) at /usr/src/sys/kern/kern_sig.c:1634
#26 0xc04f5170 in realitexpire (arg=0xc183554c) at /usr/src/sys/kern/kern_time.c:554
#27 0xc04f595e in softclock (dummy=0x0) at /usr/src/sys/kern/kern_timeout.c:259
#28 0xc04cbed8 in ithread_loop (arg=0xc14dd580) at /usr/src/sys/kern/kern_intr.c:547
#29 0xc04cac10 in fork_exit (callout=0xc04cbd20 <ithread_loop>, arg=0x0, frame=0x0) at /usr/src/sys/kern/kern_fork.c:811
#30 0xc068addc in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:209
(kgdb)
--- kgdb ---

-- 
Best regards,
 Dariusz                            mailto:d.kulinski_at_gmail.com
http://www.takeda.tk
Received on Tue Mar 01 2005 - 17:40:53 UTC

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