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 error #230

Closed
luojh2015 opened this issue Apr 26, 2019 · 2 comments
Closed

panic error #230

luojh2015 opened this issue Apr 26, 2019 · 2 comments

Comments

@luojh2015
Copy link

return &Model{unsafe.Pointer(C.train(tmpCProb, tmpCParam))}

Line 21: - runtime error: cgo argument has Go pointer to Go pointer
goroutine 19 [running]:
panic(0x8bc2e0, 0xc000045a50)
D:/Go/src/runtime/panic.go:513 +0x1f4
github.com/sjwhitworth/golearn/linear_models.Train.func1(0xc00004bc20, 0xc0000e0ac0, 0x0)
D:/golang/src/github.com/sjwhitworth/golearn/linear_models/liblinear.go:65 +0x61

@luojh2015
Copy link
Author

GODEBUG=cgocheck=0,Is there any other way?

@luojh2015
Copy link
Author

luojh2015 commented Apr 26, 2019

#167 linear_models: fixed an issue with cgo pointers @Sentimentron 5632e43

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