Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: runtime error: cgo argument has Go pointer to Go pointer #9

Open
strickyak opened this issue Jul 7, 2017 · 0 comments
Open

Comments

@strickyak
Copy link
Owner

Running stress_loop.go, it crashes in this line in NativeCallbackRaw in jsonnet.go:
289 key := registerFunc(vm, len(params), f)

2017/07/07 23:20:20 Finished 280 loops.  This loop 2.474 sec.  Average 2.450 sec per loop.
panic: runtime error: cgo argument has Go pointer to Go pointer

goroutine 28098 [running]:
github.com/strickyak/jsonnet_cgo.(*VM).NativeCallbackRaw.func3(0x7f83e0474550, 0x7f8330b74af0, 0x4d7450, 0x806461, 0xc4208cf180)
	/usr/strick/gocode/src/github.com/strickyak/jsonnet_cgo/jsonnet.go:289 +0x8b
github.com/strickyak/jsonnet_cgo.(*VM).NativeCallbackRaw(0xc4200b8320, 0x56e911, 0x7, 0xc42095dce0, 0x2, 0x2, 0xc4200b8330)
	/usr/strick/gocode/src/github.com/strickyak/jsonnet_cgo/jsonnet.go:295 +0x1ec
main.ExercizeOneVM.func9()
	/usr/strick/gocode/src/github.com/strickyak/jsonnet_cgo/stress_loop/stress_loop.go:65 +0x83
main.Repeat(0x64, 0xc42095dfb0)
	/usr/strick/gocode/src/github.com/strickyak/jsonnet_cgo/stress_loop/stress_loop.go:34 +0x37
main.ExercizeOneVM(0xc4200760c0)
	/usr/strick/gocode/src/github.com/strickyak/jsonnet_cgo/stress_loop/stress_loop.go:65 +0x2a5
created by main.main
	/usr/strick/gocode/src/github.com/strickyak/jsonnet_cgo/stress_loop/stress_loop.go:150 +0xf8
panic: runtime error: cgo argument has Go pointer to Go pointer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant