-
Notifications
You must be signed in to change notification settings - Fork 63
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
Can't resolve libc symbol - which is found by C addr2line #250
Comments
This is a bug in the However, even if that is fixed, addr2line won't provide very good results without DWARF debugging information (whether this crate or the Ubuntu version of addr2line). I suggest that if you want to look up addresses in libc then you install the debug package for it and use that. |
Thanks for the quick response! You mean with the fix it still wouldn't return a result for this particular example - or that it might still have issues with other executables/libraries that lack debuginfo? What I'm currently up to is trying to translate some stacktraces that I get via ebpf based profiling, in a similar way that bpftrace does it via the |
With the fix it will return the result for this example, but there are other addresses that it won't return any result for, and neither will the system addr2line. Also, as seen by the |
Oh, and note that the |
I'm trying to reverse lookup a symbols based on addresses using this library. While it works for a Rust executable, I had less luck with a C
.so
.One example I wanted to lookup was the
__sendmmsg
function.objdump shows the address at 0x123d90:
Ubuntu addr2line finds the symbol:
But gimli-rs/addr2line can't find it:
In case it matters for reproduction: I'm running this on WSL2 with a Ubuntu 20.4 distribution
The text was updated successfully, but these errors were encountered: