ideawu / ssdb

SSDB - A fast NoSQL database, an alternative to Redis
http://ssdb.io/
BSD 3-Clause "New" or "Revised" License
8.19k stars 1.4k forks source link

After running a while, segfaults every time server started #1422

Open alanhamlett opened 1 year ago

alanhamlett commented 1 year ago

The only way to start the server is to delete the main_db and meta_db folders before starting ssdb. It's happened about once per month, last on Dec 12 and before that on Nov 15:

[Tue Nov 15 13:36:13 2022] traps: ssdb-server[1773] general protection ip:7f05edcfea6e sp:7f05ebdfec68 error:0 in libc-2.27.so[7f05edb74000+1e7000]
[Mon Dec 12 11:54:15 2022] traps: ssdb-server[9801] general protection ip:7f3169053a6e sp:7f2f712dbc68 error:0 in libc-2.27.so[7f3168ec9000+1e7000]

Somehow the leveldb data must be corrupted and causing ssdb to crash on startup. Compression is enabled, I haven't tried reproducing with compression disabled.