How do I debug this? #179
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 21 replies
-
|
Beta Was this translation helpful? Give feedback.
-
I heavily suggest you to share what piece of code caused an ARM panic, since it probably means there are some unsafe cases not properly handled by the wrapper. This is what we are working on improving, so learning the underlying issue would be great 😃. |
Beta Was this translation helpful? Give feedback.
-
The triggered abort is here. In particular, the @ian-h-chamberlain since you worked on most of the wrapping library, do you know how this could be possible? (I don't have the time right now to hardware watch the changes in that pointer 😓 ). |
Beta Was this translation helpful? Give feedback.
There are a few ways to try debugging it. One would be to use
gdb
, which you can use by following this guide in the ctru-rs wiki. You can also try$DEVKITARM/bin/arm-none-eabi-addr2line -C -e <your-homebrew-program.elf> -a <address>
with thePC
andLR
values from that crash dump to see where in the source code those addresses correspond to.We don't have a discord or IRC or whatnot at the moment, though I honestly feel like we should.