gdb crashes. And the application closes, not the Qtcreator