public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/30304] New: nptl/tst-pthread-gdb-attach test fails with new libc shared library version
@ 2023-04-02  0:24 danglin at gcc dot gnu.org
  2023-04-02  0:35 ` [Bug nptl/30304] " danglin at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: danglin at gcc dot gnu.org @ 2023-04-02  0:24 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 30304
           Summary: nptl/tst-pthread-gdb-attach test fails with new libc
                    shared library version
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nptl
          Assignee: unassigned at sourceware dot org
          Reporter: danglin at gcc dot gnu.org
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---
              Host: hppa*-*-linux*
            Target: hppa*-*-linux*
             Build: hppa*-*-linux*

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

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

* [Bug nptl/30304] nptl/tst-pthread-gdb-attach test fails with new libc shared library version
  2023-04-02  0:24 [Bug nptl/30304] New: nptl/tst-pthread-gdb-attach test fails with new libc shared library version danglin at gcc dot gnu.org
@ 2023-04-02  0:35 ` danglin at gcc dot gnu.org
  2023-04-02  8:08 ` schwab@linux-m68k.org
  2023-04-03  5:44 ` sam at gentoo dot org
  2 siblings, 0 replies; 4+ messages in thread
From: danglin at gcc dot gnu.org @ 2023-04-02  0:35 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #1 from John David Anglin <danglin at gcc dot gnu.org> ---
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=6                 GLIBC_2.2

-libc=6                 GLIBC_2.2
+libc=6.1               GLIBC_2.2

 ld=ld.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, thread
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 encoding
(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.

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

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

* [Bug nptl/30304] nptl/tst-pthread-gdb-attach test fails with new libc shared library version
  2023-04-02  0:24 [Bug nptl/30304] New: nptl/tst-pthread-gdb-attach test fails with new libc shared library version danglin at gcc dot gnu.org
  2023-04-02  0:35 ` [Bug nptl/30304] " danglin at gcc dot gnu.org
@ 2023-04-02  8:08 ` schwab@linux-m68k.org
  2023-04-03  5:44 ` sam at gentoo dot org
  2 siblings, 0 replies; 4+ messages in thread
From: schwab@linux-m68k.org @ 2023-04-02  8:08 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #2 from Andreas Schwab <schwab@linux-m68k.org> ---
Probably the test should be run in the container.

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

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

* [Bug nptl/30304] nptl/tst-pthread-gdb-attach test fails with new libc shared library version
  2023-04-02  0:24 [Bug nptl/30304] New: nptl/tst-pthread-gdb-attach test fails with new libc shared library version danglin at gcc dot gnu.org
  2023-04-02  0:35 ` [Bug nptl/30304] " danglin at gcc dot gnu.org
  2023-04-02  8:08 ` schwab@linux-m68k.org
@ 2023-04-03  5:44 ` sam at gentoo dot org
  2 siblings, 0 replies; 4+ messages in thread
From: sam at gentoo dot org @ 2023-04-03  5:44 UTC (permalink / raw)
  To: glibc-bugs

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

Sam James <sam at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at gentoo dot org

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

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

end of thread, other threads:[~2023-04-03  5:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-02  0:24 [Bug nptl/30304] New: nptl/tst-pthread-gdb-attach test fails with new libc shared library version danglin at gcc dot gnu.org
2023-04-02  0:35 ` [Bug nptl/30304] " danglin at gcc dot gnu.org
2023-04-02  8:08 ` schwab@linux-m68k.org
2023-04-03  5:44 ` sam at gentoo dot org

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