Can't run bpftrace , ERROR: too many arguments

Bug #2060766 reported by Tom Brown
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bpftrace (Ubuntu)
Fix Released
Critical
Unassigned

Bug Description

```bash
sudo bpftrace test.bt
error: <unknown>:0:0: in function BEGIN i64 (ptr): 0x5ae8a70ee260: i64 = GlobalAddress<ptr @__atomic_compare_exchange> 0 too many arguments
```

```
// test.bt
BEGIN
{
        printf("Hello\n");
}

```

`OS: Ubuntu Noble Numbat (development branch) x86_64Linux vmnobel 6.8.0-22-generic #22-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 4 22:30:32 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux`

```
delta@vmnobel ~> sudo apt info bpftrace
Package: bpftrace
Version: 0.20.2-1ubuntu3
Priority: optional
Section: utils
Origin: Ubuntu

```

Tags: patch
Revision history for this message
Mate Kukri (mkukri) wrote :

This seems to be the same error as test failures in https://bugs.launchpad.net/ubuntu/+source/bpftrace/+bug/2060682

My guess is it being LLVM-18

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bpftrace (Ubuntu):
status: New → Confirmed
Revision history for this message
Mate Kukri (mkukri) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "bpftrace-1-0.20.2-1ubuntu4.diff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Lukas Märdian (slyon) wrote :

Thanks for fixing it quickly, Mate!

Debdiff lgtm. Patches match upstream (one is a backport). I adopted some dep-3 headers and fixed d/changelog to mention this LP bug.

We probably want this for Beta, as bpftrace is broken otherwise.

$ dput ubuntu ../bpftrace_0.20.2-1ubuntu4_source.changes
Uploading bpftrace using ftp to ubuntu (host: upload.ubuntu.com; directory: /ubuntu)
running badauthor: Stop if uploading with root@ or ubuntu@ email adresses.
running placeholderbug: Stop if using common placeholder numbers as bug reference.
running checksum: verify checksums before uploading
running check-debs: makes sure the upload contains a binary package
running ppaforppaonly: Stop uploads to the archive with or to ppa without ~ppa suffix.
running required-fields: check whether a field is present and non-empty in the changes file
running suite-mismatch: check the target distribution for common errors
running releasemismatch: Warn about mismatching suffixesg e.g. focal with a XX.YY not being 20.04
running nobug: Stop if uploading without any bug reference.
running gpg: check GnuPG signatures before the upload
running updatemaintainer: Stop if ubuntu changes are without ubuntu maintainer.
running supported-distribution: check whether the target distribution is currently supported (using distro-info)
{'allowed': ['release', 'proposed', 'backports', 'security'], 'known': ['release', 'proposed', 'updates', 'backports', 'security']}
running gitubuntu: Warn if uploading without git-ubuntu Vcs-* entries.
WARNING: .changes file does not contain git-ubuntu "Vcs-Git"
WARNING: .changes file does not contain git-ubuntu "Vcs-Git-Commit"
WARNING: .changes file does not contain git-ubuntu "Vcs-Git-Ref"
Check: Upload without git-ubuntu Vcs entries? [yes, NO]: yes
Uploading bpftrace_0.20.2-1ubuntu4.dsc
Uploading bpftrace_0.20.2-1ubuntu4.debian.tar.xz
Uploading bpftrace_0.20.2-1ubuntu4_source.buildinfo
Uploading bpftrace_0.20.2-1ubuntu4_source.changes

Lukas Märdian (slyon)
Changed in bpftrace (Ubuntu):
status: Confirmed → In Progress
Mate Kukri (mkukri)
Changed in bpftrace (Ubuntu):
importance: Undecided → Critical
Revision history for this message
Lukas Märdian (slyon) wrote :
Revision history for this message
Mate Kukri (mkukri) wrote :

@sylon This is just waiting for archive admin approval, right?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bpftrace - 0.20.2-1ubuntu4

---------------
bpftrace (0.20.2-1ubuntu4) noble; urgency=medium

  * Really do build the tests, we need them for autopkgtest
  * d/patches: Cherry-pick LLVM-18 fixes from upstream (LP: #2060766)
  * Disable newly failing test

 -- Mate Kukri <email address hidden> Wed, 10 Apr 2024 12:36:37 +0100

Changed in bpftrace (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.