From owner-freebsd-questions@freebsd.org Mon Apr 5 06:57:29 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 605235C39B9 for ; Mon, 5 Apr 2021 06:57:29 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from shell1.rawbw.com (shell1.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 4FDM0m6xmwz3Kqs for ; Mon, 5 Apr 2021 06:57:28 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from yv.noip.me (c-73-189-35-76.hsd1.ca.comcast.net [73.189.35.76]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id 1356vL7k080397 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Sun, 4 Apr 2021 23:57:21 -0700 (PDT) (envelope-from yuri@FreeBSD.org) X-Authentication-Warning: shell1.rawbw.com: Host c-73-189-35-76.hsd1.ca.comcast.net [73.189.35.76] claimed to be yv.noip.me Subject: Re: devel/google-perftools in a jail To: Andrea Venturoli Cc: freebsd-questions@FreeBSD.org References: <18dcbb14-d208-071e-8f93-39dd45d7dc14@rawbw.com> <2cfa2de6-3d22-bc88-90d2-49e94d1a8f0d@netfence.it> <85f65024-2c3e-b83e-da5a-21d522a92bc6@rawbw.com> <2fde0431-a9b2-ac42-c34b-8b2f312ddb85@netfence.it> From: yuri@FreeBSD.org Message-ID: Date: Sun, 4 Apr 2021 23:57:20 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <2fde0431-a9b2-ac42-c34b-8b2f312ddb85@netfence.it> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 4FDM0m6xmwz3Kqs X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; ASN(0.00)[asn:7961, ipnet:198.144.192.0/19, country:US] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2021 06:57:29 -0000 Hi Andrea, On 4/3/21 12:53 AM, Andrea Venturoli wrote: > I think perftools-pprof queries for a given library and, instead of > the path in the jail's filesystem space, somehow gets the same file > but in the host's filesystem space. > I don't know how it tries to get these, though. I tried to reproduce this problem, but couldn't. I created the jail with the command: # jail -c path=/disk-huge/jail host.hostname=testjail ip4=inherit command=/etc/rc Logged into the jail in a normal way: jexec 231 /bin/sh Compiled a program, ran it with profiling, then printed the profile without seeing a problem like you described. My jail: FreeBSD testjail 12.2-STABLE FreeBSD 12.2-STABLE #0 r369528M: Mon Mar 29 05:18:24 PDT 2021 unknown@nohost.com:/disk-huge/sys/usr/src/amd64.amd64/sys/GENERIC amd64 Yuri