public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/17016] New: XFAIL: gdb.threads/dlopen-libpthread.exp: info probes all rtld rtld_map_complete
@ 2014-06-04 12:45 palves at redhat dot com
  2014-09-24 18:04 ` [Bug gdb/17016] " sergiodj at redhat dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: palves at redhat dot com @ 2014-06-04 12:45 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 17016
           Summary: XFAIL: gdb.threads/dlopen-libpthread.exp: info probes
                    all rtld rtld_map_complete
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: palves at redhat dot com

I'm seeing this new XFAIL/UNTESTED on Fedora 20, compared to a test run I had
done a month ago, on Fedora 17:

 -PASS: gdb.threads/dlopen-libpthread.exp: info probes all rtld
rtld_map_complete
 -PASS: gdb.threads/dlopen-libpthread.exp: libpthread.so not found
 -PASS: gdb.threads/dlopen-libpthread.exp: set variable
filename="dlopen-libpthread.so"
 -PASS: gdb.threads/dlopen-libpthread.exp: continue to breakpoint: notify
 -PASS: gdb.threads/dlopen-libpthread.exp: libpthread.so found
 +XFAIL: gdb.threads/dlopen-libpthread.exp: info probes all rtld
rtld_map_complete
 +UNTESTED: gdb.threads/dlopen-libpthread.exp: dlopen-libpthread.exp

I'm surprised this XFAILs on Fedora 20 while it passed on F17.  The .exp file
doesn't include any hint on why this could be normal.  If this is really
expected, and I'm missing something on my system, it'd be good if the test had
a comment to the effect.

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


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

* [Bug gdb/17016] XFAIL: gdb.threads/dlopen-libpthread.exp: info probes all rtld rtld_map_complete
  2014-06-04 12:45 [Bug gdb/17016] New: XFAIL: gdb.threads/dlopen-libpthread.exp: info probes all rtld rtld_map_complete palves at redhat dot com
@ 2014-09-24 18:04 ` sergiodj at redhat dot com
  2014-09-24 18:04 ` sergiodj at redhat dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sergiodj at redhat dot com @ 2014-09-24 18:04 UTC (permalink / raw)
  To: gdb-prs

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

Sergio Durigan Junior <sergiodj at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

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


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

* [Bug gdb/17016] XFAIL: gdb.threads/dlopen-libpthread.exp: info probes all rtld rtld_map_complete
  2014-06-04 12:45 [Bug gdb/17016] New: XFAIL: gdb.threads/dlopen-libpthread.exp: info probes all rtld rtld_map_complete palves at redhat dot com
  2014-09-24 18:04 ` [Bug gdb/17016] " sergiodj at redhat dot com
@ 2014-09-24 18:04 ` sergiodj at redhat dot com
  2022-12-24  7:45 ` vries at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sergiodj at redhat dot com @ 2014-09-24 18:04 UTC (permalink / raw)
  To: gdb-prs

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

Sergio Durigan Junior <sergiodj at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sergiodj at redhat dot com
           Assignee|unassigned at sourceware dot org   |sergiodj at redhat dot com

--- Comment #1 from Sergio Durigan Junior <sergiodj at redhat dot com> ---
Proposed patch: <https://sourceware.org/ml/gdb-patches/2014-09/msg00712.html>

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


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

* [Bug gdb/17016] XFAIL: gdb.threads/dlopen-libpthread.exp: info probes all rtld rtld_map_complete
  2014-06-04 12:45 [Bug gdb/17016] New: XFAIL: gdb.threads/dlopen-libpthread.exp: info probes all rtld rtld_map_complete palves at redhat dot com
  2014-09-24 18:04 ` [Bug gdb/17016] " sergiodj at redhat dot com
  2014-09-24 18:04 ` sergiodj at redhat dot com
@ 2022-12-24  7:45 ` vries at gcc dot gnu.org
  2022-12-24 11:19 ` [Bug testsuite/17016] " vries at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: vries at gcc dot gnu.org @ 2022-12-24  7:45 UTC (permalink / raw)
  To: gdb-prs

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

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vries at gcc dot gnu.org

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
I did a test run on ubuntu 22.04.1 x86_64 and I'm also seeing this.

Reading through the thread pointed at by comment 1, it seems we need to test
both scenarios of Fedora 17 glibc and upstream glibc, but currently we only
test the former.

FWIW, I've tried removing the rtld_ prefix of rtld_map_complete in the
test-case, and ran into:
...
FAIL: libpthread.so not found
...

This is with glibc 2.35, which has libpthread integrated into glibc, so it's
not suprising that libpthread is already loaded at main.

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

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

* [Bug testsuite/17016] XFAIL: gdb.threads/dlopen-libpthread.exp: info probes all rtld rtld_map_complete
  2014-06-04 12:45 [Bug gdb/17016] New: XFAIL: gdb.threads/dlopen-libpthread.exp: info probes all rtld rtld_map_complete palves at redhat dot com
                   ` (2 preceding siblings ...)
  2022-12-24  7:45 ` vries at gcc dot gnu.org
@ 2022-12-24 11:19 ` vries at gcc dot gnu.org
  2022-12-24 11:32 ` vries at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: vries at gcc dot gnu.org @ 2022-12-24 11:19 UTC (permalink / raw)
  To: gdb-prs

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

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|gdb                         |testsuite

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

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

