tecbot / gorocksdb

gorocksdb is a Go wrapper for RocksDB
http://rocksdb.org
MIT License
940 stars 269 forks source link

signal SIGSEGV #196

Closed dpereira411 closed 4 years ago

dpereira411 commented 4 years ago

rocksdb version: master gorocksdb version: master go version: 1.13.9

I'm following the install instructions but I'm getting this error after running:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x85c796]

goroutine 1 [running]:
github.com/tecbot/gorocksdb.(*DB).Put.func1(0x0, 0x0, 0xc0000a4c90, 0xc0000a4c90, 0xa, 0x10, 0xc0000c0d80, 0xc0000c0d80, 0x46e, 0x480, ...)
    /home/dpereira718/go/pkg/mod/github.com/tecbot/gorocksdb@v0.0.0-20190930194452-65a88f08537a/db.go:403 +0x26
github.com/tecbot/gorocksdb.(*DB).Put(0x0, 0x0, 0xc0000a4c90, 0xa, 0x10, 0xc0000c0d80, 0x46e, 0x480, 0x0, 0x0)
    /home/dpereira718/go/pkg/mod/github.com/tecbot/gorocksdb@v0.0.0-20190930194452-65a88f08537a/db.go:403 +0xf4
main.(*RocksDB).Set(0xc00008f080, 0xc0000a4c80, 0xa, 0xc0000c0900, 0x46e, 0x46e, 0xa)
    /home/dpereira718/payments-poc-cache-go/rocksdb.go:35 +0xe3
main.populateStore(0xa1ef00, 0xc00008f080, 0x186a0)
    /home/dpereira718/payments-poc-cache-go/main.go:164 +0x19d
main.main()
    /home/dpereira718/payments-poc-cache-go/main.go:71 +0x4c2