From: "lijunlong at openresty dot com" <sourceware-bugzilla@sourceware.org>
To: elfutils-devel@sourceware.org
Subject: [Bug tools/30986] New: Bug Report: elfutils eu-addr2line not working correctly with Rust inline functions
Date: Fri, 20 Oct 2023 05:06:29 +0000 [thread overview]
Message-ID: <bug-30986-10460@http.sourceware.org/bugzilla/> (raw)
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.
next reply other threads:[~2023-10-20 5:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-20 5:06 lijunlong at openresty dot com [this message]
2023-11-02 13:38 ` [Bug tools/30986] " mark at klomp dot org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-30986-10460@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=elfutils-devel@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).