From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 76265 invoked by alias); 18 Nov 2019 17:59:14 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 76207 invoked by uid 48); 18 Nov 2019 17:59:10 -0000 From: "jistone at redhat dot com" To: elfutils-devel@sourceware.org Subject: [Bug libdw/25173] dwarf_getsrc_die fails for rust code Date: Mon, 18 Nov 2019 17:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: libdw X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jistone at redhat dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2019-q4/txt/msg00172.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25173 Josh Stone changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jistone at redhat dot com --- Comment #3 from Josh Stone --- (In reply to Mark Wielaard from comment #1) > It might help if you could attach the binary. Locally (Fedora 31, rustc > 1.38.0) I cannot replicate. Neither binutils addr2line, not elfutils > eu-addr2line seem able to resolve addresses to source lines. Note that rpmbuild strips Rust's rlibs (static archives), so you won't have= any debuginfo for pre-compiled code from the standard library. You should still= be able to resolve the user's own code though, as well as generic std code that gets monomorphized in the user's compilation. $ bat main.rs =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=AC=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80 =E2=94=82 File: main.rs =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=BC=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80 1 =E2=94=82 fn main() { 2 =E2=94=82 println!("Hello, world!"); 3 =E2=94=82 } =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=B4=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80 $ rustc -g main.rs $ nm main | grep main U __libc_start_main@@GLIBC_2.2.5 00000000000053d0 T main 0000000000005390 t _ZN4main4main17h6b07ac6c6f06cdd6E $ addr2line -e main 5390 /tmp/hello/src/main.rs:1 $ eu-addr2line -e main 5390 ??:0 --=20 You are receiving this mail because: You are on the CC list for the bug.