From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DB1573858D33; Thu, 11 Jan 2024 22:11:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB1573858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1705011110; bh=RnGDf9LvYNdiu5E9INUEuRtw6n8/pvUamAbDg/9QDas=; h=From:To:Subject:Date:In-Reply-To:References:From; b=nhYieKXDLiiSfhbAOC3o8mPM12NcFq3XG5hJSHDJvPj1rscfH3xezoTuoc3OUOjGA c929DAhOfT1rdXig3+l7xpiAApGNTYKwWY54EQ+A0Gf7mgGsIlvxYEXGXbJ0yMylQd h8pjipowPL0uKDSJwCW4OZj7aGmw8g8+JHw+Gv6Q= From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: [Bug tapsets/26843] print_ubacktrace_fileline is broken on master Date: Thu, 11 Jan 2024 22:11:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: tapsets X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wcohen at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc cf_reconfirmed_on bug_status everconfirmed 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D26843 William Cohen changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wcohen at redhat dot com Last reconfirmed| |2024-01-11 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from William Cohen --- When trying this on x86_64 RHEL8, RHEL9, and Fedora 39 with a current git checkout of systemtap (023ec371b183c1) the output included the file and line number: $ sudo ../install/bin/stap a.stp -c /home/wcohen/systemtap_write/systemtap/a.out 0x40110a : main+0x4/0xe at /home/wcohen/systemtap_write/systemtap/a.c:2 [/home/wcohen/systemtap_write/systemtap/a.out] 0x7f26492ee14a [/usr/lib64/libc.so.6+0x2814a/0x1e2000] WARNING: Missing unwind data for a module, rerun with 'stap -d /usr/lib64/libc.so.6' However, on x86_64 unbuntu 20.04 I do see the issue reported with the same = git checkout of systemtap: $ sudo ../install/bin/stap a.stp -c /home/william/systemtap_write/systemtap/a.out 0x55facda6a131 : main+0x8/0x17 [/home/william/systemtap_write/systemtap/a.= out] 0x7f3804b72083 [/usr/lib/x86_64-linux-gnu/libc-2.31.so+0x24083/0x1f2000] WARNING: Missing unwind data for a module, rerun with 'stap -d /usr/lib/x86_64-linux-gnu/libc-2.31.so' On RHEL8 dwarf4 is being used and on RHEL9/Fedora 39 dwarf 5. Ubuntu 20.04= is using dwarf 4. I was able to run the unbuntu generated a.out on f39. The output is missing the expected filename and line number. Using "llvm-objdump --line-numbers " on f39 it appears that llvm-objdump can find = the line numbers: f39 generated binary: 0000000000401106
: ; main(): ; /home/wcohen/systemtap_write/systemtap/a.c:1 401106: 55 pushq %rbp 401107: 48 89 e5 movq %rsp, %rbp ; /home/wcohen/systemtap_write/systemtap/a.c:2 40110a: b8 00 00 00 00 movl $0x0, %eax ; /home/wcohen/systemtap_write/systemtap/a.c:3 40110f: 5d popq %rbp 401110: c3 retq ubuntu 20.04 generated binary: 0000000000001129
: ; main(): ; /home/william/systemtap_write/systemtap/a.c:1 1129: f3 0f 1e fa endbr64 112d: 55 pushq %rbp 112e: 48 89 e5 movq %rsp, %rbp ; /home/william/systemtap_write/systemtap/a.c:2 1131: b8 00 00 00 00 movl $0x0, %eax ; /home/william/systemtap_write/systemtap/a.c:3 1136: 5d popq %rbp 1137: c3 retq 1138: 0f 1f 84 00 00 00 00 00 nopl (%rax,%rax) --=20 You are receiving this mail because: You are the assignee for the bug.=