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

Merge: cgo argument has Go pointer to Go pointer #4

Open
hdm opened this issue Dec 19, 2016 · 1 comment
Open

Merge: cgo argument has Go pointer to Go pointer #4

hdm opened this issue Dec 19, 2016 · 1 comment

Comments

@hdm
Copy link
Contributor

hdm commented Dec 19, 2016

Go 1.6 now panics when a Go pointer is passed to cgo. This breaks the use of the Go Merge function callback (Merger, Sorter, Fileset). It seems like the best approach is to create a Go-side function table list and pass the index to this table to cgo instead, as was done in: ry/v8worker@0298d9d

The temporary workaround is to prefix execution with: GODEBUG=cgocheck=0

@hdm
Copy link
Contributor Author

hdm commented Dec 19, 2016

Related cgo reference: golang/go#12416

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