Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Mar 2013 19:02:22 +0100
From:      Jeremie Le Hen <jlh@FreeBSD.org>
To:        freebsd-stable@FreeBSD.org
Cc:        jlh@FreeBSD.org
Subject:   gdb broken on 9.1/amd64?
Message-ID:  <20130306180222.GC5939@caravan.chchile.org>

next in thread | raw e-mail | index | archive | help
Hi guys,

(Can you please Cc: me on reply, I am not subscribed to this list.)

I have two different stable/9.1 amd64 machines which show the following
error message upon gdb startup:

/usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/solib-svr4.c:1444:
internal-error: legacy_fetch_link_map_offsets called without legacy
link_map support enabled.

Can you check if you have the same problem (same or other arch)?
Thanks.

Example below:

root@ingwe:~ # sleep 3600 &
[1] 521
root@ingwe:~ # gdb -p 521
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".
Attaching to process 521
/usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/solib-svr4.c:1444: internal-error: legacy_fetch_link_map_offsets called without legacy link_map support enabled.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n

/usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/solib-svr4.c:1444: internal-error: legacy_fetch_link_map_offsets called without legacy link_map support enabled.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n
Reading symbols from /bin/sleep...(no debugging symbols found)...done.
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
0x00000008059f188c in nanosleep () from /lib/libc.so.7
(gdb) bt
#0  0x00000008059f188c in nanosleep () from /lib/libc.so.7
#1  0x0000000000400883 in ?? ()
#2  0x00000000004006f1 in ?? ()
#3  0x0000000801890000 in ?? ()
#4  0x0000000000000000 in ?? ()


-- 
Jeremie Le Hen

Scientists say the world is made up of Protons, Neutrons and Electrons.
They forgot to mention Morons.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130306180222.GC5939>