From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 30BDE385800B; Fri, 16 Feb 2024 16:25:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 30BDE385800B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708100722; bh=xVpHg0lji44aUrU6DBhBIBUWC4dxeMqfEQKlM3AC1fY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jXFvOOt0/8xzQkteuyKN1aIdHStdIa7x72Om/8kHKSZsJQ/CYZm6krw5WELkami+9 YGXQwiYJU3DoSNvMM+kpETKYIpelPt2rA7XeoL3FBGQBrd9ecJT8j0QGzhVCO8WZjG AYey4aSwLintbHQYeQG3HhAK4thkvymb/4GF+Vc0= From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/111960] [14 Regression] ICE: during GIMPLE pass: rebuild_frequencies: SIGSEGV (Invalid read of size 4) with -fdump-tree-rebuild_frequencies-all Date: Fri, 16 Feb 2024 16:25:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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=3D111960 --- Comment #5 from Jan Hubicka --- hmm. cfg.cc:815 for me is: fputs (", maybe hot", outf); which seems quite safe. The problem does not seem to reproduce for me: jh@ryzen3:~/gcc/build/gcc> ./xgcc -B ./ tt.c -O --param=3Dmax-inline-recursive-depth=3D1000000 -fdump-tree-rebuild_frequenc= ies-all -wrapper valgrind =3D=3D25618=3D=3D Memcheck, a memory error detector =3D=3D25618=3D=3D Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward = et al. =3D=3D25618=3D=3D Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyr= ight info =3D=3D25618=3D=3D Command: ./cc1 -quiet -iprefix /home/jh/gcc/build/gcc/../lib64/gcc/x86_64-pc-linux-gnu/14.0.1/ -isystem ./include -isystem ./include-fixed tt.c -quiet -dumpdir a- -dumpbase tt.c -dumpbase-ext .c -mtune=3Dgeneric -march=3Dx86-64 -O -fdump-tree-rebuild_frequencies-all --param=3Dmax-inline-recursive-depth=3D= 1000000 -o /tmp/ccpkfjdK.s =3D=3D25618=3D=3D=20 =3D=3D25618=3D=3D=20 =3D=3D25618=3D=3D HEAP SUMMARY: =3D=3D25618=3D=3D in use at exit: 1,818,714 bytes in 1,175 blocks =3D=3D25618=3D=3D total heap usage: 39,645 allocs, 38,470 frees, 12,699,8= 74 bytes allocated =3D=3D25618=3D=3D=20 =3D=3D25618=3D=3D LEAK SUMMARY: =3D=3D25618=3D=3D definitely lost: 0 bytes in 0 blocks =3D=3D25618=3D=3D indirectly lost: 0 bytes in 0 blocks =3D=3D25618=3D=3D possibly lost: 8,032 bytes in 1 blocks =3D=3D25618=3D=3D still reachable: 1,810,682 bytes in 1,174 blocks =3D=3D25618=3D=3D suppressed: 0 bytes in 0 blocks =3D=3D25618=3D=3D Rerun with --leak-check=3Dfull to see details of leaked m= emory =3D=3D25618=3D=3D=20 =3D=3D25618=3D=3D For lists of detected and suppressed errors, rerun with: = -s =3D=3D25618=3D=3D ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 fr= om 0) =3D=3D25627=3D=3D Memcheck, a memory error detector =3D=3D25627=3D=3D Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward = et al. =3D=3D25627=3D=3D Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyr= ight info =3D=3D25627=3D=3D Command: ./as --64 -o /tmp/ccp5TNme.o /tmp/ccpkfjdK.s =3D=3D25627=3D=3D=20 =3D=3D25637=3D=3D Memcheck, a memory error detector =3D=3D25637=3D=3D Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward = et al. =3D=3D25637=3D=3D Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyr= ight info =3D=3D25637=3D=3D Command: ./collect2 -plugin ./liblto_plugin.so -plugin-opt=3D./lto-wrapper -plugin-opt=3D-fresolution=3D/tmp/cclWZD7F.res -plugin-opt=3D-pass-through=3D-lgcc -plugin-opt=3D-pass-through=3D-lgcc_s -plugin-opt=3D-pass-through=3D-lc -plugin-opt=3D-pass-through=3D-lgcc -plugin-opt=3D-pass-through=3D-lgcc_s --eh-frame-hdr -m elf_x86_64 -dynamic= -linker /lib64/ld-linux-x86-64.so.2 /lib/../lib64/crt1.o /lib/../lib64/crti.o ./crtbegin.o -L. -L/lib/../lib64 -L/usr/lib/../lib64 /tmp/ccp5TNme.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-ne= eded -lgcc_s --pop-state ./crtend.o /lib/../lib64/crtn.o =3D=3D25637=3D=3D=20 /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /lib/../lib64/crt1.o: in function `_start': /home/abuild/rpmbuild/BUILD/glibc-2.38/csu/../sysdeps/x86_64/start.S:103:(.= text+0x2b): undefined reference to `main' collect2: error: ld returned 1 exit status =3D=3D25637=3D=3D=20 =3D=3D25637=3D=3D HEAP SUMMARY: =3D=3D25637=3D=3D in use at exit: 89,760 bytes in 39 blocks =3D=3D25637=3D=3D total heap usage: 175 allocs, 136 frees, 106,565 bytes = allocated =3D=3D25637=3D=3D=20 =3D=3D25637=3D=3D LEAK SUMMARY: =3D=3D25637=3D=3D definitely lost: 0 bytes in 0 blocks =3D=3D25637=3D=3D indirectly lost: 0 bytes in 0 blocks =3D=3D25637=3D=3D possibly lost: 0 bytes in 0 blocks =3D=3D25637=3D=3D still reachable: 89,760 bytes in 39 blocks =3D=3D25637=3D=3D of which reachable via heuristic: =3D=3D25637=3D=3D newarray : 1,544 bytes = in 1 blocks =3D=3D25637=3D=3D suppressed: 0 bytes in 0 blocks =3D=3D25637=3D=3D Rerun with --leak-check=3Dfull to see details of leaked m= emory =3D=3D25637=3D=3D=20 =3D=3D25637=3D=3D For lists of detected and suppressed errors, rerun with: = -s =3D=3D25637=3D=3D ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 fr= om 0)=