https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120984
Bug ID: 120984
Summary: [16 Regression] Bunch of 'insufficient space for an
object of type...' errors during ubsan bootstrap
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: diagnostic, needs-bisection
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: pheeck at gcc dot gnu.org
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org
Target Milestone: ---
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
When I do ubsan bootstrap of GCC (--with-build-config=bootstrap-ubsan), I get a
ton of errors like this:
/home/worker/buildworker/tiber-gcc-ubsan/build/gcc/genmodes.cc:975:21: runtime
error: store to address 0x00000f9fc0c8 with insufficient space for an object of
type 'struct mode_data *'
0x00000f9fc0c8: note: pointer points here
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d0 df 9f 0f 00
00 00 00 00 00 00 00
^
/home/worker/buildworker/tiber-gcc-ubsan/build/gcc/genmodes.cc:2064:7: runtime
error: load of address 0x0000085ffb84 with insufficient space for an object of
type 'unsigned int'
0x0000085ffb84: note: pointer points here
00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 91
00 00 00 00 00 00 00
^
I see these errors for ~130 different locations in GCC's sources, so I assume
these must be false positives.
This began somewhere between
r16-1757-ge7fb2459b00cde (the newest commit I know, where this doesn't happen)
r16-1999-g6c472b330ac4fc