I haven't had this problem so this is a complete guess. But if PWD is the
only env variable causing a problem, you could try hard coding it to a
constant value (which would never match any real directory). That would
allow the PWD to always be the same no matter which directory it was
actually
I am working on a project where we make certain syscalls where we pass Go
pointers to the syscalls. The syscall we ended up calling is
https://cs.opensource.google/go/go/+/refs/tags/go1.21.4:src/syscall/syscall_linux.go;l=65.
I think Go 1.21 introduced `runtime.Pinner.pin()` .but we realised it