[Bug tools/21247] addr2line doesn't properly resolve filename/lineno

mark at klomp dot org sourceware-bugzilla@sourceware.org
Fri May 5 16:47:00 GMT 2017


https://sourceware.org/bugzilla/show_bug.cgi?id=21247

--- Comment #4 from Mark Wielaard <mark at klomp dot org> ---
Looking at the debug_info we do have:

 [39ca09]    subprogram
             low_pc               (addr) +0x00000000002c08b0
<_Z20PlatformCrashHandleriP9siginfo_tPv>
             high_pc              (addr) +0x00000000002c0a05
             lo_user+0x1fe7       (flag) Yes
             frame_base           (block1) 
              [   0] reg7
             MIPS_linkage_name    (strp)
"_Z20PlatformCrashHandleriP9siginfo_tPv"
             name                 (strp) "PlatformCrashHandler"
             decl_file            (data1) 107
             decl_line            (data2) 580
             external             (flag) Yes
             lo_user+0x1fe1       (flag) Yes

Which is inside a compile_unit generated by clang:

 [29d634]  compile_unit
           producer             (strp) "clang version 3.7.1
(tags/RELEASE_371/fi
nal)"
           language             (data2) C_plus_plus (4)
           name                 (strp) "-"
           stmt_list            (data4) 581678
           comp_dir             (strp)
"/home/marat/production/ue4/Engine/Source
"
           lo_user+0x1fe1       (flag) Yes
           low_pc               (addr) +000000000000000000
           ranges               (data4) range list [ c92e0]

Note that the low_pc seems bogus (zero). And the range list seems bogus too (it
consists of 800+ entries some of which look bogus too
(+0x0000000000000001..+0x0000000000000001) and none seem to actually cover that
function addresses.

See also this discussion on the mailinglist:
https://sourceware.org/ml/elfutils-devel/2017-q2/msg00190.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Elfutils-devel mailing list