From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B33C53858C78; Sat, 18 Nov 2023 20:24:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B33C53858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700339086; bh=d5/KhQ9xigNAWhSYg193bZY4kTXIuKSrzh+QzPPcYi8=; h=From:To:Subject:Date:From; b=OhaWEkgumxydwvsEG/PdURP5qBkQ4yvw3m1++Z+rZQmp/SSuk7J+WnRhyvueW5K7/ xLtnctOWDWXlKJk5h11bBgmW6sOCPXluQiZ65go1PWXQyr42i6IX5SwcwTSUv4qLq+ 1ayqMxHjPhtKK3+PuEdRRg0yteGhxJvtfkQVZeig= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/112610] New: [12/13/14 Regression] ICE: SIGSEGV with -flive-range-shrinkage -fdump-rtl-all-all -fira-verbose=9 Date: Sat, 18 Nov 2023 20:24:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-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 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=3D112610 Bug ID: 112610 Summary: [12/13/14 Regression] ICE: SIGSEGV with -flive-range-shrinkage -fdump-rtl-all-all -fira-verbose=3D9 Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 56634 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56634&action=3Dedit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -flive-range-shrinkage -fdump-rtl-all-all -fira-verbose=3D9 testcase.c -wrapper valgrind,-q,--exit-on-first-error=3Dyes,--error-exitcode=3D1 =3D=3D31926=3D=3D Invalid read of size 4 =3D=3D31926=3D=3D at 0x4E688E7: __vfprintf_internal (in /lib64/libc.so.6) =3D=3D31926=3D=3D by 0x4F221A9: __fprintf_chk (in /lib64/libc.so.6) =3D=3D31926=3D=3D by 0x1285694: fprintf (stdio2.h:79) =3D=3D31926=3D=3D by 0x1285694: record_reg_classes(int, int, rtx_def**, machine_mode*, char const**, rtx_insn*, reg_class*) [clone .constprop.0] (ira-costs.cc:512) =3D=3D31926=3D=3D by 0x1287415: record_operand_costs(rtx_insn*, reg_clas= s*) (ira-costs.cc:1502) =3D=3D31926=3D=3D by 0x1287A47: scan_one_insn (ira-costs.cc:1596) =3D=3D31926=3D=3D by 0x1287A47: process_bb_for_costs(basic_block_def*) (ira-costs.cc:1746) =3D=3D31926=3D=3D by 0x128A20F: find_costs_and_classes(_IO_FILE*) (ira-costs.cc:2030) =3D=3D31926=3D=3D by 0x128AC7A: ira_set_pseudo_classes(bool, _IO_FILE*) (ira-costs.cc:2614) =3D=3D31926=3D=3D by 0x26736F5: alloc_global_sched_pressure_data (haifa-sched.cc:7201) =3D=3D31926=3D=3D by 0x26736F5: sched_init() (haifa-sched.cc:7356) =3D=3D31926=3D=3D by 0x2674F5D: haifa_sched_init() (haifa-sched.cc:7368) =3D=3D31926=3D=3D by 0x14714BC: schedule_insns() [clone .part.0] (sched-= rgn.cc:3524) =3D=3D31926=3D=3D by 0x1471B9B: schedule_insns (sched-rgn.cc:3518) =3D=3D31926=3D=3D by 0x1471B9B: rest_of_handle_live_range_shrinkage (sched-rgn.cc:3720) =3D=3D31926=3D=3D by 0x1471B9B: (anonymous namespace)::pass_live_range_shrinkage::execute(function*) (sched-rgn.cc:380= 7) =3D=3D31926=3D=3D by 0x139801A: execute_one_pass(opt_pass*) (passes.cc:2= 641) =3D=3D31926=3D=3D Address 0x5628c30 is 192 bytes inside a block of size 47= 2 free'd =3D=3D31926=3D=3D at 0x4843A5F: free (vg_replace_malloc.c:985) =3D=3D31926=3D=3D by 0x4E7EA19: fclose@@GLIBC_2.2.5 (in /lib64/libc.so.6) =3D=3D31926=3D=3D by 0xFE7F4A: gcc::dump_manager::dump_finish(int) (dumpfile.cc:1519) =3D=3D31926=3D=3D by 0x1397421: pass_fini_dump_file(opt_pass*) (passes.c= c:2258) =3D=3D31926=3D=3D by 0x13984AD: execute_one_pass(opt_pass*) (passes.cc:2= 722) =3D=3D31926=3D=3D by 0x13988FF: execute_pass_list_1(opt_pass*) (passes.c= c:2750) =3D=3D31926=3D=3D by 0x1398911: execute_pass_list_1(opt_pass*) (passes.c= c:2751) =3D=3D31926=3D=3D by 0x1398938: execute_pass_list(function*, opt_pass*) (passes.cc:2761) =3D=3D31926=3D=3D by 0xFA89F5: expand (cgraphunit.cc:1841) =3D=3D31926=3D=3D by 0xFA89F5: cgraph_node::expand() (cgraphunit.cc:1794) =3D=3D31926=3D=3D by 0xFA9909: output_in_order (cgraphunit.cc:2191) =3D=3D31926=3D=3D by 0xFA9909: symbol_table::compile() [clone .part.0] (cgraphunit.cc:2395) =3D=3D31926=3D=3D by 0xFAC8A7: compile (cgraphunit.cc:2311) =3D=3D31926=3D=3D by 0xFAC8A7: symbol_table::finalize_compilation_unit() (cgraphunit.cc:2583) =3D=3D31926=3D=3D by 0x14D99B1: compile_file() (toplev.cc:473) =3D=3D31926=3D=3D Block was alloc'd at =3D=3D31926=3D=3D at 0x4840804: malloc (vg_replace_malloc.c:442) =3D=3D31926=3D=3D by 0x4E7F42A: __fopen_internal (in /lib64/libc.so.6) =3D=3D31926=3D=3D by 0xFE61D8: dump_open (dumpfile.cc:378) =3D=3D31926=3D=3D by 0xFE61D8: dump_open(char const*, bool) (dumpfile.cc= :369) =3D=3D31926=3D=3D by 0xFE8265: gcc::dump_manager::dump_start(int, dump_f= lag*) (dumpfile.cc:1477) =3D=3D31926=3D=3D by 0x13954FD: pass_init_dump_file(opt_pass*) [clone .p= art.0] (passes.cc:2228) =3D=3D31926=3D=3D by 0x1398337: pass_init_dump_file (passes.cc:2563) =3D=3D31926=3D=3D by 0x1398337: execute_one_pass(opt_pass*) (passes.cc:2= 626) =3D=3D31926=3D=3D by 0x13988FF: execute_pass_list_1(opt_pass*) (passes.c= c:2750) =3D=3D31926=3D=3D by 0x1398911: execute_pass_list_1(opt_pass*) (passes.c= c:2751) =3D=3D31926=3D=3D by 0x1398938: execute_pass_list(function*, opt_pass*) (passes.cc:2761) =3D=3D31926=3D=3D by 0xFA89F5: expand (cgraphunit.cc:1841) =3D=3D31926=3D=3D by 0xFA89F5: cgraph_node::expand() (cgraphunit.cc:1794) =3D=3D31926=3D=3D by 0xFA9909: output_in_order (cgraphunit.cc:2191) =3D=3D31926=3D=3D by 0xFA9909: symbol_table::compile() [clone .part.0] (cgraphunit.cc:2395) =3D=3D31926=3D=3D by 0xFAC8A7: compile (cgraphunit.cc:2311) =3D=3D31926=3D=3D by 0xFAC8A7: symbol_table::finalize_compilation_unit() (cgraphunit.cc:2583) =3D=3D31926=3D=3D=20 =3D=3D31926=3D=3D=20 =3D=3D31926=3D=3D Exit program on first error (--exit-on-first-error=3Dyes) $ x86_64-pc-linux-gnu-gcc -vUsing built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-g= cc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r14-5545-20231117101845-= g37183018134-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc= /x86_64-pc-linux-gnu/14.0.0/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-5545-20231117101845-g371830181= 34-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231117 (experimental) (GCC)=