From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4C594385803E; Wed, 10 Jan 2024 21:19:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4C594385803E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704921567; bh=CrquwS8fxMtcY46uaGqsnEQyWopj4+9gvVNHY6pfH2o=; h=From:To:Subject:Date:From; b=P8iqhAmlPnH8q9HdfMsoynNZl593LUIvhIbEUInyZKcC17Fi4Y4qeQlE8TllXIOO+ k1JreHwhm+UO4GMavihp55dS1ZZGcPXvGIHa9rEzxjlWeIodw4kVZ53WLXMkbA+nxT /Kz4EM5+UD+aa+JqTGesF7V7iaRvqN9yYNV8SnlM= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113316] New: during GIMPLE pass: bitintlower ICE: SIGSEGV in var_to_partition (tree-ssa-live.h:163) at -O with uninitialized _BitInt() function argument Date: Wed, 10 Jan 2024 21:19:25 +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: ice-on-valid-code 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 keywords 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=3D113316 Bug ID: 113316 Summary: during GIMPLE pass: bitintlower ICE: SIGSEGV in var_to_partition (tree-ssa-live.h:163) at -O with uninitialized _BitInt() function argument Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-valid-code 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 57030 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57030&action=3Dedit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O testcase.c -wrapper valgrind,-q =3D=3D9456=3D=3D Invalid read of size 8 =3D=3D9456=3D=3D at 0x2661471: var_to_partition (tree-ssa-live.h:163) =3D=3D9456=3D=3D by 0x2661471: (anonymous namespace)::bitint_large_huge::lower_call(tree_node*, gimple*) (gimple-lower-bitint.cc:5120) =3D=3D9456=3D=3D by 0x266BF59: gimple_lower_bitint() (gimple-lower-bitin= t.cc:6514) =3D=3D9456=3D=3D by 0x13CA4BA: execute_one_pass(opt_pass*) (passes.cc:26= 46) =3D=3D9456=3D=3D by 0x13CADAF: execute_pass_list_1(opt_pass*) (passes.cc= :2755) =3D=3D9456=3D=3D by 0x13CADC1: execute_pass_list_1(opt_pass*) (passes.cc= :2756) =3D=3D9456=3D=3D by 0x13CADE8: execute_pass_list(function*, opt_pass*) (passes.cc:2766) =3D=3D9456=3D=3D by 0xFCB105: expand (cgraphunit.cc:1842) =3D=3D9456=3D=3D by 0xFCB105: cgraph_node::expand() (cgraphunit.cc:1795) =3D=3D9456=3D=3D by 0xFCC44A: expand_all_functions (cgraphunit.cc:2025) =3D=3D9456=3D=3D by 0xFCC44A: symbol_table::compile() [clone .part.0] (cgraphunit.cc:2399) =3D=3D9456=3D=3D by 0xFCEFC7: compile (cgraphunit.cc:2312) =3D=3D9456=3D=3D by 0xFCEFC7: symbol_table::finalize_compilation_unit() (cgraphunit.cc:2584) =3D=3D9456=3D=3D by 0x150C3E1: compile_file() (toplev.cc:473) =3D=3D9456=3D=3D by 0xDE691B: do_compile (toplev.cc:2151) =3D=3D9456=3D=3D by 0xDE691B: toplev::main(int, char**) (toplev.cc:2307) =3D=3D9456=3D=3D by 0xDE80FA: main (main.cc:39) =3D=3D9456=3D=3D Address 0x0 is not stack'd, malloc'd or (recently) free'd =3D=3D9456=3D=3D=20 during GIMPLE pass: bitintlower testcase.c: In function 'foo': testcase.c:4:1: internal compiler error: Segmentation fault 4 | foo (void) | ^~~ 0x150beff crash_signal /repo/gcc-trunk/gcc/toplev.cc:316 0x2661471 var_to_partition(_var_map*, tree_node*) /repo/gcc-trunk/gcc/tree-ssa-live.h:163 0x2661471 lower_call /repo/gcc-trunk/gcc/gimple-lower-bitint.cc:5120 0x266bf59 gimple_lower_bitint /repo/gcc-trunk/gcc/gimple-lower-bitint.cc:6514 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.=