public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "agentzh at gmail dot com" <sourceware-bugzilla@sourceware.org>
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	[thread overview]
Message-ID: <bug-26843-6586@http.sourceware.org/bugzilla/> (raw)

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

            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 2020
x86_64 x86_64 x86_64 GNU/Linux) It can be reproduced with the following minimal
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 ignored
since they are not relevant here).

For comparison on CentOS 6, for example, it works fine using the same version
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'
```

-- 
You are receiving this mail because:
You are the assignee for the bug.

             reply	other threads:[~2020-11-04 21:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-04 21:54 agentzh at gmail dot com [this message]
2024-01-11 22:11 ` [Bug tapsets/26843] " wcohen at redhat dot com
2024-01-12 13:20 ` mcermak at redhat dot com

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-26843-6586@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=systemtap@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).