kou commented on PR #1599: URL: https://github.com/apache/arrow-adbc/pull/1599#issuecomment-2008613845
> Hmm so from the backtrace_symbols manpage the default output is something like `./prog(myfunc3+0x5c) [0x80487f0]`. But we can't get the `myfunc3+0x5c` in the first place because our symbols are hidden :/ FYI: If `backtrace_symbols()` can't resolve `myfunc3`, the part has only address that can be used for `addr2line` directly. If we have `myfunc3+0x5c`, we need to convert `myfunc3` to address. We can do it by `nm --demangle XXX.so | grep myfunc3 | cut -d' ' -f1`. We can use it for `addr2line`: `addr2line --exe=XXX.so $(myfunc3_address + 0x5c)` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
