diff -r 7a758385dda3 libgo/runtime/proc.c --- a/libgo/runtime/proc.c Wed Feb 20 12:03:21 2013 -0800 +++ b/libgo/runtime/proc.c Thu Feb 28 13:54:25 2013 -0800 @@ -1256,6 +1256,12 @@ // Block signals during pthread_create so that the new thread // starts with signals disabled. It will enable them in minit. sigfillset(&clear); + +#ifdef SIGTRAP + // Blocking SIGTRAP reportedly breaks gdb on Alpha GNU/Linux. + sigdelset(&clear, SIGTRAP); +#endif + sigemptyset(&old); sigprocmask(SIG_BLOCK, &clear, &old); ret = pthread_create(&tid, &attr, runtime_mstart, mp);