https://sourceware.org/bugzilla/show_bug.cgi?id=30986
Bug ID: 30986
Summary: Bug Report: elfutils eu-addr2line not working
correctly with Rust inline functions
Product: elfutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: tools
Assignee: unassigned at sourceware dot org
Reporter: lijunlong at openresty dot com
CC: elfutils-devel at sourceware dot org
Target Milestone: ---
Created attachment 15184
--> https://sourceware.org/bugzilla/attachment.cgi?id=15184&action=edit
Debug file of sled
I am currently experiencing an issue with the elfutils eu-addr2line tool. When
using it with a program written in Rust, I am unable to correctly retrieve the
filename and line number, which is possible when using the addr2line tool
instead.
Here is an example of what I am experiencing:
When using addr2line:
```
$ addr2line -V
GNU addr2line version 2.35.2-37.el9
Copyright (C) 2020 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.
$ addr2line -f -i -e sled-cache.debug 477be | c++filt -i
std::os::unix::fs::FileExt::write_all_at
/builddir/build/BUILD/rustc-1.66.1-src/library/std/src/os/unix/fs.rs:197
sled::pagecache::parallel_io_unix::pwrite_all
/home/agentzh/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/sled-0.34.7/src/pagecache/parallel_io_unix.rs:42
```
When using eu-addr2line:
```
$ eu-addr2line -V
eu-addr2line (elfutils) 0.188
Copyright (C) 2022 The elfutils developers <http://elfutils.org/>.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ eu-addr2line -f -i -e sled-cache.debug 477be | c++filt -i
sled::pagecache::parallel_io_unix::pwrite_all
/builddir/build/BUILD/rustc-1.66.1-src/library/std/src/os/unix/fs.rs:197:13
```
As you can see, the eu-addr2line tool does not provide the correct filename and
line number as the addr2line does. I would greatly appreciate any assistance or
advice on how to resolve this.
Thank you for your time and I hope to hear from you soon.
--
You are receiving this mail because:
You are on the CC list for the bug.