Bug 2437073

Summary: ld segfaults when linking embedded BPF object for xdp-tools
Product: [Fedora] Fedora Reporter: Toke Høiland-Jørgensen <thoiland>
Component: binutilsAssignee: Nick Clifton <nickc>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: rawhideCC: dvlasenk, fweimer, jakub, josmyers, nickc, ralvaro, sipoyare, suraj.ghimire7
Target Milestone: ---Keywords: Regression
Target Release: ---Flags: ralvaro: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-02-10 11:21:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2435196    

Description Toke Høiland-Jørgensen 2026-02-05 16:16:04 UTC
I'm getting segfault errors when building xdp-tools on Koji:

gcc -r -nostdlib -Wl,-z,noexecstack,--format=binary -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes   -o xsk_def_xdp_prog.embed.o xsk_def_xdp_prog.o
gcc -r -nostdlib -Wl,-z,noexecstack,--format=binary -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes   -o xsk_def_xdp_prog_5.3.embed.o xsk_def_xdp_prog_5.3.o
gcc -r -nostdlib -Wl,-z,noexecstack,--format=binary -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes   -o xdp-dispatcher.embed.o xdp-dispatcher.o
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
compilation terminated.
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
compilation terminated.
make[2]: *** [Makefile:137: xsk_def_xdp_prog_5.3.embed.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:137: xsk_def_xdp_prog.embed.o] Error 1
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
compilation terminated.

This only happens on x86_64 and s390, but seems to be consistent on those arches (at least I got the same error twice).

See full log here: https://koji.fedoraproject.org/koji/taskinfo?taskID=141947203

Reproducible: Always

Comment 1 Nick Clifton 2026-02-06 13:15:27 UTC
Hi Toke,

  The good news is that this should be fixed by the latest binutils release (binutils-2.45.50-19.fc44).

  The bad news is that the release was stuck in Bodhi because of testing issues.  But I have waived the problems so the build should reach the buildroot soon.

Cheers
  Nick

Comment 2 Toke Høiland-Jørgensen 2026-02-06 13:49:56 UTC
Alright, sounds good; will wait for that to appear and give it another go. Thanks!

Comment 3 Toke Høiland-Jørgensen 2026-02-09 10:47:10 UTC
Okay, so that version does seem to have made it into buildroot now, but the segfault persists: https://koji.fedoraproject.org/koji/taskinfo?taskID=142116942

root.log:
DEBUG util.py:461:   binutils                          x86_64 0:2.45.50-19.fc44            build       27.4 MiB

build.log:
gcc -r -nostdlib -Wl,-z,noexecstack,--format=binary -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes   -o xdp-dispatcher.embed.o xdp-dispatcher.o
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
compilation terminated.

Comment 4 Nick Clifton 2026-02-09 14:48:28 UTC
Hi Toke,

> Okay, so that version does seem to have made it into buildroot now, but the
> segfault persists:
> https://koji.fedoraproject.org/koji/taskinfo?taskID=142116942

Yes, I was able to reproduce this as well.  I could have sworn that it worked when I tested it originally. :-(

Anyway, I have tested both binutils-2.45.90-1.fc44 (for Fedora 44) and binutils-2.46-1.fc45 (for rawhide) and they are working for me.  So I really really hope that this time, once they reach the buildroot, your builds will start working properly.

Cheers
  Nick

Comment 5 Toke Høiland-Jørgensen 2026-02-10 11:21:58 UTC
Right, looks like my scratch builds are succeeding now, so I guess that means it's fixed - thanks!

rawhide: https://koji.fedoraproject.org/koji/taskinfo?taskID=142155345
f44: https://koji.fedoraproject.org/koji/taskinfo?taskID=142155944