devel/google-perftools in a jail

Andrea Venturoli ml at
Fri Apr 2 10:29:27 UTC 2021

On 4/2/21 11:33 AM, yuri at wrote:
> Hi Andrea,
> On 4/2/21 1:54 AM, Andrea Venturoli wrote:
>> Is this expected to work?
>> I tried "perftools-pprof ./a.exe prof.out", but I get:
>> objdump: '/usr/jails/basejail/libexec/': No such file 
> What does 'ldd -a ./a.exe' print? => /lib/ (0x8002cd000) => /usr/lib/ (0x8002fa000) => /lib/ (0x8003c7000) => /usr/local/lib/ (0x8003e9000) => 
/usr/local/lib/ (0x8004bd000) => 
/usr/local/lib/ (0x8004da000) => /usr/local/lib/ 
(0x80053a000) => /lib/ (0x80053e000) => /lib/ (0x800570000) => /lib/ (0x80058a000) => /lib/ (0x800980000) => /usr/local/lib/ (0x800c72000) => /usr/local/lib/ (0x800c9f000) => /usr/lib/ (0x800ccf000) => /usr/local/lib/ (0x800cfb000) => /usr/lib/ (0x800d29000) => /lib/ (0x800d3f000) => /lib/ (0x800d5b000)

(Here I had removed -lprofiler).

> Do shared libraries mentioned in the printout exist? 

Yes and no: the do exist as shown above, but not as shown in the 
previous message

E.g.: instead of /usr/lib/, it searches for 

This being an ezjail jail, /usr/lib/ is linked to 
Seen from outside the jail, that's 
/usr/jails/basejail/usr/lib/, but inside the jail the 
"/usr/jails" prefix is wrong.

Hope I was clear; otherwise I'll try to explain better.

  bye & Thanks

More information about the freebsd-questions mailing list