Bug 2382126

Summary: binutils: GAS crash with --sframe
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: binutilsAssignee: Nick Clifton <nickc>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: dvlasenk, fweimer, jakub, josmyers, nickc, sipoyare, suraj.ghimire7
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: binutils-2.44-5.fc42 binutils-2.43.1-8.fc41 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-07-23 00:59:59 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:
Attachments:
Description Flags
tst-quadmod1.s none

Description Florian Weimer 2025-07-20 09:38:55 UTC
Seen with binutils-2.44-3.fc42.x86_64:

Program received signal SIGSEGV, Segmentation fault.
0x000055555556d70a in sframe_xlate_do_def_cfa_register (                        
    xlate_ctx=0x55555566ab90, cfi_insn=<optimized out>)
    at ../../gas/gen-sframe.c:1044
1044      sframe_fre_set_cfa_offset (cur_fre, last_fre->cfa_offset);
(gdb) bt
#0  0x000055555556d70a in sframe_xlate_do_def_cfa_register (
    xlate_ctx=0x55555566ab90, cfi_insn=<optimized out>)
    at ../../gas/gen-sframe.c:1044
#1  sframe_do_cfi_insn (xlate_ctx=<optimized out>, cfi_insn=<optimized out>)
    at ../../gas/gen-sframe.c:1378
#2  sframe_do_fde (xlate_ctx=0x55555566ab90, dw_fde=0x555555665fa0)
    at ../../gas/gen-sframe.c:1456
#3  create_sframe_all () at ../../gas/gen-sframe.c:1525
#4  output_sframe (sframe_seg=<optimized out>) at ../../gas/gen-sframe.c:1553
#5  cfi_finish () at ../../gas/dw2gencfi.c:2516
#6  0x000055555555630c in main (argc=<optimized out>, argv=<optimized out>)
    at ../../gas/as.c:1465


Reproducible: Always

Steps to Reproduce:
1. as --gsframe tst-quadmod1.s

Actual Results:
tst-quadmod1.s: Assembler messages:
tst-quadmod1.s: Internal error (Segmentation fault).
Please report this bug.

Expected Results:
Object file is produced.

Comment 1 Florian Weimer 2025-07-20 09:40:06 UTC
Created attachment 2097762 [details]
tst-quadmod1.s

Comment 2 Nick Clifton 2025-07-21 09:07:45 UTC
I have tracked this down to upstream PR 32879.  It was fixed by commit 3602da6fa285d6b22d87bcc39056e919e939ef07 so I am going to backport this to F42.

Comment 3 Fedora Update System 2025-07-21 12:57:29 UTC
FEDORA-2025-bcc0c8cbe8 (binutils-2.43.1-8.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-bcc0c8cbe8

Comment 4 Fedora Update System 2025-07-21 12:57:30 UTC
FEDORA-2025-de3a288439 (binutils-2.44-5.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-de3a288439

Comment 5 Nick Clifton 2025-07-21 12:58:24 UTC
Fixed in binutils-2.44-5.fc42 and binutils-2.43.1-8.fc41.

Comment 6 Fedora Update System 2025-07-22 00:49:29 UTC
FEDORA-2025-de3a288439 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-de3a288439`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-de3a288439

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2025-07-22 01:47:01 UTC
FEDORA-2025-bcc0c8cbe8 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-bcc0c8cbe8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-bcc0c8cbe8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2025-07-23 00:59:59 UTC
FEDORA-2025-de3a288439 (binutils-2.44-5.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2025-08-06 01:55:27 UTC
FEDORA-2025-bcc0c8cbe8 (binutils-2.43.1-8.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.