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
segmentation violation #15
Comments
You're ignoring the error from levigo.Open. I'm closing this ticket. Reopen if you see the problem after you've handled that error. |
levelDb, err := levigo.Open("./store", options) and no problem to put key/value pairs. |
You close the iterator before you use it. I'm not sure what you expect to happen. |
missed "defer" Sorry for that. |
No problem! Happens. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SIGSEGV: segmentation violation
PC=0x45fc7d6
signal arrived during cgo execution
github.com/jmhodges/levigo._Cfunc_leveldb_iter_seek(0x0, 0xc2000abed0, 0x8)
github.com/jmhodges/levigo/_obj/_cgo_defun.c:231 +0x2f
github.com/jmhodges/levigo.(*Iterator).Seek(0xc2000008e8, 0xc2000abed0, 0x8, 0xe)
github.com/jmhodges/levigo/_obj/batch.cgo1.go:579 +0x42
...
$ go version
go version go1.1 darwin/amd64
code
The text was updated successfully, but these errors were encountered: