Program that segfaults with-Ofast
Mason
slash.tmp@free.fr
Thu Jan 4 14:03:00 GMT 2018
On 04/01/2018 13:16, Andrew Haley wrote:
> On 04/01/18 12:13, Christer Solskogen wrote:
>> On 04.01.2018 12:18, David Brown wrote:
>>
>>> Start with
>>>
>>> -fsanitize=address
>>> -fsanitize=undefined
>>
>> Adding -fsanitize=undefined gets rid of the segfault. Funny.
>> But -fsanitize=address gave a lot of hints.
>> Thanks! I think I have something to go with now!
>
> When you find it, I'm sure we'll be interested to know what ot was.
Uninitialized pointer / pointer offset?
Christer, can you post the warnings from the sanitizer?
Regards.
More information about the Gcc-help
mailing list