Bug 2382126 - binutils: GAS crash with --sframe
Summary: binutils: GAS crash with --sframe
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: binutils
Version: 42
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nick Clifton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-20 09:38 UTC by Florian Weimer
Modified: 2025-08-06 01:55 UTC (History)
7 users (show)

Fixed In Version: binutils-2.44-5.fc42 binutils-2.43.1-8.fc41
Clone Of:
Environment:
Last Closed: 2025-07-23 00:59:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
tst-quadmod1.s (995 bytes, text/plain)
2025-07-20 09:40 UTC, Florian Weimer
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.