* [Bug testsuite/17016] XFAIL: gdb.threads/dlopen-libpthread.exp: info probes all rtld rtld_map_complete
  2014-06-04 12:45 [Bug gdb/17016] New: XFAIL: gdb.threads/dlopen-libpthread.exp: info probes all rtld rtld_map_complete palves at redhat dot com
                   ` (3 preceding siblings ...)
  2022-12-24 11:19 ` [Bug testsuite/17016] " vries at gcc dot gnu.org
@ 2022-12-24 11:32 ` vries at gcc dot gnu.org
  2022-12-30 15:53 ` cvs-commit at gcc dot gnu.org
  2022-12-30 15:55 ` vries at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: vries at gcc dot gnu.org @ 2022-12-24 11:32 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 14537
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14537&action=edit
Tentative patch

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

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

* [Bug testsuite/17016] XFAIL: gdb.threads/dlopen-libpthread.exp: info probes all rtld rtld_map_complete
  2014-06-04 12:45 [Bug gdb/17016] New: XFAIL: gdb.threads/dlopen-libpthread.exp: info probes all rtld rtld_map_complete palves at redhat dot com
                   ` (4 preceding siblings ...)
  2022-12-24 11:32 ` vries at gcc dot gnu.org
@ 2022-12-30 15:53 ` cvs-commit at gcc dot gnu.org
  2022-12-30 15:55 ` vries at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-12-30 15:53 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom de Vries <vries@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cb2a1d0aca416235aed885e4796eeb70fbcd3b95

commit cb2a1d0aca416235aed885e4796eeb70fbcd3b95
Author: Tom de Vries <tdevries@suse.de>
Date:   Fri Dec 30 16:53:51 2022 +0100

    [gdb/testsuite] Fix gdb.threads/dlopen-libpthread.exp for upstream glibc

    On ubuntu 22.04.1 x86_64, I run into:
    ...
    (gdb) info probes all rtld rtld_map_complete^M
    No probes matched.^M
    (gdb) XFAIL: gdb.threads/dlopen-libpthread.exp: info probes all rtld
rtld_map_complete
    UNTESTED: gdb.threads/dlopen-libpthread.exp: no matching probes
    ...
    This has been filed as PR testsuite/17016.

    The problem is that the name rtld_map_complete is used, which was only
    available in Fedora 17, and upstream the name map_complete was used.

    In the email thread discussing a proposed patch (
    https://sourceware.org/legacy-ml/gdb-patches/2014-09/msg00712.html ) it was
    suggested to make the test-case handle both names.

    So, handle both names: map_complete and rtld_map_complete.

    This exposes the following FAIL:
    ...
    (gdb) info sharedlibrary^M
    From To    Syms Read Shared Object Library^M
    $hex $hex  Yes       /lib64/ld-linux-x86-64.so.2^M
    $hex $hex  Yes (*)   /lib/x86_64-linux-gnu/libgtk3-nocsd.so.0^M
    $hex $hex  Yes       /lib/x86_64-linux-gnu/libc.so.6^M
    $hex $hex  Yes       /lib/x86_64-linux-gnu/libdl.so.2^M
    $hex $hex  Yes       /lib/x86_64-linux-gnu/libpthread.so.0^M
    (*): Shared library is missing debugging information.^M
    (gdb) FAIL: gdb.threads/dlopen-libpthread.exp: libpthread.so not found
    ...
    due to using a glibc (v2.35) that has libpthread integrated into libc.

    Fix this by changing the FAIL into UNSUPPORTED.

    Tested on x86_64-linux.

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

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

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

* [Bug testsuite/17016] XFAIL: gdb.threads/dlopen-libpthread.exp: info probes all rtld rtld_map_complete
  2014-06-04 12:45 [Bug gdb/17016] New: XFAIL: gdb.threads/dlopen-libpthread.exp: info probes all rtld rtld_map_complete palves at redhat dot com
                   ` (5 preceding siblings ...)
  2022-12-30 15:53 ` cvs-commit at gcc dot gnu.org
@ 2022-12-30 15:55 ` vries at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: vries at gcc dot gnu.org @ 2022-12-30 15:55 UTC (permalink / raw)
  To: gdb-prs

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

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.1
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Tom de Vries <vries at gcc dot gnu.org> ---
Fixed by commit.

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

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

end of thread, other threads:[~2022-12-30 15:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-04 12:45 [Bug gdb/17016] New: XFAIL: gdb.threads/dlopen-libpthread.exp: info probes all rtld rtld_map_complete palves at redhat dot com
2014-09-24 18:04 ` [Bug gdb/17016] " sergiodj at redhat dot com
2014-09-24 18:04 ` sergiodj at redhat dot com
2022-12-24  7:45 ` vries at gcc dot gnu.org
2022-12-24 11:19 ` [Bug testsuite/17016] " vries at gcc dot gnu.org
2022-12-24 11:32 ` vries at gcc dot gnu.org
2022-12-30 15:53 ` cvs-commit at gcc dot gnu.org
2022-12-30 15:55 ` vries at gcc dot gnu.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).