[Bug middle-end/110282] Segmentation fault with specific optimizations
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110282 --- Comment #7 from Xi Ruoyao --- (In reply to CTC from comment #6) > Another related and smaller reproducer: > > # cat tmp.i > main() { > int *a = 0; > int b = *a; > } No, this is an undefined behavior and the compiler is allowed to generate code to crash.
[Bug middle-end/110282] Segmentation fault with specific optimizations
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110282 --- Comment #6 from CTC <19373742 at buaa dot edu.cn> --- Another related and smaller reproducer: # cat tmp.i main() { int *a = 0; int b = *a; }
[Bug middle-end/110282] Segmentation fault with specific optimizations
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110282 --- Comment #5 from Andrew Pinski --- Note I suspect r12-248-gb58dc0b803057c0e6032e0d9b made the problem latent in GCC 12+. But turning off DSE in GCC 12.1.0 does not reproduce the bug
[Bug middle-end/110282] Segmentation fault with specific optimizations
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110282 --- Comment #4 from CTC <19373742 at buaa dot edu.cn> --- (In reply to Richard Biener from comment #3) > Confirmed behavior also with GCC 10, with -fno-bit-tests -fbit-tests > -fno-ipa-modref -fipa-modref removed. > > Can you please adjust your script to not pointlessly increase the command > line > by adding both positive and neagtive variants of an option? Can you please > try to reduce the set of arbitrary options that reproduce the issue? > > 25kB garbage testcases are painfully enough to even look at. Other fuzzing > people manage to file bugs with < 100 lines of code and a command line that > remotely makes sense. Sorry for the long command lines. This issue can be reproduced with -O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink.
[Bug middle-end/110282] Segmentation fault with specific optimizations
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110282 Richard Biener changed: What|Removed |Added Known to fail||10.4.0, 11.1.0, 11.3.0 Known to work||12.3.0, 13.1.0 --- Comment #3 from Richard Biener --- Confirmed behavior also with GCC 10, with -fno-bit-tests -fbit-tests -fno-ipa-modref -fipa-modref removed. Can you please adjust your script to not pointlessly increase the command line by adding both positive and neagtive variants of an option? Can you please try to reduce the set of arbitrary options that reproduce the issue? 25kB garbage testcases are painfully enough to even look at. Other fuzzing people manage to file bugs with < 100 lines of code and a command line that remotely makes sense.
[Bug middle-end/110282] Segmentation fault with specific optimizations
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110282 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #2 from Xi Ruoyao --- Not reproducible with GCC 13.1 too.