block by nicerobot 47c56f34fe738f8a1dbf39471d995867

Go geos segv https://github.com/paulsmith/gogeos/issues/19#issuecomment-315566943

To reproduce

Using your version of Go:

git clone https://gist.github.com/47c56f34fe738f8a1dbf39471d995867.git
cd 47c56f34fe738f8a1dbf39471d995867
make

Requirements

Reproduces this:

fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb01dfacedebac1e pc=0x41f6281]

runtime stack:
runtime.throw(0x40d3966, 0x2a)
    /go/src/runtime/panic.go:596 +0x95
runtime.sigpanic()
    /go/src/runtime/signal_unix.go:274 +0x2db

goroutine 5 [syscall, locked to thread]:
runtime.cgocall(0x409cac0, 0xc420039e70, 0xc420039e98)
    /go/src/runtime/cgocall.go:131 +0xe2 fp=0xc420039e40 sp=0xc420039e00
...

Reproduced using

Makefile

bug.log

main.go

zbad.wkt