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

Fix go 1.6 "cgo argument has Go pointer to Go pointer" error #41

Merged
merged 2 commits into from
Mar 15, 2016

Conversation

haochi
Copy link
Contributor

@haochi haochi commented Mar 13, 2016

In 1.6, new rules are introduced for passing pointers between C and Go, you can read more about it here golang/go#12416. The current test suite fails under the new rules:

$ go test
2016/03/13 01:21:32 CodecCtx is successfully created and opened.
--- FAIL: TestCodecCtx (0.00s)
panic: runtime error: cgo argument has Go pointer to Go pointer [recovered]
    panic: runtime error: cgo argument has Go pointer to Go pointer

The pull request fixes that.

3d0c added a commit that referenced this pull request Mar 15, 2016
Fix go 1.6 "cgo argument has Go pointer to Go pointer" error
@3d0c 3d0c merged commit a374a7d into 3d0c:master Mar 15, 2016
@3d0c
Copy link
Owner

3d0c commented Mar 15, 2016

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants