-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wachy panics trying to load Rust binary. #8
Comments
The code is rather lacking in error messages and comments, sorry :). I believe this line has found a call instruction inside the function and is trying to map it back to the source file/line. |
I guess it didn't necessarily occur to me to try it with an honest-to-god debug build, so let me give that a shot. Beyond that, maybe there's some inlining happening from the outside? I'll also try and track that down as well. |
Alright, had a chance to try this out. I did a normal debug build, and then a release build where toby@foo:~/src/wachy$ file ~/src/vector/target/release/vector
/home/toby/src/vector/target/release/vector: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=65c02f84ccab09cfba9370899b5d05a26191b9d7, for GNU/Linux 3.2.0, with debug_info, not stripped
toby@foo:~/src/wachy$ file ~/src/vector/target/debug/vector
/home/toby/src/vector/target/debug/vector: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=71ef74b7d56745b8a20794530ff5bef1afe56e6f, for GNU/Linux 3.2.0, with debug_info, not stripped Using the same command as in the PR description, the debug build gets me to the UI where I can select which specific matching symbol I want, etc. The release build panics before even opening the UI. I do get an error about the bpftrace command syntax missing a brace or something, but I still consider this progress. 😄 Now, I guess my thought is: how do I try to figure out what is missing that Wachy needs? Any sleuthing I could try and do with |
Hmm can you post the bpftrace syntax error? That's probably a separate issue, So it seems the original issue is related to release build, although I'm not sure why that's the case if you have |
Context
No matter whether or not I run as
sudo
, older versions ofbpftrace
(triedv0.11.x
), it seems to throw this panic. It's a bit hard to grok what it's doing at that location so I didn't have any great immediate ideas for debugging further, given that it seems to find the symbol.The text was updated successfully, but these errors were encountered: