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

cgo panic, Go 1.6 behaviour #12

Closed
notnot opened this issue May 19, 2016 · 1 comment
Closed

cgo panic, Go 1.6 behaviour #12

notnot opened this issue May 19, 2016 · 1 comment

Comments

@notnot
Copy link

notnot commented May 19, 2016

After upgrading to Go 1.6 i get a panic:

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

goroutine 5 [running]:
panic(0x42157c0, 0xc8200e6050)
/usr/local/go/src/runtime/panic.go:481 +0x3e6
code.google.com/p/portaudio-go/portaudio._cgoCheckPointer1(0x4194520, 0xc8200ec000, 0x0, 0x0, 0x0, 0x4184060)
??:0 +0x4d
code.google.com/p/portaudio-go/portaudio.OpenStream(0x0, 0x0, 0x0, 0xc820016240, 0x1, 0xd9fb92, 0x40e5888000000000, 0x400, 0x0, 0xc8200e6000, ...)
/Users/jpad/gocode/extern/src/code.google.com/p/portaudio-go/portaudio/portaudio.go:502 +0x3d1
...

I think this caused by the stricter 1.6 rules about Go/C memory sharing? Is there a way around it?

@notnot
Copy link
Author

notnot commented May 19, 2016

Ah, browsing the old issues i found out that this issue has been fixed already. All i needed to to was update my portaudio package, thanks!

@notnot notnot closed this as completed May 19, 2016
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