From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C11313AAA0E7; Fri, 5 Mar 2021 16:59:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C11313AAA0E7 From: "simark at simark dot ca" To: gdb-prs@sourceware.org Subject: [Bug gdb/27526] Attaching to threaded process on glibc 2.33: libthread_db fails to initialize with "generic error" Date: Fri, 05 Mar 2021 16:59:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: simark at simark dot ca X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2021 16:59:45 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27526 --- Comment #1 from Simon Marchi --- The stack trace where the lookup for _dl_stack_user happens: #0 ps_pglobal_lookup (ph=3D0x60c000037fe8, obj=3D0x0, name=3D0x7fffde34e6bd "_dl_stack_user", sym_addr=3D0x6170000477c8) at /home/simark/src/binutils-gdb/gdb/proc-service.c:102 #1 0x00007fffde34c7cc in td_mod_lookup (ps=3D, mod=3Dmod@en= try=3D0x0, idx=3Didx@entry=3D54, sym_addr=3Dsym_addr@entry=3D0x6170000477c8) at td_symbol_list.c:48 #2 0x00007fffde34b131 in __td_ta_stack_user (ta=3Dta@entry=3D0x61700004758= 0, plist=3Dplist@entry=3D0x7fffffffb000) at td_thr_validate.c:32 #3 0x00007fffde349b8c in td_ta_map_lwp2thr (ta_arg=3D0x617000047580, lwpid=3D1476836, th=3D0x7fffffffb0a0) at td_ta_map_lwp2thr.c:190 #4 0x000055555d54fbc2 in thread_from_lwp (stopped=3D0x61700003a700, ptid= =3D...) at /home/simark/src/binutils-gdb/gdb/linux-thread-db.c:415 #5 0x000055555d554b6b in try_thread_db_load_1 (info=3D0x60c000037fc0) at /home/simark/src/binutils-gdb/gdb/linux-thread-db.c:912 #6 0x000055555d555837 in try_thread_db_load (library=3D0x555560734260 "libthread_db.so.1", check_auto_load_safe=3Dfalse) at /home/simark/src/binutils-gdb/gdb/linux-thread-db.c:1014 #7 0x000055555d55689c in try_thread_db_load_from_sdir () at /home/simark/src/binutils-gdb/gdb/linux-thread-db.c:1091 #8 0x000055555d557450 in thread_db_load_search () at /home/simark/src/binutils-gdb/gdb/linux-thread-db.c:1146 #9 0x000055555d557d90 in thread_db_load () at /home/simark/src/binutils-gdb/gdb/linux-thread-db.c:1203 #10 0x000055555d557e72 in check_for_thread_db () at /home/simark/src/binutils-gdb/gdb/linux-thread-db.c:1246 #11 0x000055555d557fdf in thread_db_new_objfile (objfile=3D0x614000007040) = at /home/simark/src/binutils-gdb/gdb/linux-thread-db.c:1275 ... --=20 You are receiving this mail because: You are on the CC list for the bug.=