Bug 2504691

Summary: strace: FTBFS in Fedora rawhide/f45
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: straceAssignee: Dmitry V. Levin <ldv>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 45CC: evgsyr, fweimer, ldv, mpetlan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: strace-7.1-3.fc45 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2433833, 2503726    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2026-07-21 21:56:17 UTC
strace failed to build from source in Fedora rawhide/f45

https://koji.fedoraproject.org/koji/taskinfo?taskID=147921986


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
Please fix strace at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
strace will be orphaned. Before branching of Fedora 46,
strace will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2026-07-21 21:56:28 UTC
Created attachment 2151835 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Fedora Release Engineering 2026-07-21 21:56:33 UTC
Created attachment 2151836 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2026-07-21 21:56:36 UTC
Created attachment 2151837 [details]
state.log

Comment 4 Dmitry V. Levin 2026-07-22 06:40:19 UTC
This is a ppc64le-only PTRACE_GETREGS regression introduced by upstream Linux kernel commit https://git.kernel.org/torvalds/c/d7a6797e0bc1ee7bddb8a298f2d1acddb300efb3 aka v7.2-rc1~97^2~27: they've extended struct pt_regs by 32 bytes.

Comment 5 Michael Petlan 2026-08-04 16:48:46 UTC
IMO the corresponding struct in strace's code should be aligned with the kernel change in strace-7.2, however in fedora, we currently have kernel-7.2-rc6 while strace still in 7.1. So the question is how to deal with this in a clean way before it gets fixed upstream in strace.

Comment 6 Florian Weimer 2026-08-05 06:41:38 UTC
(In reply to Michael Petlan from comment #5)
> IMO the corresponding struct in strace's code should be aligned with the
> kernel change in strace-7.2, however in fedora, we currently have
> kernel-7.2-rc6 while strace still in 7.1. So the question is how to deal
> with this in a clean way before it gets fixed upstream in strace.

I think the kernel should apply the upstream fix:

powerpc: Fix exit_flags field placement in pt_regs for ptrace
<https://lore.kernel.org/all/20260723194809.4046600-1-mkchauras@gmail.com/>
<https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id=263e5159e00aa46bf26f3496ff7aae1fc9a6c826>

Comment 7 Michael Petlan 2026-08-05 12:27:17 UTC
Good! That would explain why I cannot reproduce the problem on ppc64le running the latest Rawhide, where 7.2-rc6 is running... :)

Comment 8 Aoife Moloney 2026-08-17 15:34:15 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.