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

go vet errors #17

Open
anacrolix opened this issue Oct 24, 2022 · 0 comments · May be fixed by #22
Open

go vet errors #17

anacrolix opened this issue Oct 24, 2022 · 0 comments · May be fixed by #22

Comments

@anacrolix
Copy link
Contributor

I had similar things with some cgo code I wrote:

$ go vet ./...
# go.riyazali.net/sqlite
./func.go:143:39: possible misuse of reflect.SliceHeader
./stmt.go:409:40: possible misuse of reflect.SliceHeader
./virtual_table.go:496:44: possible misuse of reflect.SliceHeader
./virtual_table.go:533:70: possible misuse of reflect.SliceHeader
./virtual_table.go:546:67: possible misuse of reflect.SliceHeader
./virtual_table.go:574:75: possible misuse of reflect.SliceHeader
./virtual_table.go:868:38: possible misuse of reflect.SliceHeader

I think there's a risk the GC runs at the wrong time and you get segfaults.

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 a pull request may close this issue.

1 participant