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 bpf/27030] New: bpf: user_long_error() leads to assertion failures in the translator
Date: Mon, 07 Dec 2020 20:13:40 +0000	[thread overview]
Message-ID: <bug-27030-6586@http.sourceware.org/bugzilla/> (raw)

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

            Bug ID: 27030
           Summary: bpf: user_long_error() leads to assertion failures in
                    the translator
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bpf
          Assignee: systemtap at sourceware dot org
          Reporter: agentzh at gmail dot com
  Target Milestone: ---

I tried using the `user_long_error()` tapset function with the bpf runtime but
it fails with an assertion failure in the translator. Tested the latest master
branch on Fedora 32 x86_64.


```
[agentzh@fed32-min ~/git/systemtap 134 (master)]$ cat a.c
long a = 0xdeadbeef;

int main (void) {
    return 0;
}

[agentzh@fed32-min ~/git/systemtap 0 (master)]$ gcc -g a.c -o /tmp/a.out

[agentzh@fed32-min ~/git/systemtap 0 (master)]$ nm /tmp/a.out|grep ' a'
0000000000404020 D a

[agentzh@fed32-min ~/git/systemtap 0 (master)]$ /opt/stap/bin/stap --bpf -c
./a.out -e 'probe process("/tmp/a.out").function("main") { println("a: ",
user_long_error(0x601020)) exit() }'
stap: staptree.h:1349: virtual update_visitor::~update_visitor(): Assertion
`values.empty()' failed.
Aborted (core dumped)

[agentzh@fed32-min ~/git/systemtap 130 (master)]$ /opt/stap/bin/stap -V
Systemtap translator/driver (version 4.5/0.182, commit
release-4.4-24-g3e0d449fe427 + changes)
Copyright (C) 2005-2020 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
tested kernel versions: 2.6.32 ... 5.10.0-rc
enabled features: BPF NLS
```

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

             reply	other threads:[~2020-12-07 20:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-07 20:13 agentzh at gmail dot com [this message]
2020-12-07 20:27 ` [Bug bpf/27030] " agentzh at gmail dot com
2020-12-07 20:29 ` agentzh at gmail dot com
2021-03-01 15:31 ` me at serhei dot io

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