From mboxrd@z Thu Jan 1 00:00:00 1970 From: "pelzflorian (Florian Pelz)" Subject: bug#35662: Really relocatable binaries crash with Permission denied Date: Fri, 10 May 2019 07:54:41 +0200 Message-ID: <20190510055441.whvcyxs4grbrnpys@pelzflorian.localdomain> References: <20190509220136.tli7um2heocifrpq@pelzflorian.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([209.51.188.92]:38274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOyVr-000182-PA for bug-guix@gnu.org; Fri, 10 May 2019 01:56:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOyVo-00014j-LL for bug-guix@gnu.org; Fri, 10 May 2019 01:56:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51627) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOyVm-00014A-Hd for bug-guix@gnu.org; Fri, 10 May 2019 01:56:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hOyVm-0005n9-GA for bug-guix@gnu.org; Fri, 10 May 2019 01:56:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <20190509220136.tli7um2heocifrpq@pelzflorian.localdomain> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 35662@debbugs.gnu.org On Fri, May 10, 2019 at 12:01:36AM +0200, pelzflorian (Florian Pelz) wrote: > sed -i 's|@STORE_DIRECTORY@|/gnu/store|g' run-in-namespace.c > sed -i 's|@WRAPPED_PROGRAM@|/mybin/sh|g' run-in-namespace.c > gcc -std=gnu99 -static -O0 -g -Wall run-in-namespace.c I think it should have been sed -i 's|@STORE_DIRECTORY@|/gnu/store|g' run-in-namespace.c sed -i 's|@WRAPPED_PROGRAM@|/gnu/store/qn1ax1fkj16x280m1rv7mcimfmn9l2pf-bash-4.4.23/bin/sh|g' run-in-namespace.c echo '#define PROOT_PROGRAM "iyd2ikxadcp89j5919pwja6swnx00493-proot-static-5.1.0/bin/proot"' > new cat run-in-namespace.c >> new mv new run-in-namespace.c gcc -std=gnu99 -static -O0 -g -Wall run-in-namespace.c but it does not make a difference to the gdb output except the line > 278 && lstat ("/mybin/sh", &statbuf) != 0) Regards, Florian