Compiler optimization produced segfaults? idk man