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

issue320_test failure #723

Open
kylezh opened this issue Sep 11, 2019 · 2 comments
Open

issue320_test failure #723

kylezh opened this issue Sep 11, 2019 · 2 comments

Comments

@kylezh
Copy link
Contributor

kylezh commented Sep 11, 2019

When configuring build type as Debug, it fails as

issue320_test: /[PATH]/leveldb/table/table_builder.cc:97: void leveldb::TableBuilder::Add(const leveldb::Slice&, const leveldb::Slice&): Assertion `r->options.comparator->Compare(key, Slice(r->last_key)) > 0' failed.

When configuring build type as Release it fails as

/[PATH]/leveldb/issues/issue320_test.cc:86: NotFound:

The codebase is 20fb601, just the same as #339

@kylezh
Copy link
Contributor Author

kylezh commented Sep 11, 2019

It seems quite weird.

I backported 20fb601 to old versions, and there is no error. But after CMake was introduced, the error can be reproduced.

I tested at the commit 739c251 where CMake is firstly introduced and Makefile has not been removed. The binary compiled by Makefile can pass while the binary compiled by CMake cannot.

PS: I have removed -DNDEBUG for all Makefile test.

@pwnall
Copy link
Member

pwnall commented Sep 12, 2019

The test suite, including that test, runs on Travis CI and AppVeyor. I spot-checked the output of the latest builds, and the test passes.

I suspect you're running the tests in an unusual way. Is it possible that you're running them from the wrong directory?

maochongxin pushed a commit to maochongxin/leveldb that referenced this issue Jul 21, 2022
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

2 participants