[go-nuts] Getting '[signal SIGSEGV: segmentation violation code=0x1 addr=0xffffffff04d07885 pc=0x7fe62f2d2922]' during cgo_call

2020-02-17 Thread Nitish Saboo
Hi, This is my go env: nsaboo@ubuntu:~$ go version go version go1.12.4 linux/amd64 nsaboo@ubuntu:~$ go env GOARCH="amd64" GOBIN="" GOCACHE="/home/nsaboo/.cache/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/nsaboo/Documents/goworkspace" GOPROXY="" GOR

Re: [go-nuts] Getting '[signal SIGSEGV: segmentation violation code=0x1 addr=0xffffffff04d07885 pc=0x7fe62f2d2922]' during cgo_call

2020-02-17 Thread robert engels
I was curious about that too. Looking at the documentation, the runtime.KeepAlive documentation could be improved: A very simplified example showing where KeepAlive is required: type File struct { d int } d, err := syscall.Open("/file/path", syscall.O_RDONLY, 0) // ... do something if err != nil