From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 107895 invoked by alias); 27 Dec 2019 17:56:10 -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 107882 invoked by uid 89); 27 Dec 2019 17:56:09 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=H*f:sk:a99573a, H*MI:sk:a99573a, H*i:sk:a99573a, H*MI:sk:b0df771 X-HELO: smtpout1.mo528.mail-out.ovh.net Received: from smtpout1.mo528.mail-out.ovh.net (HELO smtpout1.mo528.mail-out.ovh.net) (46.105.34.251) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Dec 2019 17:56:07 +0000 Received: from EX4.emp.local (unknown [10.108.57.12]) by mo528.mail-out.ovh.net (Postfix) with ESMTPS id 07C7246181B8; Fri, 27 Dec 2019 18:56:03 +0100 (CET) Received: from tereshkova (177.205.31.56) by EX4.emp.local (172.16.2.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1847.3; Fri, 27 Dec 2019 18:55:59 +0100 Date: Fri, 27 Dec 2019 17:56:00 -0000 From: "Gabriel F. T. Gomes" To: Carlos O'Donell CC: DJ Delorie , libc-alpha , Gdb , Gary Benson , Florian Weimer Subject: Re: Debugging containerized glibc tests with gdb (a developer use case for outside-of-container debugging). Message-ID: <20191227145551.79a291b4@tereshkova> In-Reply-To: References: <20191226172138.5a6a4151@tereshkova> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Ovh-Tracer-Id: 5022639488106352233 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrvddvkedguddtjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeffhffvuffkjghfofggtgfgihesthhqredtredtjeenucfhrhhomhepfdfirggsrhhivghlucfhrdcuvfdrucfiohhmvghsfdcuoehgrggsrhhivghlsehinhgtohhnshhtrghnthgvrdhnvghtrdgsrheqnecukfhppedtrddtrddtrddtpddujeejrddvtdehrdefuddrheeinecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopefgigegrdgvmhhprdhlohgtrghlpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehgrggsrhhivghlsehinhgtohhnshhtrghnthgvrdgvthhirdgsrhdprhgtphhtthhopehffigvihhmvghrsehrvgguhhgrthdrtghomhenucevlhhushhtvghrufhiiigvpedt X-SW-Source: 2019-12/txt/msg00056.txt.bz2 Hi, Carlos, On Fri, 27 Dec 2019, Carlos O'Donell wrote: > >Did you try --enable-hardcoded-path-in-tests? I hadn't. =C2=AC=C2=AC That was it. You wrote this in your first email: >In test-container.c we mount $srcdir and $objdir into the same absolute pa= ths >inside the container, so ld.so should be accessible from the same absolute= paths. >If we fail those mounts we immediately fail the test with FAIL_EXIT1. I think the paths are the same, but the contents are not identical. On the tests I did, the testroot.root/path/to/build/dir/elf directory is missing the symlink between ld.so and ld.so.. For instance: $ ls -l testroot.root/home/gabriel/build/x86_64/glibc/elf -rwxrwxr-x 1 gabriel gabriel 1342800 Dec 27 11:09 ld-linux-x86-64.so.2 $ ls -l testroot.root/home/gabriel/build/powerpc64le/glibc/elf/ -rwxr-xr-x 1 gabriel gabriel 1566232 Dec 27 09:05 ld64.so.2 Whereas on the actual build dir: $ ls -l elf/ld*.so* lrwxrwxrwx 1 gabriel gabriel 5 Dec 27 09:04 elf/ld64.so.2 -> ld.so -rwxr-xr-x 1 gabriel gabriel 1566232 Dec 27 09:04 elf/ld.so >warning: Could not load shared library symbols for /home/carlos/build/glib= c-gr-localedef/elf/ld.so. If I create the ld.so symlink in the sysroot, the problem goes away. Should there be a symlink in the sysroot?