[Bug libdw/25173] dwarf_getsrc_die fails for rust code

jistone at redhat dot com sourceware-bugzilla@sourceware.org
Mon Nov 18 18:11:00 GMT 2019


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

--- Comment #4 from Josh Stone <jistone at redhat dot com> ---
I can also reproduce this with Clang (clang-9.0.0-1.fc31.x86_64), so it seems
to be a more general problem with LLVM as the producer.

$ bat main.c                              
───────┬──────────────────────────────────
       │ File: main.c                     
───────┼──────────────────────────────────
   1   │ #include <stdio.h>               
   2   │ int main() {                     
   3   │     printf("Hello, world!\n");   
   4   │     return 0;                    
   5   │ }                                
───────┴──────────────────────────────────
$ clang -g main.c -o main
$ nm main | grep main
                 U __libc_start_main@@GLIBC_2.2.5
0000000000401130 T main
$ addr2line -e main 401130
/tmp/hello/src/main.c:2
$ eu-addr2line -e main 401130
??:0

When compiled with GCC, eu-addr2line resolves it fine.

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


More information about the Elfutils-devel mailing list