Open
Description
Currently, we abort program execution when we try to access the external environment in isolation mode. However, libstd
currently calls getcwd
when printing out a panic backtrace. To ensure that panicking works in isolation mode, we've disabled the call to getcwd
when libstd
has cfg(miri)
enabled.
Eventually, it would be good to remove this hack, and start returning proper error codes from disabled functions, rather than aborting the process.
See rust-lang/rust#60026 (comment) for more discussion