From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 525E53858026; Mon, 7 Dec 2020 20:13:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 525E53858026 From: "agentzh at gmail dot com" 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 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: bpf 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: Mon, 07 Dec 2020 20:13:40 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27030 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 mas= ter branch on Fedora 32 x86_64. ``` [agentzh@fed32-min ~/git/systemtap 134 (master)]$ cat a.c long a =3D 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 ``` --=20 You are receiving this mail because: You are the assignee for the bug.=