public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/27526] New: Attaching to threaded process on glibc 2.33: libthread_db fails to initialize with "generic error"
@ 2021-03-05 16:48 simark at simark dot ca
  2021-03-05 16:59 ` [Bug gdb/27526] " simark at simark dot ca
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: simark at simark dot ca @ 2021-03-05 16:48 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27526

            Bug ID: 27526
           Summary: Attaching to threaded process on glibc 2.33:
                    libthread_db fails to initialize with "generic error"
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: simark at simark dot ca
  Target Milestone: ---

As reported here:

  https://sourceware.org/pipermail/gdb/2021-February/049208.html

On a Linux system with glibc 2.33, attaching to a threaded program gives:

$ pidof gnome-calculator 
1476833
(gdb) attach 1476833
Attaching to process 1476833
[New LWP 1476834]
[New LWP 1476835]
[New LWP 1476836]
LOOKUP nptl_version in libpthread.so.0
LOOKUP nptl_version in libpthread.so.0
LOOKUP _rtld_global in ld-linux-x86-64.so.2
LOOKUP _dl_stack_user in (null)
Error while reading shared library symbols for /usr/lib/libpthread.so.0:
Cannot find user-level thread for LWP 1476836: generic error
0x00007fdb0288b6ed in __GI___poll (fds=0x5581bab7b100, nfds=3, timeout=-1) at
../sysdeps/unix/sysv/linux/poll.c:29
29      ../sysdeps/unix/sysv/linux/poll.c: No such file or directory.
(gdb) 

The "LOOKUP" lines come from a print I added in ps_pglobal_lookup to see which
symbols libthread_db asks GDB to look up.

The lookup for _dl_stack_user is new with glibc 2.33, I don't see it with glibc
2.31 (I don't have a system with glibc 2.32 handy).  We fail to find a symbol
with this name, which fails the loading/initialization of libthread_db.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2021-06-21 16:39 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-05 16:48 [Bug gdb/27526] New: Attaching to threaded process on glibc 2.33: libthread_db fails to initialize with "generic error" simark at simark dot ca
2021-03-05 16:59 ` [Bug gdb/27526] " simark at simark dot ca
2021-03-05 19:12 ` fweimer at redhat dot com
2021-03-07  7:30 ` vries at gcc dot gnu.org
2021-03-07 23:08 ` simark at simark dot ca
2021-03-22  7:16 ` crvisqr at gmail dot com
2021-03-22 13:38 ` simark at simark dot ca
2021-03-31 17:00 ` vries at gcc dot gnu.org
2021-04-02 15:54 ` simark at simark dot ca
2021-05-06 13:04 ` vries at gcc dot gnu.org
2021-05-06 13:05 ` vries at gcc dot gnu.org
2021-05-06 13:20 ` simark at simark dot ca
2021-05-09 23:38 ` brobecker at gnat dot com
2021-06-20 15:55 ` brobecker at gnat dot com
2021-06-21 16:39 ` simark at simark dot ca

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).