public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/13011] New: GDB accesses internals of glibc's dynamic loader, failing to build with alternate libc
@ 2011-07-21 16:19 wkor97gy0eef1fr at p dot mintemail.com
2011-07-31 18:59 ` [Bug build/13011] GDB fails to build against Linux libc's (e.g. musl) without dladdr and libthread_db ppluzhnikov at google dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: wkor97gy0eef1fr at p dot mintemail.com @ 2011-07-21 16:19 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=13011
Summary: GDB accesses internals of glibc's dynamic loader,
failing to build with alternate libc
Product: gdb
Version: 7.2
Status: NEW
Severity: normal
Priority: P2
Component: build
AssignedTo: unassigned@sourceware.org
ReportedBy: wkor97gy0eef1fr@p.mintemail.com
it wrongly assumes that any system out there has the same internals as glibc.
if it uses those internals at all, it should at least check if they are
available and if not choose an alternate implementation that doesn't rely on
those internals (even it if its just a "sorry, this function is not available"
implementation).
tested against musl libc 0.7.2
linux-thread-db.Tpo linux-thread-db.c
linux-thread-db.c: In function `dladdr_to_soname':
linux-thread-db.c:618: error: `Dl_info' undeclared (first use in this function)
linux-thread-db.c:618: error: (Each undeclared identifier is reported only once
linux-thread-db.c:618: error: for each function it appears in.)
linux-thread-db.c:618: error: syntax error before "info"
linux-thread-db.c:620: warning: implicit declaration of function `dladdr'
linux-thread-db.c:620: error: `info' undeclared (first use in this function)
linux-thread-db.c: In function `try_thread_db_load_1':
linux-thread-db.c:717: error: `LIBTHREAD_DB_SO' undeclared (first use in this
function)
linux-thread-db.c: In function `thread_db_load_search':
linux-thread-db.c:803: error: `LIBTHREAD_DB_SO' undeclared (first use in this
function)
linux-thread-db.c: In function `thread_db_load':
linux-thread-db.c:890: error: `LIBTHREAD_DB_SO' undeclared (first use in this
function)
linux-thread-db.c: In function `thread_db_pid_to_str':
linux-thread-db.c:1488: warning: long unsigned int format, thread_t arg (arg 4)
linux-thread-db.c: In function `thread_db_find_thread_from_tid':
linux-thread-db.c:1597: warning: comparison between pointer and integer
linux-thread-db.c: In function `_initialize_thread_db':
linux-thread-db.c:1676: error: `LIBTHREAD_DB_SEARCH_PATH' undeclared (first use
in this function)
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug build/13011] GDB fails to build against Linux libc's (e.g. musl) without dladdr and libthread_db
2011-07-21 16:19 [Bug build/13011] New: GDB accesses internals of glibc's dynamic loader, failing to build with alternate libc wkor97gy0eef1fr at p dot mintemail.com
@ 2011-07-31 18:59 ` ppluzhnikov at google dot com
2011-07-31 19:00 ` ppluzhnikov at google dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: ppluzhnikov at google dot com @ 2011-07-31 18:59 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=13011
Paul Pluzhnikov <ppluzhnikov at google dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ppluzhnikov at google dot
| |com
Summary|GDB accesses internals of |GDB fails to build against
|glibc's dynamic loader, |Linux libc's (e.g. musl)
|failing to build with |without dladdr and
|alternate libc |libthread_db
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug build/13011] GDB fails to build against Linux libc's (e.g. musl) without dladdr and libthread_db
2011-07-21 16:19 [Bug build/13011] New: GDB accesses internals of glibc's dynamic loader, failing to build with alternate libc wkor97gy0eef1fr at p dot mintemail.com
2011-07-31 18:59 ` [Bug build/13011] GDB fails to build against Linux libc's (e.g. musl) without dladdr and libthread_db ppluzhnikov at google dot com
@ 2011-07-31 19:00 ` ppluzhnikov at google dot com
2012-10-21 14:37 ` bugdal at aerifal dot cx
2015-09-26 5:13 ` xdje42 at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: ppluzhnikov at google dot com @ 2011-07-31 19:00 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=13011
--- Comment #1 from Paul Pluzhnikov <ppluzhnikov at google dot com> 2011-07-31 18:59:53 UTC ---
This doesn't have anything to do with glibc internals -- dladdr() is a
published *external* glibc interface.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug build/13011] GDB fails to build against Linux libc's (e.g. musl) without dladdr and libthread_db
2011-07-21 16:19 [Bug build/13011] New: GDB accesses internals of glibc's dynamic loader, failing to build with alternate libc wkor97gy0eef1fr at p dot mintemail.com
2011-07-31 18:59 ` [Bug build/13011] GDB fails to build against Linux libc's (e.g. musl) without dladdr and libthread_db ppluzhnikov at google dot com
2011-07-31 19:00 ` ppluzhnikov at google dot com
@ 2012-10-21 14:37 ` bugdal at aerifal dot cx
2015-09-26 5:13 ` xdje42 at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: bugdal at aerifal dot cx @ 2012-10-21 14:37 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=13011
Rich Felker <bugdal at aerifal dot cx> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugdal at aerifal dot cx
--- Comment #2 from Rich Felker <bugdal at aerifal dot cx> 2012-10-21 14:37:00 UTC ---
It's true that it's a published external interface, but gdb should not use it
without testing for its existence. FYI we now provide dladdr in musl, but I
have not seen any good documentation on how to provide the thread debugging
hooks gdb wants, and it seems highly nontrivial. It would be helpful to have
this fixed, and for gdb to provide some minimal level of thread debugging
support without including half of the debugger in the program being debugged...
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug build/13011] GDB fails to build against Linux libc's (e.g. musl) without dladdr and libthread_db
2011-07-21 16:19 [Bug build/13011] New: GDB accesses internals of glibc's dynamic loader, failing to build with alternate libc wkor97gy0eef1fr at p dot mintemail.com
` (2 preceding siblings ...)
2012-10-21 14:37 ` bugdal at aerifal dot cx
@ 2015-09-26 5:13 ` xdje42 at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: xdje42 at gmail dot com @ 2015-09-26 5:13 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=13011
Doug Evans <xdje42 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |xdje42 at gmail dot com
Resolution|--- |FIXED
--- Comment #3 from Doug Evans <xdje42 at gmail dot com> ---
gdb and gdbserver build with musl now.
gdb requires a couple of minor patches, but they're not libthread_db related.
There's still a plethora of other issues of course.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-09-26 5:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-21 16:19 [Bug build/13011] New: GDB accesses internals of glibc's dynamic loader, failing to build with alternate libc wkor97gy0eef1fr at p dot mintemail.com
2011-07-31 18:59 ` [Bug build/13011] GDB fails to build against Linux libc's (e.g. musl) without dladdr and libthread_db ppluzhnikov at google dot com
2011-07-31 19:00 ` ppluzhnikov at google dot com
2012-10-21 14:37 ` bugdal at aerifal dot cx
2015-09-26 5:13 ` xdje42 at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).