public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [Bug tools/30986] New: Bug Report: elfutils eu-addr2line not working correctly with Rust inline functions
@ 2023-10-20  5:06 lijunlong at openresty dot com
  2023-11-02 13:38 ` [Bug tools/30986] " mark at klomp dot org
  0 siblings, 1 reply; 2+ messages in thread
From: lijunlong at openresty dot com @ 2023-10-20  5:06 UTC (permalink / raw)
  To: elfutils-devel

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug tools/30986] Bug Report: elfutils eu-addr2line not working correctly with Rust inline functions
  2023-10-20  5:06 [Bug tools/30986] New: Bug Report: elfutils eu-addr2line not working correctly with Rust inline functions lijunlong at openresty dot com
@ 2023-11-02 13:38 ` mark at klomp dot org
  0 siblings, 0 replies; 2+ messages in thread
From: mark at klomp dot org @ 2023-11-02 13:38 UTC (permalink / raw)
  To: elfutils-devel

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

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org
   Last reconfirmed|                            |2023-11-02
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
I can confirm this is still an issue with the latest release (0.189) and with
the latest git (elfutils-0.189-76-g0999fca6). But I haven't investigated why
yet.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-02 13:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-20  5:06 [Bug tools/30986] New: Bug Report: elfutils eu-addr2line not working correctly with Rust inline functions lijunlong at openresty dot com
2023-11-02 13:38 ` [Bug tools/30986] " mark at klomp dot org

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).