From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WFSxFWdhT2CwdgAA0tVLHw (envelope-from ) for ; Mon, 15 Mar 2021 13:30:15 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id MDV1EWdhT2AqJAAAB5/wlQ (envelope-from ) for ; Mon, 15 Mar 2021 13:30:15 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx2.migadu.com (Postfix) with ESMTPS id 846821D91C for ; Mon, 15 Mar 2021 14:30:14 +0100 (CET) Received: from localhost ([::1]:35878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLnIT-0007n9-6F for larch@yhetil.org; Mon, 15 Mar 2021 09:30:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLnIJ-0007mg-Ak for bug-guix@gnu.org; Mon, 15 Mar 2021 09:30:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51769) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lLnIJ-0005GK-26 for bug-guix@gnu.org; Mon, 15 Mar 2021 09:30:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lLnII-0006t8-T6 for bug-guix@gnu.org; Mon, 15 Mar 2021 09:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47106: Bubblewrap hates Guix containers =?UTF-8?Q?=F0=9F=98=9E?= Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 15 Mar 2021 13:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47106 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Leo Prikler Received: via spool by 47106-submit@debbugs.gnu.org id=B47106.161581497026418 (code B ref 47106); Mon, 15 Mar 2021 13:30:02 +0000 Received: (at 47106) by debbugs.gnu.org; 15 Mar 2021 13:29:30 +0000 Received: from localhost ([127.0.0.1]:35082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLnHm-0006s2-7n for submit@debbugs.gnu.org; Mon, 15 Mar 2021 09:29:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLnHj-0006rl-Jl for 47106@debbugs.gnu.org; Mon, 15 Mar 2021 09:29:28 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40363) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLnHc-0004mR-N9; Mon, 15 Mar 2021 09:29:20 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=45590 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lLnHb-0007Pr-Nq; Mon, 15 Mar 2021 09:29:20 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87r1kjpbvx.fsf@gnu.org> <2922127e61435e64f95d3d398ef6932a02336188.camel@student.tugraz.at> <20210313122718.GA11708@LionPure> <20210313170704.GA3712@LionPure> <20210314174539.GA10548@LionPure> <87sg4xlbn0.fsf@gnu.org> <6c6b39f495962ec906255cac212b66962d549eab.camel@student.tugraz.at> <87pn00iw1f.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 25 =?UTF-8?Q?Vent=C3=B4se?= an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 15 Mar 2021 14:29:17 +0100 In-Reply-To: (Leo Prikler's message of "Mon, 15 Mar 2021 11:14:11 +0100") Message-ID: <87sg4wh7f6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 47106@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615815014; h=from:from:sender:sender: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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=+2ovHhZboHs+T76ojYKvWViZX3PbdMOfrN9GhsRcUS8=; b=sZD64treCrH3zz5U45Rx14Ybj2kYQ9saGq/Z1nyhZudb0OAO2apFNjLnBbJYIsIMoPCixd RyP5cDb5xvBf36AX596r/ahOqw3IYjqCNSVqCWfLVJFNPgA6NHQSVT4yKPNSRxRY/Z1tD9 UXHQuLSdO64VqEe7GSNS7ibVpufDwo/6mOpB6g2YtiFAZQQ39FHId//VWQC4jGaqD8bxN+ n2b4HjWx2PjonZKT7KeSqV/4kM3TTcPhY3DfhR2axG8Tpct2/WbTZVqVOUeInCYxiJL6oy Si2Qlh+MQ5EtDqAuujxe7ErRuolEjQPqh6QEqXYL8ObyWX8xRgxA6UwkQAtIPg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615815014; a=rsa-sha256; cv=none; b=o/LCHRpdUCZi/8VtMAOAPdL1IL02T1AJKk8Ye7fV9DhacmvWjpD1SzONUgsiM8wm5NCJPm +yplPDAXcJnK6npBbM4yH3i7SpniUJBHGNYonPoFiXU/wZ0v8p2JQoD9dAicF1yKWIYqKq viWFG1g2oivkB4/L/0waAAnakQ/tk7k3HNqwGG6P+HuJZ6QRhgtRDn9jhjbdFlgzPVgAXy WNEi0A2xMnBCtLDsmAnT3Ch90N8MHoTg7ihchDBlAm8asFgsGdgWq6+fHqsy7s30596mLc nT8mPx66e2GGyxfVm0Qt4PbwmYd8a6ecgURTeQaWAriBXoLLpZeJa3dlhRbStA== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=none; spf=pass (aspmx2.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.90 Authentication-Results: aspmx2.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx2.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 846821D91C X-Spam-Score: -2.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: TUnokB5guxfn Hi, Leo Prikler skribis: > Okay, so here's my basic workflow: Starting with an empty set of -- > expose: > bwrap: Can't find source path /sys/block: No such file or directory > repeated a few times along with warnings, that the web process crashed > until finally Epiphany itself crashes.=20 > I add /sys/block, and Epiphany miraculously doesn't crash, but bwrap > still complains and the web processes still crash, so we march on.=20 > I'll abbreviate it a little and only show the error messages. > bwrap: Can't find source path /sys/bus: No such file or directory > bwrap: Can't find source path /sys/class: No such file or directory=20 > bwrap: Can't find source path /sys/dev: No such file or directory=20 > bwrap: Can't find source path /sys/devices: No such file or directory OK. Additional data points from my Guix System laptop: --8<---------------cut here---------------start------------->8--- $ guix environment -C --ad-hoc findutils -- find /sys |wc -l 37575 $ find /sys | wc -l find: =E2=80=98/sys/kernel/debug=E2=80=99: Mankas permeso 38026 $ guix environment -C --ad-hoc findutils -- find /sys/block |wc -l 27 $ find /sys/block | wc -l 27 --8<---------------cut here---------------end--------------->8--- The offending Bubblewrap code is: --8<---------------cut here---------------start------------->8--- static void resolve_symlinks_in_ops (void) { SetupOp *op; for (op =3D ops; op !=3D NULL; op =3D op->next) { const char *old_source; switch (op->type) { case SETUP_RO_BIND_MOUNT: case SETUP_DEV_BIND_MOUNT: case SETUP_BIND_MOUNT: old_source =3D op->source; op->source =3D realpath (old_source, NULL); if (op->source =3D=3D NULL) { if (op->flags & ALLOW_NOTEXIST && errno =3D=3D ENOENT) op->source =3D old_source; else die_with_error("Can't find source path %s", old_source); } break; default: break; } } } --8<---------------cut here---------------end--------------->8--- I wonder how =E2=80=98realpath=E2=80=99 can fail here. In fact, it Works F= or Me: --8<---------------cut here---------------start------------->8--- $ cat realpath.scm (use-modules (system foreign)) (define realpath (let ((proc (pointer->procedure '* (dynamic-func "realpath" (dynamic-link= )) '(* *)))) (lambda (path) (let ((result (proc (string->pointer path) %null-pointer))) (and (not (null-pointer? result)) (pointer->string result)))))) (pk 'realpath-> (realpath "/sys/block")) $ guix environment -C --ad-hoc guile -- guile -s realpath.scm ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=3D0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /home/ludo/src/guix-debugging/realpath.scm ;;; compiled /home/ludo/.cache/guile/ccache/3.0-LE-8-4.4/home/ludo/src/guix= -debugging/realpath.scm.go ;;; (realpath-> "/sys/block") --8<---------------cut here---------------end--------------->8--- So I presume bwrap does something else before it reaches that warning. We should really strace it. Thanks, Ludo=E2=80=99.