Re: kgdb segfaulting

From: Lukas Ertl <le_at_FreeBSD.org>
Date: Sat, 20 Mar 2004 22:47:17 +0100 (CET)
On Sat, 20 Mar 2004, Lukas Ertl wrote:

> # gdb -k kernel.0 vmcore.0
> [...]
> Segmentation fault (core dumped)

Here's the backtrace from gdb.core:

---8<---
Script started on Sat Mar 20 22:38:43 2004
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 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-undermydesk-freebsd"...
Core was generated by `gdb'.
Program terminated with signal 11, Segmentation fault.
#0  0x08198a25 in __vfprintf ()
(gdb) where
#0  0x08198a25 in __vfprintf ()
#1  0x0816d13a in vasprintf ()
#2  0x080b19ba in xvasprintf (ret=0xbfbfe4e0,
    format=0x8210637 "can not access 0x%x, %s\n", ap=0xbfbfe518 "")
    at /usr/src/contrib/gdb/gdb/utils.c:1123
#3  0x080b27fe in vfprintf_unfiltered (stream=0x827d040,
    format=0x8210637 "can not access 0x%x, %s\n", args=0xbfbfe518 "")
    at /usr/src/contrib/gdb/gdb/utils.c:1998
#4  0x080b2891 in fprintf_unfiltered (stream=0x827d040,
    format=0x8210637 "can not access 0x%x, %s\n")
    at /usr/src/contrib/gdb/gdb/utils.c:2030
#5  0x080f87ae in xfer_kmem (memaddr=13817010808862801920,
    myaddr=0xbfbfe630 "", len=256, write=0, attrib=0x8246cdc, target=0x82785e0)
    at /usr/src/gnu/usr.bin/binutils/gdb/kvm-fbsd.c:653
#6  0x080a6514 in do_xfer_memory (memaddr=13817010808862801920,
    myaddr=0xbfbfe630 "", len=256, write=0, attrib=0x8246cdc)
    at /usr/src/contrib/gdb/gdb/target.c:885
#7  0x080a6668 in target_xfer_memory (memaddr=13817010808862801920,
    myaddr=0xbfbfe630 "", len=256, write=0)
    at /usr/src/contrib/gdb/gdb/target.c:957
#8  0x080a6445 in target_read_memory (memaddr=4294967296,
    myaddr=0xbfbfe630 "", len=256) at /usr/src/contrib/gdb/gdb/target.c:831
#9  0x080f82ea in kcore_open (
    filename=0x9522ac0 "/usr/local/tmp/crash/vmcore.0", from_tty=1)
    at /usr/src/gnu/usr.bin/binutils/gdb/kvm-fbsd.c:293
#10 0x0805888c in core_file_command (filename=0xbfbfec48 "vmcore.0",
    from_tty=1) at /usr/src/contrib/gdb/gdb/corefile.c:79
#11 0x080a90ed in do_captured_command (data=0x0)
    at /usr/src/contrib/gdb/gdb/top.c:520
#12 0x080a908e in do_catch_errors (uiout=0x82a6680, data=0x0)
    at /usr/src/contrib/gdb/gdb/top.c:491
#13 0x080a8f86 in catcher (func=0x80a9080 <do_catch_errors>,
    func_uiout=0x82a6680, func_args=0xbfbfe860, func_val=0xbfbfe858,
    func_caught=0xbfbfe85c, errstring=0x0, mask=6)
    at /usr/src/contrib/gdb/gdb/top.c:423
---Type <return> to continue, or q <return> to quit---
#14 0x080a90c4 in catch_errors (func=0x80a90dc <do_captured_command>,
    func_args=0x0, errstring=0x81c0a20 "", mask=6)
    at /usr/src/contrib/gdb/gdb/top.c:503
#15 0x080a912e in catch_command_errors (command=0, arg=0x0, from_tty=0, mask=6)
    at /usr/src/contrib/gdb/gdb/top.c:540
#16 0x08078db3 in captured_main (data=0x0)
    at /usr/src/contrib/gdb/gdb/main.c:602
#17 0x080a908e in do_catch_errors (uiout=0x823dd80, data=0x0)
    at /usr/src/contrib/gdb/gdb/top.c:491
#18 0x080a8f86 in catcher (func=0x80a9080 <do_catch_errors>,
    func_uiout=0x823dd80, func_args=0xbfbfeac0, func_val=0xbfbfeab8,
    func_caught=0xbfbfeabc, errstring=0x0, mask=6)
    at /usr/src/contrib/gdb/gdb/top.c:423
#19 0x080a90c4 in catch_errors (func=0x807855c <captured_main>, func_args=0x0,
    errstring=0x81c0a20 "", mask=6) at /usr/src/contrib/gdb/gdb/top.c:503
#20 0x08078f56 in main (argc=4, argv=0x0)
    at /usr/src/contrib/gdb/gdb/main.c:734
#21 0x08048136 in _start ()
(gdb) quit

Script done on Sat Mar 20 22:38:50 2004
---8<---

-- 
Lukas Ertl                           http://mailbox.univie.ac.at/~le/
le_at_FreeBSD.org                       http://people.freebsd.org/~le/
Received on Sat Mar 20 2004 - 12:47:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:48 UTC