From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F179F394481E; Wed, 4 Nov 2020 21:54:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F179F394481E From: "agentzh at gmail dot com" To: systemtap@sourceware.org Subject: [Bug tapsets/26843] New: print_ubacktrace_fileline is broken on master Date: Wed, 04 Nov 2020 21:54:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: agentzh at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Nov 2020 21:54:26 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26843 Bug ID: 26843 Summary: print_ubacktrace_fileline is broken on master Product: systemtap Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: tapsets Assignee: systemtap at sourceware dot org Reporter: agentzh at gmail dot com Target Milestone: --- Seems like `print_ubacktrace_fileline` is broken on Ubuntu 20 x86_64 (kernel Linux ubuntu20-pkg 5.4.0-24-generic #28-Ubuntu SMP Thu Apr 9 22:16:42 UTC 2= 020 x86_64 x86_64 x86_64 GNU/Linux) It can be reproduced with the following min= imal example using the latest systemtap git master (commit 9102da049a): First prepare the target C program: ```C int main(void) { return 0; } ``` Compile it to generate executable file `./a.out`: ``` gcc -g a.c ``` Prepare the following simple .stp file: ``` function foo() { print_ubacktrace_fileline(); } probe process.function("main") { foo(); exit(); } ``` And run both: ``` $ stap a.stp -c ./a.out WARNING: Kernel function symbol table missing [man warning::symbols] 0x55cfc28cd131 : main+0x8/0x17 [/home/agentzh/git/systemtap-plus/a.out] 0x7f59d5d7d0b3 [/usr/lib/x86_64-linux-gnu/libc-2.31.so+0x270b3/0x1f2000] WARNING: Missing unwind data for a module, rerun with 'stap -d /usr/lib/x86_64-linux-gnu/libc-2.31.so' ``` No file name or line numbers in the output. (The warnings can be safely ign= ored since they are not relevant here). For comparison on CentOS 6, for example, it works fine using the same versi= on of stap: ``` $ stap a.stp -c ./a.out 0x4004b6 : main+0x4/0xe at /home/agentzh/git/systemtap/a.c:2 [/home/agentzh/git/systemtap/a.out] 0x7fe4d3140d20 [/lib64/libc-2.12.so+0x1ed20/0x394000] WARNING: Missing unwind data for a module, rerun with 'stap -d /lib64/libc-2.12.so' ``` --=20 You are receiving this mail because: You are the assignee for the bug.=