Re: Inconsistent segmentation fault in GCC

2021-12-23 Thread Jonathan Wakely via Gcc
On Thu, 23 Dec 2021, 06:07 Alessandro Baretta via Gcc, wrote: > > How I might help diagnose and fix this bug? For instance, how does one > run gcc from inside gdb? I know that gcc is just the driver and > cc1plus is the actual compiler, so I presume I'd have to run cc1plus > inside gdb, but as

Re: Inconsistent segmentation fault in GCC

2021-12-22 Thread Alessandro Baretta via Gcc
Andrew, Thank you for your kind reply. You alerted me to the fact that the bug I am seeing is likely limited to a version or a small range of versions of GCC. I have thus tinkered with my project's CMakeLists.txt and discovered the following: * The compiler was originally set to `gcc-11`, whereas

Re: Inconsistent segmentation fault in GCC

2021-12-22 Thread Andrew Pinski via Gcc
On Wed, Dec 22, 2021 at 5:07 PM Alessandro Baretta via Gcc wrote: > > Hello GCC hackers, and thank you very much for your precious work here. > > I've been observing somewhat random GCC segfaults in my C++ 20 > codebase for a while. By "random" I mean that if I rerun the cmake > build after a

Inconsistent segmentation fault in GCC

2021-12-22 Thread Alessandro Baretta via Gcc
Hello GCC hackers, and thank you very much for your precious work here. I've been observing somewhat random GCC segfaults in my C++ 20 codebase for a while. By "random" I mean that if I rerun the cmake build after a failure, 75% out of the time it will succeed, and it might fail again the next