libgo patch committed: Block signals when creating new thread

Ian Lance Taylor
Thu Jan 31 17:51:00 GMT 2013

This patch to libgo disables signals while creating a new thread.
Otherwise if a signal comes in between the time the thread starts and
the time the thread initializes its m and g TLS variables, the program
will crash with an error "signal received on thread not created by Go."
Signals are already enabled by the thread after it has been initialized.
Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
Committed to mainline.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 1079 bytes
Desc: patch
URL: <>

More information about the Gcc-patches mailing list