Date: Fri, 16 Jul 2004 21:57:36 +0200 From: "Willem Jan Withagen" <wjw@withagen.nl> To: <current@FreeBSD.ORG> Subject: gdb crashes while trying to debug a core..... Message-ID: <0c4c01c46b6f$2475d360$471b3dd4@digiware.nl>
next in thread | raw e-mail | index | archive | help
> gdb /tmp/bin/rex rex.core 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 "amd64-marcel-freebsd"...Segmentation fault (core dumped) Fortunatly gdb6 from ports does still work..... > gdb6 /usr/obj/home2/src/gnu/usr.bin/gdb/gdb/gdb gdb.core GNU gdb 20040511 [GDB v6.x for 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 "x86_64-portbld-freebsd5.2"... Core was generated by `gdb'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libm.so.2...done. Loaded symbols for /lib/libm.so.2 Reading symbols from /lib/libreadline.so.4...done. Loaded symbols for /lib/libreadline.so.4 Reading symbols from /lib/libncurses.so.5...done. Loaded symbols for /lib/libncurses.so.5 Reading symbols from /lib/libc.so.5...done. Loaded symbols for /lib/libc.so.5 Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x000000000044f9c3 in gdbarch_info_fill (gdbarch=0x832010, info=0x7fffffffe240) at /home2/src/contrib/gdb/gdb/arch-utils.c:728 728 info->osabi = gdbarch_lookup_osabi (info->abfd); (gdb) bt #0 0x000000000044f9c3 in gdbarch_info_fill (gdbarch=0x832010, info=0x7fffffffe240) at /home2/src/contrib/gdb/gdb/arch-utils.c:728 #1 0x00000000004491a4 in find_arch_by_info (old_gdbarch=0x832010, info= {bfd_arch_info = 0x65edc0, byte_order = 2, abfd = 0x838600, tdep_info = 0x0, osabi = GDB_OSABI_UNINITIALIZED}) at /home2/src/contrib/gdb/gdb/gdbarch.c:5720 #2 0x000000000044955a in deprecated_current_gdbarch_select_hack ( new_gdbarch=0x832010) at /home2/src/contrib/gdb/gdb/gdbarch.c:5855 #3 0x000000000044f5ba in initialize_current_architecture () at /home2/src/contrib/gdb/gdb/arch-utils.c:591 #4 0x000000000044f5d5 in initialize_current_architecture () at /home2/src/contrib/gdb/gdb/arch-utils.c:597 #5 0x000000000044da88 in exec_file_command ( args=0x9 <Address 0x9 out of bounds>, from_tty=32767) at /home2/src/contrib/gdb/gdb/exec.c:302 #6 0x00000000004980b8 in quit_cover (s=0x7fffffffe560) at /home2/src/contrib/gdb/gdb/top.c:590 #7 0x0000000000498011 in catch_errors (func=0x839880, func_args=0x7fffffffe510, errstring=0x7fffffffe510 "\214\200I", mask=0) at /home2/src/contrib/gdb/gdb/top.c:540 #8 0x0000000000497d92 in catcher (func=0x497fe8 <catch_errors+76>, func_uiout=0x839880, func_args=0x7fffffffe510, func_val=0x7fffffffe530, func_caught=0x7fffffffe52c, errstring=0x6057a7 " not a command, just a help topic.", gdberrmsg=0x0, mask=6) at /home2/src/contrib/gdb/gdb/top.c:459 #9 0x000000000049806e in catch_command_errors ( command=0x49808c <catch_command_errors+56>, arg=0x7fffffffe560 "ðØD", from_tty=0, mask=6313895) at /home2/src/contrib/gdb/gdb/top.c:570 #10 0x000000000049810e in do_restore_instream_cleanup (stream=0x44d8f0) at /home2/src/contrib/gdb/gdb/top.c:636 #11 0x00007fffffffec4c in ?? () #12 0x0000000000000001 in ?? () #13 0x0000000000000000 in ?? () #14 0x00007fffffffe5a0 in ?? () #15 0x0000000100000006 in ?? () #16 0x00007fffffffec4c in ?? () #17 0x000000000044d8f0 in exec_file_attach ( filename=0x8b4cc78948fffe39 <Address 0x8b4cc78948fffe39 out of bounds>, from_tty=-1578631073) at /home2/src/contrib/gdb/gdb/exec.c:197 Previous frame inner to this frame (corrupt stack?) I'll leave the dumped gdb.core for the time being, in case Marcel wants to have a look at it. --WjW
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0c4c01c46b6f$2475d360$471b3dd4>