From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 00C793858424; Mon, 18 Dec 2023 07:30:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 00C793858424 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702884645; bh=4Y6x+XOHpT4BYKFSLl6tGgvpgkNjvo7hWR698On6joI=; h=From:To:Subject:Date:From; b=Fw9TJpwpXsGvEtrSbnSfHC2ewbNaFlsBmJ8u0kqQu1laTRkRqM4iXG5wn/6FmWeqV RlNG/QaxLKMuMN24FGjo88NwbzOpfeRxrTI3PEW5lrsNchS7pbyGQr2hopJBRjbVYI 15jlMXLvGkAXbVXUXG/wE0wFfBCFoWS+9X8497eQ= From: "iamanonymous.cs at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/113057] New: Segmentation fault in dwarf2out.cc:941 with -O -fno-dwarf2-cfi-asm Date: Mon, 18 Dec 2023 07:30:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: iamanonymous.cs at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113057 Bug ID: 113057 Summary: Segmentation fault in dwarf2out.cc:941 with -O -fno-dwarf2-cfi-asm Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: iamanonymous.cs at gmail dot com Target Milestone: --- Compiler Explorer: https://godbolt.org/z/4ndYafjnT ***************************************************************************= **** OS and Platform: $ uname -a: Linux ubuntu 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux ***************************************************************************= **** gcc version: $ gcc -v Using built-in specs. COLLECT_GCC=3D/root/gcc_set/202311291030/bin/gcc COLLECT_LTO_WRAPPER=3D/root/gcc_set/202311291030/libexec/gcc/x86_64-pc-linu= x-gnu/14.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --prefix=3D/root/gcc_set/202311291030 --with-gmp=3D/root/build_essential --with-mpfr=3D/root/build_essential --with-mpc=3D/root/build_essential --enable-languages=3Dc,c++ --disable-mul= tilib --with-sanitizer=3Daddress,undefined,thread,leak Thread model: posix Supported LTO compression algorithms: zlib gcc version 14.0.0 20231129 (experimental) (GCC)=20 git version: 99fa0bfd63d97825c4221dcd3123940f1d0e6291 ***************************************************************************= **** Program: $ cat mutant.c int __RTL (startwith ("final")) a () { (function "" )=20 } ***************************************************************************= **** Command Lines: $ gcc -O -fno-dwarf2-cfi-asm mutant.c mutant.c:3:1: internal compiler error: Segmentation fault 3 | } | ^ 0x101491f crash_signal ../../gcc/gcc/toplev.cc:316 0xb6efb7 vec::iterate(unsigned int, dw_cfi_node**) const ../../gcc/gcc/vec.h:951 0xb6efb7 output_call_frame_info ../../gcc/gcc/dwarf2out.cc:941 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions.=