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=-3.6 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RDNS_DYNAMIC,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.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 F33781F5AE for ; Wed, 28 Apr 2021 23:42:52 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 82BF5394743A; Wed, 28 Apr 2021 23:42:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 82BF5394743A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1619653371; bh=SdeQNnDTeLaeo/hgwHXHfN084+r9LYf0Laf9DgUZuyA=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=SLF0hodS6mCNFZEhPbFLKy1T2pEOVEAK8shFEl6UKMMxZxN9sdGBkMEMCkfsZrNWH F/HhIGxWwFgi4nwBMFTfRomRk8DkeNeStVvpZjCkRAfK/Wy1ZPjgrgBmVTB7dJ+nbS JsYkoaa50n7WK+v0oSDfTVDVw42NkYGbW/X5xCL4= Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by sourceware.org (Postfix) with ESMTPS id 59B783945C06 for ; Wed, 28 Apr 2021 23:42:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 59B783945C06 Received: by mail-qk1-x72a.google.com with SMTP id 66so25947116qkf.2 for ; Wed, 28 Apr 2021 16:42:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=SdeQNnDTeLaeo/hgwHXHfN084+r9LYf0Laf9DgUZuyA=; b=T9n756YTuPPQfXAemj1yuq8G1pYj2p1IrRcg29E27L72mKW/A3AZ8jt7WAbkwzxfDK MJ8n2hjg4CqnDd2CoN++3M8NTq7ZdJz+Ca3MaDWErN5kzYyQUNU7pIihX/i413nm+VWg ukJn7DZjBy3zvUeRQ7rX6tpE0g3pkhkMX4ZxIQwYSK2ilDdS/QqkNufmAim5/DbZnhUb u/r5PlwXc95KM5mFvr1wWsnoFegP/xjpYqzIdBlIN9QF7F8Qq45kEANgPlMnvMTqqBof 9GuAD6B0dvXe8bqfumzvy361Dg1dPNxb1/lecBXUGISpI7TmcB8aziW1+taLqj5dz0V5 C1TA== X-Gm-Message-State: AOAM533yQrjwaD6VCXds1TojJGT0kMX9JeQoaL8Xr88gJr/tW4YomAXC Nkvlmb2CGLpNuoYE8L9dL6xbZNr/11s= X-Google-Smtp-Source: ABdhPJziDJ2fhl2x7oQwm9eRs5FxV9BscE9jbBXAjtIXFcc+k190vR3zsYmP4a3tchgPqTcAR+2nFg== X-Received: by 2002:a37:624c:: with SMTP id w73mr31309667qkb.125.1619653368608; Wed, 28 Apr 2021 16:42:48 -0700 (PDT) Received: from [192.168.0.41] (71-218-14-121.hlrn.qwest.net. [71.218.14.121]) by smtp.gmail.com with ESMTPSA id o125sm1004549qkf.87.2021.04.28.16.42.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Apr 2021 16:42:48 -0700 (PDT) Subject: Re: tests failing on x86_64-linux (due to test-container?) To: DJ Delorie References: Message-ID: Date: Wed, 28 Apr 2021 17:42:46 -0600 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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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: Martin Sebor via Libc-alpha Reply-To: Martin Sebor Cc: libc-alpha@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" On 4/28/21 5:08 PM, DJ Delorie wrote: > > Martin Sebor writes: >> /build/glibc/nss/tst-nss-test3: error while loading shared libraries: >> /build/glibc/nss/tst-nss-test3: cannot open shared object file: No such >> file or directory >> >> Not sure what .so it's looking for though. > > That would be "/build/glibc/nss/tst-nss-test3" ;-) Aaah. tst-nss-test3 is failing to open itself. Poor thing must be lost. ;) > > (which should be bind-mounted inside your test chroot, which would be > /build/glibc/testroot.root/build/glibc/nss/tst-nss-test3) /build/glibc/testroot.root/build/glibc/ is empty. > > You can strace the test, if you're root, with "strace -f -o /tmp/foo > make test ..." With this as root I get: error: test-container.c:235: can't mount /ssd/src/glibc onto /build/glibc/testroot.root/ssd/src/glibc The strace log before the error shows this (I don't see anything suspicious before that): 31182 getuid() = 0 31182 getgid() = 0 31182 openat(AT_FDCWD, "/ssd/build/glibc/elf/ld-linux-x86-64.so.2.root/ld-linux-x86-64.so.2.script", O_RDONLY) = -1 ENOENT (No such file or directory) 31182 openat(AT_FDCWD, "/ssd/build/glibc/elf/ld-linux-x86-64.so.2.script", O_RDONLY) = -1 ENOENT (No such file or directory) 31182 unshare(CLONE_NEWNS|CLONE_NEWUSER|CLONE_NEWPID) = 0 31182 mount("none", "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 31182 mount("/ssd/src/glibc", "/build/glibc/testroot.root/ssd/src/glibc", 0x40927f, MS_BIND, NULL) = -1 EACCES (Permission denied) 31182 write(1, "error: test-container.c:235: ", 29) = 29 31182 write(1, "can't mount /ssd/src/glibc onto "..., 73) = 73 31182 write(1, "\n", 1) = 1 31182 exit_group(1) = ? 31182 +++ exited with 1 +++ > > You can also run "capsh --print" to make sure you have all the > capabilities you expect. IIRC cap_sys_admin and cap_sys_chroot are key, > along with cap_mknod, and maybe cap_setgid and cap_setuid. I have all those. > > Also, selinux might be interfering. > That doesn't sound encouraging. Anything I should look at/for? I looked at recent entries in journalctl from around the time I ran strace but couldn't see anything interesting there either (of course, I might not know if I saw it). Martin