Dynatrace / superdump

A service for automated crash-dump analysis
Other
515 stars 76 forks source link

fix linux symbol resolving #210

Closed d-schneider closed 4 years ago

d-schneider commented 4 years ago

Linux dump symbols were often not resolved correctly for the main executable because we did not subtract the module start address from the instruction pointer before passing it to the addr2line tool in that case. This is a problem if the main module does not start at 0.

Additionally, we handle individual module segments as modules in our internal data structure. However, the addr2line tool expects an offset relative to the start of the whole module. Now the module start address is calculated by subtracting the page offset multiplied by the page size from the segment start address.