From: "H.J. Lu via Libc-alpha" <libc-alpha@sourceware.org>
To: Szabolcs Nagy <szabolcs.nagy@arm.com>
Cc: Florian Weimer <fweimer@redhat.com>,
Pedro Alves <palves@redhat.com>,
Florian Weimer via Libc-alpha <libc-alpha@sourceware.org>,
gdb-patches@sourceware.org
Subject: Re: [PATCH v3] nptl_db: Support different libpthread/ld.so load orders (bug 27744)
Date: Thu, 22 Apr 2021 07:34:54 -0700 [thread overview]
Message-ID: <CAMe9rOpccnV_Att_X+41FR9asS-DxqRe6COYWAYUWq+H2yJbGA@mail.gmail.com> (raw)
In-Reply-To: <20210422124455.GK9028@arm.com>
On Thu, Apr 22, 2021 at 7:13 AM Szabolcs Nagy via Libc-alpha
<libc-alpha@sourceware.org> wrote:
>
> The 04/22/2021 13:55, Florian Weimer wrote:
> > * Szabolcs Nagy:
> > > The 04/22/2021 10:05, Szabolcs Nagy via Gdb-patches wrote:
> > >> The 04/22/2021 10:33, Florian Weimer wrote:
> > >> > * Szabolcs Nagy:
> > >> > > on the aarch64 buildbot i see
> > >> > >
> > >> > > FAIL: nptl/tst-pthread-gdb-attach
> > >> > >
> > >> > > $ cat nptl/tst-pthread-gdb-attach.out
> > >> > > +set debug libthread-db 1
> > >> > > +add-symbol-file /work/glibc-aarch64-linux/build/build/nptl/tst-pthread-gdb-attach
> > >> > > add symbol table from file "/work/glibc-aarch64-linux/build/build/nptl/tst-pthread-gdb-attach"
> > >> > > +set auto-load safe-path /work/glibc-aarch64-linux/build/build/nptl_db
> > >> > > +set libthread-db-search-path /work/glibc-aarch64-linux/build/build/nptl_db
> > >> > > +attach 461328
> > >> > > [New LWP 461329]
> > >> > > Trying host libthread_db library: /work/glibc-aarch64-linux/build/build/nptl_db/libthread_db.so.1.
> > >> > > td_ta_new failed: application not linked with libthread
> > >> > > thread_db_load_search returning 0
> > >> >
> > >> > Unfortunately I cannot reproduce this with binutils 2.30, GDB 8.2 and
> > >> > GCC 8.4.1. Has your environment newer or older versions?
> > >>
> > >> ubuntu flavour of
> > >>
> > >> gcc 8.2.0
> > >> binutils 2.31.1
> > >> gdb 8.2
> > >>
> > >> happens on armhf and aarch64 too.
> > >
> > > happens with gcc-10.2.0, gdb-9.2, binutils-2.34 too
> > > (still ubuntu)
> >
> > Still no luck with binutils 2.35.1, a GCC 11 snapshot, and GDB 10.1.
> >
> > Do you run this test as a regular user? Could it be caused by YAMA
> > ptrace policies?
>
> $ cat /proc/sys/kernel/yama/ptrace_scope
> 0
>
> and the -static test passes so there gdb works.
> i can reproduce it on all ubuntu setups i have.
Ubuntu has different directory layouts. Could it be the issue?
--
H.J.
prev parent reply other threads:[~2021-04-22 14:35 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-19 10:40 [PATCH v3] nptl_db: Support different libpthread/ld.so load orders (bug 27744) Florian Weimer via Libc-alpha
2021-04-21 11:47 ` Florian Weimer via Libc-alpha
2021-04-21 22:35 ` H.J. Lu via Libc-alpha
2021-04-22 9:29 ` Florian Weimer via Libc-alpha
2021-04-22 7:28 ` Szabolcs Nagy via Libc-alpha
2021-04-22 8:33 ` Florian Weimer via Libc-alpha
2021-04-22 9:05 ` Szabolcs Nagy via Libc-alpha
2021-04-22 9:48 ` Szabolcs Nagy via Libc-alpha
2021-04-22 11:55 ` Florian Weimer via Libc-alpha
2021-04-22 12:44 ` Szabolcs Nagy via Libc-alpha
2021-04-22 14:20 ` Szabolcs Nagy via Libc-alpha
2021-04-22 14:25 ` Florian Weimer via Libc-alpha
2021-04-22 15:30 ` Szabolcs Nagy via Libc-alpha
2021-04-22 15:39 ` Florian Weimer via Libc-alpha
2021-04-22 17:22 ` H.J. Lu via Libc-alpha
2021-04-22 17:56 ` Florian Weimer via Libc-alpha
2021-04-22 18:27 ` H.J. Lu via Libc-alpha
2021-04-22 14:34 ` H.J. Lu via Libc-alpha [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/libc/involved.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMe9rOpccnV_Att_X+41FR9asS-DxqRe6COYWAYUWq+H2yJbGA@mail.gmail.com \
--to=libc-alpha@sourceware.org \
--cc=fweimer@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=hjl.tools@gmail.com \
--cc=palves@redhat.com \
--cc=szabolcs.nagy@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).