public static void SegvInCgo() { var c = make_channel <bool>(); go_(() => () => { close(c); while (true) { C.nop(); } } ()); c.Receive(); syscall.Kill(syscall.Getpid(), syscall.SIGSEGV); // Give the OS time to deliver the signal. time.Sleep(time.Second); }