From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id aI2aJRoMOmhn+joAWB0awg (envelope-from ) for ; Fri, 30 May 2025 15:50:50 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=YtXVL9RQ; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 883F61E102; Fri, 30 May 2025 15:50:50 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-8.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.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 ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id E80DD1E0C2 for ; Fri, 30 May 2025 15:50:49 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7D62B385B50A for ; Fri, 30 May 2025 19:50:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D62B385B50A Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=YtXVL9RQ Received: from omta036.useast.a.cloudfilter.net (omta036.useast.a.cloudfilter.net [44.202.169.35]) by sourceware.org (Postfix) with ESMTPS id 3C7273858D20 for ; Fri, 30 May 2025 19:50:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3C7273858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3C7273858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1748634611; cv=none; b=Fn8NOagd6tQkL9qOmyPQzD7F1AaTpSGBQ4xYL+m1fQz5D6LikqfLWu7qjZCyTIT1N02Kfl0E1z0lVtAX4eMsZPcTh5o6+BwgxrUuK4uH8BTdSEZTiY/pWfw0yefk9b1fi3JMZ34bZPlcfvQIonGWQThwsSv4epDLbqrvRwLyylo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1748634611; c=relaxed/simple; bh=p2Xymbn3TTm6Vn1FIqxxfFYvkQTYPkHrjuHtFZTmiIQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=DqNhIksI34Hej+XBuAsqfsT7/yO2BqqhU5akofbri1oO6fxE+e4FXG/HdHsAMxRnCicaYnw14X5m+SAE7Mhjj6grxvYS0fPUJ7rNaGUzpLQ8NXdCMSGQ1B3e1FLc2Vn5en1eM6n1K3YtIkZlZkxfsW4N+T9BeqG7vgzNo1j0KjA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C7273858D20 Received: from eig-obgw-5005a.ext.cloudfilter.net ([10.0.29.234]) by cmsmtp with ESMTPS id L2f1uYInozZPaL5k2uyMjx; Fri, 30 May 2025 19:50:10 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id L5k1uRA0dq3CNL5k1umGMX; Fri, 30 May 2025 19:50:10 +0000 X-Authority-Analysis: v=2.4 cv=VpfoAP2n c=1 sm=1 tr=0 ts=683a0bf2 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=dt9VzEwgFbYA:10 a=ItBw4LHWJt0A:10 a=CCpqsmhAAAAA:8 a=stkexhm8AAAA:8 a=q4VKYq719VaZGLnDrMsA:9 a=ul9cdbp4aOFLsgKbc677:22 a=pIW3pCRaVxJDc-hWtpF8:22 a=VS4QxaUSPT0UtbFnIvSC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=p2Xymbn3TTm6Vn1FIqxxfFYvkQTYPkHrjuHtFZTmiIQ=; b=YtXVL9RQqrstIrNW2yQc8L04Xc imwz5R8r/MSXuotehgSjmPoW9l3deh+gJnE8DIFavcidEik329EXihN8dWojSEi1GOFS3uWJcnO6x jau/ziudI3yJyqCI9MCY3Rx71; Received: from 97-118-46-156.hlrn.qwest.net ([97.118.46.156]:47420 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.1) (envelope-from ) id 1uL5k0-00000001ONT-3xID; Fri, 30 May 2025 13:50:09 -0600 From: Tom Tromey To: Fabian Kilger Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 0/2][PR GDB/32956] gdb: fix GDB failing to find build-id debug files in linux mount namespaces In-Reply-To: <20250511150113.3163767-1-kilger@sec.in.tum.de> (Fabian Kilger's message of "Sun, 11 May 2025 17:01:11 +0200") References: <20250511150113.3163767-1-kilger@sec.in.tum.de> X-Attribution: Tom Date: Fri, 30 May 2025 13:50:07 -0600 Message-ID: <87y0ud280g.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.118.46.156 X-Source-L: No X-Exim-ID: 1uL5k0-00000001ONT-3xID X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-118-46-156.hlrn.qwest.net (bapiya) [97.118.46.156]:47420 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfOWWyRXW5Qk5wo4Daw5L1XeyWSaooblocovQBVcMdFRTBONhE4WgS7JDX78WgUdF6NzFt6yEnP8p/L1MqS+tieNujajF//i/dsMhwe/9gNbeaTo76moe YTXTmur/glHr2L0YlOXy26kv44YXUEnLTtsEKFJ+UGNDrK8OL/MrASjuK/mlL3I2wcwUiljF69i2o84dUJvzhggH4+qwLRXKwL8= X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org >>>>> "Fabian" == Fabian Kilger writes: Fabian> GDB can no longer find build-id debug files in docker containers. Fabian> The cause is the new algorithm to look for a build-id-based debug file Fabian> (introduced by commit 22836ca88591ac7efacf06d5b6db191763fd8aba). Fabian> It makes use of fileio_stat. As fileio_stat is not supported by Fabian> gdb/nat/linux-namespace.c, all stat calls would be performed on the Fabian> host and not inside the mount namespace. Furthermore, gdb/build-id.c Fabian> calls target_fileio_stat with inferior none, thus stat will always be Fabian> performed on the host mount namespace instead of the target's mount Fabian> namespace. Fabian> The patch is split into two parts: First, add support for fileio_stat Fabian> querying the linux mount namespace and second, adjust gdb/build-id.c Fabian> to call target_fileio_stat with current_inferior () instead of nullptr. Fabian> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32956 Hi, I don't know anything at all about this area, but some keywords in the thread triggered a memory of this patch: https://inbox.sourceware.org/gdb-patches/20230321120126.1418012-1-benjamin@sipsolutions.net/ Can you say how it compares and whether your patch fixes that same problem? thanks, Tom