You need to configure gdb in that way it does not stop at SIGUSR1/2. These signals are used by the GC to pause the program. in the GDB command line use these commands: handle SIGUSR1 nostop noprint handle SIGUSR2 nostop noprint then run the program.