-
Notifications
You must be signed in to change notification settings - Fork 1.5k
frequent "misplaced bucket header" and "page already freed" errors #653
Comments
Hello there boltdb authors. Thank you for the hard work, my project has been using boltdb for almost 2 years, with no problems. However, in the past month , I've gotten numerous bug reports Bugs all related to boltdb, such as:
and the errors are quite cryptic to me so I haven't been able to help out debug the problems. I personally haven't yet experienced the mentioned problems but many of my users have. Thank you. |
@schollz I've tried running the test several times and I'm not getting an error. Can you use I'm working on getting a larger, long running randomized test suite going for bolt that should hopefully catch these issues in the future. |
@benbjohnson Thanks for looking into this! I've tried the bolt tests and they currently all pass on my offending system. I've also seen that the FIND bug doesn't seem to replicate on Debian + AMD64. I ran
Here is the
|
@schollz and @benbjohnson the problem still persists for my users odeke-em/drive#862 (comment). |
Here's a stack trace. http://pastebin.com/LNdtPDys |
Hi, I've been using bolt quite successfully for awhile for my project, FIND.
Recent builds have been creating the following errors in one of my tests:
or sometimes it creates this error:
It can be replicated the following way:
go get -u -v github.com/schollz/find
git clone https://github.com/schollz/find.git && cd find && go build && ./find
find/testing
directory and run./testdb.sh
. It will insert things into the database, and then (possibly) suddenly fail when it tries to use the items from the database for calculations.rm data/testdb.db
from thefind
directory.It doesn't seem to always fail, but it seems to fail about 7/10 times when I try this test on two systems with Linux (Ubuntu 16) + AMD64. It seems to fail 1/10 times on Linux (Ubuntu 14) + AMD64. . It seems to do this with the current master of boltdb (9145e04) with both go 1.6 and 1.7 and 1.8. I did try with earlier versions of Bolt (e.g. v1.2.0) and it works fine every time I run the test that earlier version.
The text was updated successfully, but these errors were encountered: