On Thu, Feb 28, 2013 at 1:21 PM, Uros Bizjak <ubiz...@gmail.com> wrote: > On Thu, Feb 28, 2013 at 9:55 PM, Ian Lance Taylor <i...@google.com> wrote: >> On Thu, Feb 28, 2013 at 12:44 PM, Uros Bizjak <ubiz...@gmail.com> wrote: >>> >>>> I'm fine with not blocking a signal that the debugger needs, but I >>>> have no idea what that signal might be. >>> >>> Can you please advise me how to avoid blocking certain signal? I have >>> a small testcase using pthreads that dies in the same way, so in fact >>> the problem is not go specific. Anyway, I would like to investigate >>> this issue some more. >> >> To avoid blocking a certain signal, after this line in proc.c >> sigfillset(&clear); >> add >> sigdelset(&clear, SIGINT); >> That will block all the signals other than SIGINT. Pick whatever >> signals you don't want to block, and call sigdelset as often as you >> like. >> >> It may or may not help to know that there are two signals that are >> special to the NPTL library: __SIGRTMIN and __SIGRTMIN + 1. I don't >> see why that would be an issue here, but who knows. > > Thanks for your instructions, I was able to find that SIGTRAP does all > the difference!
Thanks. I committed this patch. Ian
foo.patch
Description: Binary data