From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57446 invoked by alias); 27 Dec 2019 12:13:45 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 57372 invoked by uid 89); 27 Dec 2019 12:13:45 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=unavailable version=3.3.1 spammy= X-HELO: us-smtp-delivery-1.mimecast.com Received: from us-smtp-2.mimecast.com (HELO us-smtp-delivery-1.mimecast.com) (207.211.31.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Dec 2019 12:13:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1577448822; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=U0vMrB1s4JotBnOlccWjF7ec1SpPQAZRTq0c3RKfKhQ=; b=Mk/Bdjpg4QN4DaLPf3nKhFL9bJ9JxylgjMLjST2kW4PF3uxloHKbkfpvg0BJ4UafwBkZZ1 Xv+aYbuhu5lOpgiJjyUsQ3jBuccouQ7yP674fQdYWsXuqW2OYYM/qbvf+MEqHLIq9a8ocH jfvvHeuFACM0U9CyAvgkxJkKaEyrWpk= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-369-ce3072sfOlaJKnkAgWji9w-1; Fri, 27 Dec 2019 07:13:39 -0500 Received: by mail-qk1-f199.google.com with SMTP id x127so17631257qkb.0 for ; Fri, 27 Dec 2019 04:13:39 -0800 (PST) Return-Path: Received: from [192.168.1.4] (135-23-175-75.cpe.pppoe.ca. [135.23.175.75]) by smtp.gmail.com with ESMTPSA id 65sm6744676qtf.95.2019.12.27.04.13.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Dec 2019 04:13:37 -0800 (PST) Subject: Re: Debugging containerized glibc tests with gdb (a developer use case for outside-of-container debugging). To: "Gabriel F. T. Gomes" Cc: DJ Delorie , libc-alpha , Gdb , Gary Benson , Florian Weimer References: <20191226172138.5a6a4151@tereshkova> From: Carlos O'Donell Message-ID: Date: Fri, 27 Dec 2019 12:13:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20191226172138.5a6a4151@tereshkova> X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2019-12/txt/msg00055.txt.bz2 On 12/26/19 3:21 PM, Gabriel F. T. Gomes wrote: > Hi, Carlos, > > I tried this on several systems (varying archs and distros), but I wasn't > able to reproduce it (with elf/tst-ldconfig-bad-aux-cache)... > > On Fri, 20 Dec 2019, Carlos O'Donell wrote: > >> GNU gdb (GDB) Fedora 8.3-7.fc30 >> [...] >> This GDB was configured as "x86_64-redhat-linux-gnu". > > ... even on Fedora 30 for x86_64, so I'm wondering if there's anything in > your configure options that I should try and mimic (I already tried some > combinations of --enable-profile --enable-addons --enable-multi-arch > --enable-tunables --enable-stack-protector=all, but I only tried that with > the system compiler (gcc (GCC) 9.2.1 20190827 (Red Hat 9.2.1-1)). > >> warning: Could not load shared library symbols for /home/carlos/build/glibc-gr-localedef/elf/ld.so. > > I never got this. Did you try --enable-hardcoded-path-in-tests? >> warning: Unable to find dynamic linker breakpoint function. > > Nor this. > >> warning: Target and debugger are in different PID namespaces; thread lists and other data are likely unreliable. Connect to gdbserver inside the container. > > But this one, I got, too. > -- Cheers, Carlos.