bpftrace is broken on Oracular
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bpftrace (Ubuntu) |
Fix Committed
|
Critical
|
Mate Kukri | ||
Oracular |
Fix Committed
|
Critical
|
Mate Kukri |
Bug Description
[ Impact ]
Running any arbitrary bpftrace commands in oracular, such as
$ sudo bpftrace -l '*sleep*'
fails with
: CommandLine Error: Option 'debug-counter' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
Aborted
Making the package currently unusable there.
[ Test Plan ]
In an oracular fresh install, run
$ sudo bpftrace -l '*sleep*'
affected systems will output
: CommandLine Error: Option 'debug-counter' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
Aborted
while a fixed system will show a list such as
kfunc:vmlinux:
kfunc:vmlinux:
kfunc:vmlinux:
kfunc:vmlinux:
...
Note that bpftrace is a seeded package so you will not need to install it to run the tests above.
[ Where problems could occur ]
The patch changes a CMakeLists.txt to *always* link against shared LLVM libraries (because that is what we want). If we saw problems, it would most likely be in the package build itself.
[ Other Info ]
This issue only affects oracular.
Rationale for this patch explained on the bug report: https:/
[ Original bug report ]
In oracular, with bpftrace version 0.21.2-1ubuntu1, when I run any arbitrary bpftrace command such as
$ sudo bpftrace -l '*sleep*'
I get the following error:
: CommandLine Error: Option 'debug-counter' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
Aborted
Making the package currently unusable in oracular.
Possibly related upstream bug: https:/
Related branches
- Nick Rosbrook (community): Disapprove
-
Diff: 83 lines (+61/-0)3 files modifieddebian/changelog (+6/-0)
debian/patches/fix-shared-llvm-linkage.patch (+54/-0)
debian/patches/series (+1/-0)
Changed in bpftrace (Ubuntu): | |
importance: | Undecided → Critical |
summary: |
- Option 'debug-counter' registered more than once + bpftrace is broken on Oracular |
tags: | added: rls-oo-incoming |
Changed in bpftrace (Ubuntu): | |
status: | New → Confirmed |
description: | updated |
description: | updated |
This is caused by two copies of LLVM being linked into the bpftrace binary: both the shared libraryand the static ones.
I guess if these are the same version this doesnt cause issues, but a later LLVM update left the static one s out of date.
The patch is to change the build process to only link the shared LLVM.
Seems like the LLVM in plucky is linked correctly.