From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 573D83858CD1; Thu, 1 Feb 2024 05:19:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 573D83858CD1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706764745; bh=70wTo38XEGYg7dyppXzpm5pifgVIKUYEW38xEaKg/5Y=; h=From:To:Subject:Date:From; b=GsuuTQlzAh420/XXKlKxq8o3iOhT5LBlK7V3hi8FNcw8GpiUNaBgj87LqPSp4vqVy ZDYDnEoQ9Lo1aGg4gvuvccslhUJEOf5HhobqWIuhtT3WEe0kWhqWGGOAMSfGcOTAN6 h7yb0iJToH8Z6+Z1dfV5nL76jhmIY6yfAqHUGUug= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113699] New: during GIMPLE pass: bitintlower ICE: SIGSEGV in var_to_partition (tree-ssa-live.h:163) with _BitInt() used in __asm__ Date: Thu, 01 Feb 2024 05:19:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz 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 cc target_milestone cf_gcchost cf_gcctarget attachments.created 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=3D113699 Bug ID: 113699 Summary: during GIMPLE pass: bitintlower ICE: SIGSEGV in var_to_partition (tree-ssa-live.h:163) with _BitInt() used in __asm__ Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz CC: jakub at gcc dot gnu.org Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 57276 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57276&action=3Dedit reduced testcase (from gcc.target/i386/pr41985.c) Compiler output: $ x86_64-pc-linux-gnu-gcc testcase.c -wrapper valgrind,-q =3D=3D30321=3D=3D Invalid read of size 8 =3D=3D30321=3D=3D at 0x271DC7F: var_to_partition (tree-ssa-live.h:163) =3D=3D30321=3D=3D by 0x271DC7F: lower_asm (gimple-lower-bitint.cc:5203) =3D=3D30321=3D=3D by 0x271DC7F: (anonymous namespace)::bitint_large_huge::lower_stmt(gimple*) (gimple-lower-bitint.cc:5240) =3D=3D30321=3D=3D by 0x2720009: gimple_lower_bitint() (gimple-lower-biti= nt.cc:6564) =3D=3D30321=3D=3D by 0x13CDCBA: execute_one_pass(opt_pass*) (passes.cc:2= 646) =3D=3D30321=3D=3D by 0x13CE5AF: execute_pass_list_1(opt_pass*) (passes.c= c:2755) =3D=3D30321=3D=3D by 0x13CE5E8: execute_pass_list(function*, opt_pass*) (passes.cc:2766) =3D=3D30321=3D=3D by 0xFCDC05: expand (cgraphunit.cc:1843) =3D=3D30321=3D=3D by 0xFCDC05: cgraph_node::expand() (cgraphunit.cc:1796) =3D=3D30321=3D=3D by 0xFCEB19: output_in_order (cgraphunit.cc:2193) =3D=3D30321=3D=3D by 0xFCEB19: symbol_table::compile() [clone .part.0] (cgraphunit.cc:2397) =3D=3D30321=3D=3D by 0xFD1AC7: compile (cgraphunit.cc:2313) =3D=3D30321=3D=3D by 0xFD1AC7: symbol_table::finalize_compilation_unit() (cgraphunit.cc:2585) =3D=3D30321=3D=3D by 0x150FF61: compile_file() (toplev.cc:474) =3D=3D30321=3D=3D by 0xDE840B: do_compile (toplev.cc:2152) =3D=3D30321=3D=3D by 0xDE840B: toplev::main(int, char**) (toplev.cc:2308) =3D=3D30321=3D=3D by 0xDE9BEA: main (main.cc:39) =3D=3D30321=3D=3D Address 0x0 is not stack'd, malloc'd or (recently) free'd =3D=3D30321=3D=3D=20 during GIMPLE pass: bitintlower0 testcase.c: In function 'foo': testcase.c:2:1: internal compiler error: Segmentation fault 2 | foo (void) | ^~~ 0x150fa7f crash_signal /repo/gcc-trunk/gcc/toplev.cc:317 0x271dc7f var_to_partition(_var_map*, tree_node*) /repo/gcc-trunk/gcc/tree-ssa-live.h:163 0x271dc7f lower_asm /repo/gcc-trunk/gcc/gimple-lower-bitint.cc:5203 0x271dc7f lower_stmt /repo/gcc-trunk/gcc/gimple-lower-bitint.cc:5240 0x2720009 gimple_lower_bitint /repo/gcc-trunk/gcc/gimple-lower-bitint.cc:6564 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. $ x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r14-8665-20240131161256-= g3fed1609f61-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc= /x86_64-pc-linux-gnu/14.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,rtl,df,= extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --target=3Dx86_64-pc-linux-gnu --with-ld=3D/usr/bin/x86_64-pc-linux-gnu-ld --with-as=3D/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r14-8665-20240131161256-g3fed1609f= 61-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.1 20240131 (experimental) (GCC)=