0

My project root path is mounted by overlayfs. Then I build the project, get an executable program and just run it.

But when I check /proc/id/maps, I see the filepath in maps is wrong. It is lack of my project root path. Now I'm very confused about it. Plz let me know how to fix this. Thanks so much!!!

// os info
Ubuntu 20.04.1 LTS

// mount
mount -t overlay overlay -olowerdir=/root/mytest/lower,upperdir=/root/mytest/upper,workdir=/root/mytest/diff /root/mytest/merge

// maps info
......
014ff000-0694d000 rw-p 00000000 00:00 0                                  [heap]
7fa40bbf9000-7fa40c70e000 r--p 0a619000 fc:11 31985680                   /build/my_exec
......

// realpath for my_exec 
/root/mytest/merge/build/my_exec

Ubuntu 22 LTS also is the same, but Ubuntu 18 LTS seems as expected.

IcyFlame
  • 11
  • 1

0 Answers0