Skip to content

Commit

Permalink
Fix image build segfaults on QEMU (#2018)
Browse files Browse the repository at this point in the history
Collector build randomly started failing on ppc64le and arm64 with the following segfault message:
```
gmake[2]: *** [driver/modern_bpf/CMakeFiles/ProbeSkeleton.dir/build.make:673: driver/modern_bpf/copy_file_range.bpf.o] Segmentation fault (core dumped)
gmake[1]: *** [CMakeFiles/Makefile2:2035: driver/modern_bpf/CMakeFiles/ProbeSkeleton.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
```

The error itself seems to coincide with an update to the GHA runner which updates the kernel:
- Last successful build: https://github.com/stackrox/collector/actions/runs/12890846039/job/36009468005
  - Runner version: 20250105.1.0
- First failing build: https://github.com/stackrox/collector/actions/runs/12939264126/job/36091246392
  - Runner version: 20250120.5.0
  - Release notes for this runner: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20250120.5

Because the errors are specific to ppc64le and arm64 builds, the best guess is that there is an incompatibility between QEMU and this newer kernel. The proposed fix is to update the image used for setting up QEMU.
  • Loading branch information
Molter73 authored Jan 29, 2025
1 parent 61a1fed commit d6c3434
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/collector-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ jobs:

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v8.1.5

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ jobs:

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v8.1.5

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down

0 comments on commit d6c3434

Please sign in to comment.