traildb-go
traildb-go copied to clipboard
NewTrailDBConstructor crashes
Code to reproduce:
cons, err := tdb.NewTrailDBConstructor("test", "first_field")
Output:
SIGABRT: abort
PC=0x7fff9a04ed42 m=0
signal arrived during cgo execution
goroutine 19 [syscall, locked to thread]:
runtime.cgocall(0x41fe740, 0xc420022e00, 0xc400000000)
/usr/local/Cellar/[email protected]/1.7.6/libexec/src/runtime/cgocall.go:131 +0x110 fp=0xc420022db8 sp=0xc420022d78
github.com/traildb/traildb-go._Cfunc_tdb_cons_open(0x5800000, 0x5000020, 0x5000030, 0x1, 0x0)
??:0 +0x4d fp=0xc420022e00 sp=0xc420022db8
github.com/traildb/traildb-go.NewTrailDBConstructor(0x428297a, 0x8, 0xc4200735a0, 0x1, 0x1, 0x0, 0x0, 0x0)
/Users/vmakhaev/works/src/github.com/traildb/traildb-go/tdb.go:100 +0x2c9 fp=0xc420022ec8 sp=0xc420022e00
bitbucket.org/apdex-15/shared/dbs/traildb.CreateDatabase(0x428297a, 0x8, 0x40549e0, 0xc420022f78)
tdb.Open
, tdb.NewCursor
, tdb.GetTrail
, etc. work fine. Problem only with tdb.NewTrailDBConstructor
➜ ~ go version
go version go1.7.6 darwin/amd64
➜ ~ brew info traildb
traildb: stable 0.6 (bottled)