-
Notifications
You must be signed in to change notification settings - Fork 74
RUST_BACKTRACE=1 should be set #119
Comments
Depends on: rust-lang/rust#29293 |
That only happens when rustc is compiled with debuginfo btw, so it shouldn't affect playpen |
You're right - I misunderstood what |
EDIT5: NEVERMIND what I said below, it's easier than I thought! tl;dr: must modify Looks like an env var could only be set in Perhaps if EDIT: actually, I just realized an error in my thinking... it's the resulting binary which needs that arg, not EDIT2: or maybe another env var could be introduced which would change the default to always show backtrace, unless EDIT3: for what is worth, this seems to work: $ sudo ./playpen ./sandbox --mount-proc --user=manj1 --syscalls-file=./whitelist -l -- bash -c 'export RUST_BACKTRACE=1;set|grep -i rust'
BASH_EXECUTION_STRING='export RUST_BACKTRACE=1;set|grep -i rust'
RUST_BACKTRACE=1
_=RUST_BACKTRACE EDIT4: ok, I just realized that this exists and it's already setting an env var ( EDIT7: I have a workable implementation that turns on RUST_BACKTRACE only when Debug (but not Stable) is selected in rust-playpen... will submit a PR soon... |
and does not set it when Stable build. This addresses rust-lang#119 although not entirely, as I imagine that a new UI button would be desirable instead of it currently depending on the Mode(Debug/Stable) one.
Can probably close this one now. |
The error message of rustc internal compiler errors asks this.
It'd be great if we can post a reproduction code on play.rust-lang.org and
the compiler developer sees the live diagnose information there.
The text was updated successfully, but these errors were encountered: