From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS17314 8.43.84.0/22 X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id E66F01F5AE for ; Thu, 22 Apr 2021 14:35:34 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 77BAA39AF81E; Thu, 22 Apr 2021 14:35:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 77BAA39AF81E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1619102133; bh=tqqEXqWmqnvoBCvlOPlQN6bQSG2n+P49NbrCkw4ZJ1o=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=DD24u6kFUEbFS3p3y0XLEZ0ayXSeoD4OBVv75zjIUofat1DmAXhQOVGnxP8q/MyaK FcqzgnA91/oOTI/vtp1+yvqFMk9XnTtCnETP1YrtptcwrXZwHsF8ULLPKFlAMxYFPL qtyCb4MSS6O6mjto24p8HCaoFaeHmAjkRW9XoIT0= Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id DD810398B8AC; Thu, 22 Apr 2021 14:35:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DD810398B8AC Received: by mail-ot1-x330.google.com with SMTP id i16-20020a9d68d00000b0290286edfdfe9eso31707673oto.3; Thu, 22 Apr 2021 07:35:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tqqEXqWmqnvoBCvlOPlQN6bQSG2n+P49NbrCkw4ZJ1o=; b=d4Yi5v8vxasRump0hsSNhlRy5XQw6kryeKlWQ7GhoWWx7CBdorR0n2NkJIx800mCW+ d9d142bDkpntLHtxFBGcdPTt49LxI5TNFXwfOlvfua2FUPSjNvn6Vt6A71/hRptp0C3m QtoBcFD+PjnGcTh/ViUEY1+zlpfl8+VzD9L5KiOy8tCmv0R46wxbLBQTnUlVXy0dWEbI aypvo52iVr/bsRYo5VJQs82hRvDoaXqu89pvEzmFiXemztAh9nDdP4GVu0uUfAYLXBNj AhJHgiJeAu9TdGFKuM7Rn1tY8bnSjAckRCrXlvTb8lN5yghTgrIH0YAcY9+Mco7MDQEM sDsw== X-Gm-Message-State: AOAM533tNu3LcMlsstHH1WcrCR0eaPIO5E/OHIyncIB/S99LxXDG0uFF j9+1XVS+4/vODY/WTsW3sJtX93PAe2XRGD8cxaRV76zllj0= X-Google-Smtp-Source: ABdhPJzvB9LPRD56iZkddatf3CrX1P/YtoA7TJ+ZTaB5+qqeGJxM4zYcCa3NJaqeJykrSCuSPGQXplaSocuqkXD63dM= X-Received: by 2002:a05:6830:1515:: with SMTP id k21mr3184773otp.269.1619102130363; Thu, 22 Apr 2021 07:35:30 -0700 (PDT) MIME-Version: 1.0 References: <87tuo24kxi.fsf@oldenburg.str.redhat.com> <87czunoo5m.fsf@oldenburg.str.redhat.com> <20210422072821.GE9028@arm.com> <87o8e6k9br.fsf@oldenburg.str.redhat.com> <20210422090501.GH9028@arm.com> <20210422094808.GJ9028@arm.com> <87pmymildh.fsf@oldenburg.str.redhat.com> <20210422124455.GK9028@arm.com> In-Reply-To: <20210422124455.GK9028@arm.com> Date: Thu, 22 Apr 2021 07:34:54 -0700 Message-ID: Subject: Re: [PATCH v3] nptl_db: Support different libpthread/ld.so load orders (bug 27744) To: Szabolcs Nagy Content-Type: text/plain; charset="UTF-8" X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: "H.J. Lu via Libc-alpha" Reply-To: "H.J. Lu" Cc: Florian Weimer , Pedro Alves , Florian Weimer via Libc-alpha , gdb-patches@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" On Thu, Apr 22, 2021 at 7:13 AM Szabolcs Nagy via Libc-alpha 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.