https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98823
--- Comment #8 from Ian Lance Taylor <ian at airs dot com> --- The test is pretty simple. https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/testsuite/go.test/test/fixedbugs/issue19182.go;h=e1f3ffb4749f4dbb4c2204c4a0f484aea91b4771;hb=HEAD The interesting thing it does is start a goroutine that runs an infinite loop. But the main goroutine should always terminate. The test doesn't do any signal handling at all so a SIGTERM should always just terminate the program.