Comment #4 on issue 226 by benoit.m... at ...626...: SIGSEGV handler overwritten (for too long) http://code.google.com/p/gambas/issues/detail?id=226 I mean: you should have the debugger and the emulator in two different processes, and make them communicate through a pipe.