https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92301
Bug ID: 92301
Summary: bootstrap internal compiler error: Aborted free():
invalid next size (fast)
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: jan at jki dot io
Target Milestone: ---
gcc bootstrapped with -O3 seems to be broken at the moment.
flags are: "-march=skylake -g1 -O2"
latest trunk
If I compile with -O2 it works
COLLECT_GCC_OPTIONS='-B'
'/var/tmp/portage/sys-devel/gcc-10.0.0_pre9999/work/build/./gcc/' '-B'
'/usr/x86_64-pc-linux-gnu/bin/' '-B' '/usr/x86_64-pc-linux-gnu/lib/' '-isystem'
'/usr/
/var/tmp/portage/sys-devel/gcc-10.0.0_pre9999/work/build/./gcc/cc1
-fpreprocessed conftest.i -quiet -dumpbase conftest.c -march=skylake -auxbase
conftest -g -g1 -O2 -O3 -version -fn
GNU C17 (Gentoo 10.0.0_pre9999) version 10.0.0-pre9999 20191031 (experimental)
(x86_64-pc-linux-gnu)
compiled by GNU C version 10.0.0-pre9999 20191031 (experimental), GMP version
6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.21-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C17 (Gentoo 10.0.0_pre9999) version 10.0.0-pre9999 20191031 (experimental)
(x86_64-pc-linux-gnu)
compiled by GNU C version 10.0.0-pre9999 20191031 (experimental), GMP version
6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.21-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: fa416f315144141f16c1f6d6e3d5dca9
free(): invalid next size (fast)
during RTL pass: ree
conftest.c: In function 'main':
conftest.c:16:1: internal compiler error: Aborted
16 | }
| ^
0x7fa14496770f ???
/var/tmp/portage/sys-libs/glibc-2.30/work/glibc-2.30/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x7fa14496766a __GI_raise
../sysdeps/unix/sysv/linux/raise.c:51
0x7fa14491855b __GI_abort
/var/tmp/portage/sys-libs/glibc-2.30/work/glibc-2.30/stdlib/abort.c:79
0x7fa1449a682c __libc_message
../sysdeps/posix/libc_fatal.c:181
0x7fa1449ae519 malloc_printerr
/var/tmp/portage/sys-libs/glibc-2.30/work/glibc-2.30/malloc/malloc.c:5341
0x7fa144939c20 _int_free
/var/tmp/portage/sys-libs/glibc-2.30/work/glibc-2.30/malloc/malloc.c:4252
0x7fa144939c20 __GI___libc_free
/var/tmp/portage/sys-libs/glibc-2.30/work/glibc-2.30/malloc/malloc.c:3127
0x7fa1449495eb __libc_start_main
../csu/libc-start.c:308
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.