This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc v5+ generates code that cause segment faults
- From: Andrew Haley <aph at redhat dot com>
- To: mfuhrman at enetarch dot net, gcc-help at gcc dot gnu dot org
- Date: Mon, 3 Oct 2016 09:33:27 +0100
- Subject: Re: gcc v5+ generates code that cause segment faults
- Authentication-results: sourceware.org; auth=none
- References: <380-220161013011136@M2W160.mail2web.com>
On 03/10/16 01:01, mfuhrman@enetarch.net wrote:
> I have compiled this program under many different versions of Fedora using
> NetBeans 8.0.2 and 8.1, and have come to the conclusion that the segment
> faults
> are being created not by the OS, but by the compiler. Provided here are my
> findings thus far. I hope that someone can shed light on why this error is
> occurring, and provide a resolution.
Build with -fsanitize=undefined. Fix any bugs you find, and try
again.
Andrew.