You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe as of Go1.6 there is a change to the way Go pointers can be passed to C code, which is causing the below runtime panic. The description of the change is here: https://golang.org/doc/go1.6#cgo.
One temporary fix is to turn-off this runtime check with GODEBUG=cgocheck=0, but I think it might be better to fix the issues directly in the code. I'm not sure how much work it is to fix or if the fix will sacrifice performance. What do you think?
Btw, your wrapper is awesome, thanks for creating it!
`panic: runtime error: cgo argument has Go pointer to Go pointer
Hi Nik,
I believe as of Go1.6 there is a change to the way Go pointers can be passed to C code, which is causing the below runtime panic. The description of the change is here: https://golang.org/doc/go1.6#cgo.
One temporary fix is to turn-off this runtime check with
GODEBUG=cgocheck=0
, but I think it might be better to fix the issues directly in the code. I'm not sure how much work it is to fix or if the fix will sacrifice performance. What do you think?Btw, your wrapper is awesome, thanks for creating it!
`panic: runtime error: cgo argument has Go pointer to Go pointer
goroutine 1 [running]:
panic(0x4175e0, 0xc82010f460)
/usr/local/go/src/runtime/panic.go:464 +0x3e6
github.com/Nik-U/pbc.makeUncheckedElement(0xc820116028, 0xc82010e001, 0x0, 0x346940)
/go/src/github.com/Nik-U/pbc/element.go:122 +0x15e
github.com/Nik-U/pbc.makeCheckedElement(0xc820116028, 0x0, 0x2800370, 0xc820116028)
/go/src/github.com/Nik-U/pbc/element.go:138 +0x34
github.com/Nik-U/pbc.(*Pairing).NewG1(0xc820116028, 0xc820116028)
/go/src/github.com/Nik-U/pbc/pairing.go:128 +0x39`
The text was updated successfully, but these errors were encountered: