Skip to content

Commit d6c3434

Browse files
authored
Fix image build segfaults on QEMU (#2018)
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.
1 parent 61a1fed commit d6c3434

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/collector-builder.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ jobs:
7070

7171
- name: Set up QEMU
7272
uses: docker/setup-qemu-action@v3
73+
with:
74+
image: tonistiigi/binfmt:qemu-v8.1.5
7375

7476
- name: Set up Docker Buildx
7577
uses: docker/setup-buildx-action@v3

.github/workflows/collector.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747

4848
- name: Set up QEMU
4949
uses: docker/setup-qemu-action@v3
50+
with:
51+
image: tonistiigi/binfmt:qemu-v8.1.5
5052

5153
- name: Set up Docker Buildx
5254
uses: docker/setup-buildx-action@v3

0 commit comments

Comments
 (0)