4 Oct
2018
4 Oct
'18
10:41 p.m.
Dear Devs,
In a clean up on gradient/sp-stop code[1] I've gotten it all working, but for the style-test program itself which crashes with a stack guard error "stack smashing error". The problem only appears if you compile with `-fstack-protector` which is default ON for Ubuntu, but is not for windows and other OSes.
I attempted to use Valgrind (with --tool=exp-sgcheck) but that crashed too. Possibly because of the stack-protector which I can't seem to turn off.
I wanted to also try `-fsanitize=address` to winkle out the problem, but I have no idea where to add CFLAGS in CMake/ninja. So without being able to try other build options, I'm very lost.
Any help would be brilliant.
Best Regards, Martin Owens