From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 20C6C3858C83; Sun, 2 Apr 2023 00:35:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 20C6C3858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1680395706; bh=oR3V2ICy/EXHENmTiNKzU0s8Lcl9vY/5vk63WvsPF34=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EVnf41Z7dxiFREEbXob4+4bsbFOipa5iaYgnU8wiV7LKv5kx4R3A+3Bm8YodZXUdV UX6CCBmSusgXzvyLz3ZDxE7DTsMQ9nJKyWW66iYkc/fLfADxMX9V4moLh4PFb+uIYl pi0cN7xohTUr3w+1MgT/0Ctuwiy9LGSaQDKoontY= From: "danglin at gcc dot gnu.org" To: glibc-bugs@sourceware.org Subject: [Bug nptl/30304] nptl/tst-pthread-gdb-attach test fails with new libc shared library version Date: Sun, 02 Apr 2023 00:35:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nptl X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin at gcc dot gnu.org 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30304 --- Comment #1 from John David Anglin --- With the following change: diff --git a/sysdeps/unix/sysv/linux/hppa/shlib-versions b/sysdeps/unix/sysv/linux/hppa/shlib-versions index 7818a32cc4..ae7e67bdbb 100644 --- a/sysdeps/unix/sysv/linux/hppa/shlib-versions +++ b/sysdeps/unix/sysv/linux/hppa/shlib-versions @@ -1,6 +1,6 @@ libm=3D6 GLIBC_2.2 -libc=3D6 GLIBC_2.2 +libc=3D6.1 GLIBC_2.2 ld=3Dld.so.1 GLIBC_2.2 The nptl/tst-pthread-gdb-attach and nptl/tst-pthread-gdb-attach-static tests fail. dave@atlas:~/gnu/glibc/objdir$ cat nptl/tst-pthread-gdb-attach.out +set debug libthread-db 1 +add-symbol-file /home/dave/gnu/glibc/objdir/nptl/tst-pthread-gdb-attach add symbol table from file "/home/dave/gnu/glibc/objdir/nptl/tst-pthread-gdb-attach" +set auto-load safe-path /home/dave/gnu/glibc/objdir/nptl_db +set libthread-db-search-path /home/dave/gnu/glibc/objdir/nptl_db +attach 5641 [New LWP 5642] Trying host libthread_db library: /home/dave/gnu/glibc/objdir/nptl_db/libthread_db.so.1. dlopen failed: libc.so.6.1: cannot open shared object file: No such file or directory. thread_db_load_search returning 0 Trying host libthread_db library: /home/dave/gnu/glibc/objdir/nptl_db/libthread_db.so.1. dlopen failed: libc.so.6.1: cannot open shared object file: No such file or directory. thread_db_load_search returning 0 warning: Unable to find libthread_db matching inferior's thread library, th= read debugging will not be available. clone () at ../sysdeps/unix/sysv/linux/hppa/clone.S:81 81 stwm %r26, 64(%r25) +break debugger_inspection_point warning: could not convert 'debugger_inspection_point' from the host encodi= ng (ANSI_X3.4-1968) to UTF-32. This normally should not happen, please file a bug report. Breakpoint 1 at 0x11c30: file tst-pthread-gdb-attach.c, line 127. +continue [Switching to LWP 5642] Thread 2 "ld.so.1" hit Breakpoint 1, debugger_inspection_point () at tst-pthread-gdb-attach.c:127 127 } +thread 1 [Switching to thread 1 (LWP 5641)] #0 clone () at ../sysdeps/unix/sysv/linux/hppa/clone.S:81 81 stwm %r26, 64(%r25) +print altered_by_debugger /tmp/tst-pthread-gdb-attach-MLOOoD:10: Error in sourced command file: Cannot find thread-local storage for LWP 5641, shared library /home/dave/gnu/glibc/objdir/nptl/tst-pthread-gdb-attach: Cannot find thread-local variables on this target [Inferior 1 (process 5641) detached] tst-pthread-gdb-attach.c:229: numeric comparison failure left: 256 (0x100); from: status right: 0 (0x0); from: 0 error: 1 test failures This can be fixed by setting LD_LIBRARY_PATH to the build directory in the all rule in Makefile.in but I don't know if this is correct fix. As things stand, the dlopen command loads the installed version of libc.c instead of the newly built version. --=20 You are receiving this mail because: You are on the CC list for the bug.=