-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
CompactRange (c++) causes segfault #596
Comments
Thanks for a great bug report! Wow I'm not sure how we never caught this before. Fix here: https://reviews.facebook.net/D37779 |
(BTW to test it out, you can do |
Hi the patch works in my scenario. Thanks for the quick response. |
Glad to help @stephan-hof ! |
igorcanadi
added a commit
that referenced
this issue
Apr 29, 2015
Summary: For very detailed explanation of what's happening read this: #596 Test Plan: make check + new unit test Reviewers: yhchiang, anthony, rven Reviewed By: rven Subscribers: adamretter, dhruba, leveldb Differential Revision: https://reviews.facebook.net/D37779
igorcanadi
added a commit
that referenced
this issue
Apr 30, 2015
Summary: For very detailed explanation of what's happening read this: #596 Test Plan: make check + new unit test Reviewers: yhchiang, anthony, rven Reviewed By: rven Subscribers: adamretter, dhruba, leveldb Differential Revision: https://reviews.facebook.net/D37779 Conflicts: db/db_test.cc
facebook-github-bot
pushed a commit
that referenced
this issue
Jan 12, 2018
Summary: This test often causes out-of-space error when run on travis. We don't want such stress tests in our unit test suite. The bug in #596, which this test intends to expose, can be repro'd as long as the bottommost level(s) are empty when CompactRange is called. I rewrote the test to cover this simple case without writing a lot of data. Closes #3362 Differential Revision: D6710417 Pulled By: ajkr fbshipit-source-id: 9a1ec85e738c813ac2fee29f1d5302065ecb54c5
amytai
pushed a commit
to amytai/rocksdb
that referenced
this issue
Mar 9, 2018
Summary: This test often causes out-of-space error when run on travis. We don't want such stress tests in our unit test suite. The bug in facebook#596, which this test intends to expose, can be repro'd as long as the bottommost level(s) are empty when CompactRange is called. I rewrote the test to cover this simple case without writing a lot of data. Closes facebook#3362 Differential Revision: D6710417 Pulled By: ajkr fbshipit-source-id: 9a1ec85e738c813ac2fee29f1d5302065ecb54c5
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi guys,
I need a bit of support. In my application code there is this line
Unfortunately the program aborts with a segfault. I already attached gdb to it having the following back-trace
I investigated the rocksdb code a bit and the following two parts puzzle me how they interact with 'level_files_brief_'
In my case NumberLevels() is 10.
In my case num_non_empty_levels_ is 2.
From my point of view OverlapInLevel is called with level=0,1,2,3,4,5...9 however level_files_brief_ has only size 2. So there is an 'out of range' access. I'm using 3.9.fb, but the code in question is also in master.
If you need more input from my side feel free to ask. It is easy to reproduce and the environment is under full control.
The text was updated successfully, but these errors were encountered: