Ran on a laptop with 4 cores.
$ go version
go version go1.10.1 linux/amd64
$ go run cgo.go
panic: Iteration 39068207 - receive: "y" != "\x00"
goroutine 5 [running]:
main.main.func1()
/home/bob/stuff/go/playground/cgo.go:35 +0x156
created by main.main
/home/bob/stuff/go/playground/cgo.go:28 +0x47
exit status 2
$ go run cgo.go
panic: Iteration 44789915 - execute: "y" != "\xd0"
goroutine 1 [running]:
main.main()
/home/bob/stuff/go/playground/cgo.go:46 +0x16e
exit status 2
$ go run cgo.go
panic: Iteration 1963975 - receive: "y" != "\x00"
goroutine 5 [running]:
main.main.func1()
/home/bob/stuff/go/playground/cgo.go:35 +0x156
created by main.main
/home/bob/stuff/go/playground/cgo.go:28 +0x47
exit status 2
$ go run cgo.go
panic: Iteration 56646123 - execute: "y" != "\xd0"
goroutine 1 [running]:
main.main()
/home/bob/stuff/go/playground/cgo.go:46 +0x16e
exit status 2
$