Here the gdb backtrace with optimisation: https://paste.opensuse.org/91476683 Here the gdb backtrace without optimisation: https://paste.opensuse.org/28271205 I did also a test by adding a "return 0;" at the beginning of main(). This does also crash, the main() function is not reached at all.