]> git.lizzy.rs Git - rust.git/commit
Don't use env::current_exe with libbacktrace
authorSteven Fackler <sfackler@gmail.com>
Sun, 8 May 2016 19:07:50 +0000 (12:07 -0700)
committerSteven Fackler <sfackler@gmail.com>
Thu, 12 May 2016 16:13:58 +0000 (09:13 -0700)
commit9393e52d4d2705698a6dfdd2834d41154ee23b64
tree891fda15ca59db14bd4131f1ca8c1c9f79a2a902
parent6dbb0e86aec11050480beb76eade6fb805010ba7
Don't use env::current_exe with libbacktrace

If the path we give to libbacktrace doesn't actually correspond to the
current process, libbacktrace will segfault *at best*.

cc #21889
src/libstd/sys/common/gnu/libbacktrace.rs
src/test/run-pass/backtrace-debuginfo.rs
src/test/run-pass/backtrace.rs