-
Notifications
You must be signed in to change notification settings - Fork 56
Errors not printed on Raspberry Pi when backtrace enabled #7
Comments
This looks like an explicit panic in backtrace-rs What happens if you depend on backtrace directly and manually capture and print the backtrace on the pi? |
Ok so with using backtrace explicitly and no dependence on |
Okay, it might take me a little while to fix this one because I have to find and setup a raspberry pi to do it. Any additional testing you could do to help isolate the issue would be helpful, such as the specific code you used to show the problem doesn't happen without using And fwiw, I'm 99% sure this isn't an issue from color-eyre, its probably a bug in |
Oh, @duncanrhamill, did you run this on stable? Can you try reproing the backtrace on nightly? It might give more relevant panic location info |
Ok, thank you very much! I'm thinking the same thing with arch changes, maybe something along the lines of this? I've rerun everything on nightly and I've put together the outputs from running on the pi here, including the source used to generate them. If you want me to setup remote ssh on the pi I can. |
This is awesome, ty As for the ssh, we found a pi but I still have to set it up on the network and do the ip addr discovery, but that shouldn't be hard so I don't think that will be necessary, but if I run into trouble getting a repro I'll let you know so you can setup ssh. |
Ahh great, let me know if you need anything else! |
I'm sorry I haven't gotten around to this yet, but I haven't forgotten. One thing I realized is that it might be the specific [features]
default = ["gimli-symbolize"]
failure-bt = ["failure"]
gimli-symbolize = ["backtrace/gimli-symbolize"] Can you try the example again with |
No worries, just reran it with backtrace = { version="0.3", features=["gimli-symbolize"] } and it seems like that's the cause, panicked before printing the backtrace. Full backtrace from this one:
|
Perfect, I've opened an issue on |
Looks like its already fixed upstream, so we will bump our dependency versions in Can you verify that this issue doesn't reproduce when you set the backtrace version to |
@duncanrhamill Once you've verified that |
Yep, Thanks for your effort on this, really appreciated! |
my pleasure! |
I've run into a bug when running code on a Raspberry Pi (
stable-armv7-unknown-linux-gnueabihf
) where the errors do not print if running withRUST_BACKTRACE=1
orfull
. Simple test code:with:
On linux (
stable-x86_64-unknown-linux-gnu
)cargo run
produces the following output:and
RUST_BACKTRACE=1 cargo run
procudes:On the raspberry pi
cargo run
behaves as normal but usingRUST_BACKTRACE=1
produces:When running without
color-eyre
and justeyre
the raspberry pi behaves as expected, just the error and no backtrace. Not 100% sure the problem is insidecolor-eyre
but I thought I'd log this.The text was updated successfully, but these errors were encountered: