[Bug c++/66774] Any optimization causes segfault on binary
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 6 09:03:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66774
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |trippels at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
In cases like this please build your code with -fsanitize=undefined.
code.cpp:58:39: runtime error: index 4 out of bounds for type 'int [4][2]'
code.cpp:58:42: runtime error: load of address 0x000000410b00 with insufficient
space for an object of type 'const int'
0x000000410b00: note: pointer points here
01 00 00 00 ff ff 01 10 5f 05 a8 05 00 ab 05 05 00 00 b0 05 05 a8 05 00 ff
ff 01 11 b1 01 05 00
^
code.cpp:59:39: runtime error: index 4 out of bounds for type 'int [4][2]'
code.cpp:59:42: runtime error: load of address 0x000000410b04 with insufficient
space for an object of type 'const int'
0x000000410b04: note: pointer points here
ff ff 01 10 5f 05 a8 05 00 ab 05 05 00 00 b0 05 05 a8 05 00 ff ff 01 11 b1
01 05 00 00 f8 07 cc
More information about the Gcc-bugs
mailing list