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

(Windows Subsystem for Linux : Debian GNU/Linux) error MDB_BAD_TXN: Transaction must abort, has a child, or is invalid #36

Open
TnkPpj opened this issue Jun 21, 2018 · 5 comments

Comments

@TnkPpj
Copy link

TnkPpj commented Jun 21, 2018

When command in install

make && make test
It show

End-to-end tests for a database context loading should:

  • creating a new context....
    Error: MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
    runtest: test/test_context.cpp:73: void test_context(): Assertion `false' failed.
    Aborted (core dumped)

And i test example code in get-started build passed but when run it error

terminate called after throwing an instance of 'nogdb::Error'
what(): MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
Aborted (core dumped)

@pj4dev
Copy link
Contributor

pj4dev commented Jun 22, 2018

Hi @TnkPpj,

Could you try to compile and run LMDB on your machine with the same environment as running NogDB?

Here is the repository and source code of LMDB
https://github.com/LMDB/lmdb/tree/mdb.master/libraries/liblmdb

If LMDB alone can work without any problems, this might be some sorts of bugs in regards to handling LMDB txn inside NogDB layer.

Thanks,

@TnkPpj
Copy link
Author

TnkPpj commented Jun 25, 2018

when make test in lmdb show

./mtest && ./mdb_stat testdb
mtest.c:50: mdb_env_open(env, "./testdb", MDB_FIXEDMAP , 0664): Exec format error
Aborted (core dumped)
Makefile:61: recipe for target 'test' failed
make: *** [test] Error 134

@pj4dev
Copy link
Contributor

pj4dev commented Jul 17, 2018

Hi @TnkPpj ,

Could you try mkdir testdb && chmod 664 testdb before running ./mtest again?

Thanks,

@Bibliofile
Copy link

I did a bit of research on this due to a completely unrelated project, and wanted to confirm that this isn't a problem with the NogDB layer. lmdb doesn't work on WSL (at least partly) due to mmap(NULL, ...) failing on zero length files. See microsoft/WSL#3451

@pj4dev
Copy link
Contributor

pj4dev commented Dec 9, 2018

@Bibliofile, thanks for your research and letting us know about this issue.

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

3 participants