-gsframe makes binutils 2.44 crash
Claudiu Zissulescu-Ianculescu
claudiu.zissulescu-ianculescu@oracle.com
Tue Jul 22 08:25:49 GMT 2025
Hi Samuel,
It seems you hit this bug:
https://sourceware.org/bugzilla/show_bug.cgi?id=32879
There is in motion a new patch which will disable the SFrame building
for binutils < 2.45.
Thank you,
Claudiu
On 7/22/25 11:04 AM, Samuel Thibault wrote:
> Hello,
>
> While trying to build glibc on a Debian 13 system, I am getting a crash
> while building $PWD/elf/tst-quadmod1.os:
>
> /tmp/ccdbYXUN.s: Assembler messages:
> /tmp/ccdbYXUN.s: Internal error (Segmentation fault).
>
> actually, reducing it down to:
>
> $ cat /tmp/ccdbYXUN.s
> .text
> .cfi_startproc
> .cfi_def_cfa_register 6
> .cfi_endproc
> $ as -gsframe /tmp/ccdbYXUN.s -o out.o
>
> crashes. Do we really want to enable gsframe by default already?
>
> Samuel
>
> (gdb) bt
> #0 sframe_xlate_do_def_cfa_register (xlate_ctx=0x555555668580, cfi_insn=0x555555665030) at ../../gas/gen-sframe.c:146
> #1 sframe_do_cfi_insn (xlate_ctx=<optimized out>, cfi_insn=0x555555665030) at ../../gas/gen-sframe.c:1378
> #2 sframe_do_fde (xlate_ctx=0x555555668580, dw_fde=0x555555664ef0) 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 0x00005555555a3c21 in cfi_finish () at ../bfd/bfd.h:2501
> #7 main (argc=<optimized out>, argv=<optimized out>) at ../../gas/as.c:1465
More information about the Libc-alpha
mailing list