[Bug 297426] linuxulator: linprocfs /proc/self/exe host path breaks execve under Linux ABI
Date: Tue, 11 Aug 2026 00:09:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297426
--- Comment #3 from Alex S <iwtcex@gmail.com> ---
Let's actually try it:
% /compat/linux/bin/python3
Python 3.9.23 (main, Aug 19 2025, 00:00:00)
[GCC 11.5.0 20240719 (Red Hat 11.5.0-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.readlink("/proc/self/exe")
'/compat/linux/usr/bin/python3.9'
>>> os.stat("/proc/self/exe")
os.stat_result(st_mode=33261, st_ino=1860340, st_dev=502192302, st_nlink=1,
st_uid=0, st_gid=0, st_size=15448, st_atime=0, st_mtime=1761952505,
st_ctime=1772769444)
>>> os.execv("/proc/self/exe", ["whatever"])
Python 3.9.23 (main, Aug 19 2025, 00:00:00)
[GCC 11.5.0 20240719 (Red Hat 11.5.0-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.readlink("/proc/self/exe")
'/compat/linux/usr/bin/python3.9'
>>> os.stat("/proc/self/exe")
os.stat_result(st_mode=33261, st_ino=1860340, st_dev=502192302, st_nlink=1,
st_uid=0, st_gid=0, st_size=15448, st_atime=0, st_mtime=1761952505,
st_ctime=1772769444)
Do you have an working repro or you are just trying to waste everyone's time?
--
You are receiving this mail because:
You are the assignee for the bug.