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: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 5B2781F463 for ; Fri, 27 Dec 2019 17:56:12 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=rZHPvL4mNMUotoT+KsrAcwaiSbGvjChB1o1QsJ/bhtU c0JdPbxEZYKrcsvRnnLLLZaSJEmnQtCRu8cUA8zdFue/KxOEe+KSFdB4Yr8zvq7Z mwXmquYXpNQiIrywuZ6SU0p4lk361DUk26kp0/wocFZqfwyU1pvUn38Js7ssE84E = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; s=default; bh=3Z7RCDt8cIY7blKg9ZAfHrO1ybk=; b=cuT3WhUdlysoNpd3Z cc0zN2tv6qlXenVl478vwa9pxRCmnHQfwGgssKhc2wkR2GhPobexHwuEy/cqKGAA 4JyWEbzgpIqmZcGNTP5/RcKcaDYv96kI1QUeOBTYlLyBY8NnjeDZXNLk/Mi8BSOe aDBioQ8qaLg/JvZeN+1WZqwImE= Received: (qmail 107898 invoked by alias); 27 Dec 2019 17:56:10 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 107882 invoked by uid 89); 27 Dec 2019 17:56:09 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: smtpout1.mo528.mail-out.ovh.net Date: Fri, 27 Dec 2019 14:55:51 -0300 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 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?