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

NewTrailDBConstructor crashes #10

Open
vmakhaev opened this issue Jun 20, 2017 · 0 comments
Open

NewTrailDBConstructor crashes #10

vmakhaev opened this issue Jun 20, 2017 · 0 comments

Comments

@vmakhaev
Copy link

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)
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