Check that addr2linebfd is using. This is one of the approaches that I have used successfully. More specifically, backtracefilt gets you mostly completely, you just need to adapt it to accept addresses from backtrace instead of parsing the file.
source
share