bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/29309] New: Assembler Segmentation Fault when -g is given


From: volker.weissmann at gmx dot de
Subject: [Bug gas/29309] New: Assembler Segmentation Fault when -g is given
Date: Thu, 30 Jun 2022 20:01:14 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=29309

            Bug ID: 29309
           Summary: Assembler Segmentation Fault when -g is given
           Product: binutils
           Version: 2.34
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: volker.weissmann at gmx dot de
  Target Milestone: ---

I'm not sure if this is a bug in GCC or in as.

$ gcc -g -c bug.S --save-temps
bug.s: Assembler messages:
bug.s: Internal error (Segmentation fault).
Please report this bug.

$ as -g -c bug.S

$ cat bug.s
# 0 "bug.S"
# 1 "/home/volker/Documents/bug//"
# 0 "<built-in>"
# 0 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 0 "<command-line>" 2
# 1 "bug.S"
.text
.globl square_unsigned

.type square_unsigned,@function


square_unsigned:
 imull %edi, %edi
 movl %edi, %eax
 retq

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-bootstrap
--prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/
--with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit
--enable-cet=auto --enable-checking=release --enable-clocale=gnu
--enable-default-pie --enable-default-ssp --enable-gnu-indirect-function
--enable-gnu-unique-object --enable-linker-build-id --enable-lto
--enable-multilib --enable-plugin --enable-shared --enable-threads=posix
--disable-libssp --disable-libstdcxx-pch --disable-werror
--with-build-config=bootstrap-lto --enable-link-serialization=1
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.1.0 (GCC)

$ as --version
GNU assembler (GNU Binutils) 2.34.50.20200328
Copyright (C) 2020 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-pc-linux-gnu'.

$ uname -a
Linux battle 5.18.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 22 Jun 2022 18:10:56
+0000 x86_64 GNU/Linux

I'm on Arch Linux.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]