Open keithchew opened 7 months ago
Another crash, but from main thread:
=== KEYDB BUG REPORT START: Cut & paste starting from here ===
7:95:S 28 Feb 2024 21:45:56.344 # KeyDB 6.3.4 crashed by signal: 7, si_code: 128
7:95:S 28 Feb 2024 21:45:56.344 # Accessing address: (nil)
7:95:S 28 Feb 2024 21:45:56.344 # Crashed running the instruction at: 0x558be35a3106
------ STACK TRACE ------
EIP:
/opt/KeyDB/bin/keydb-server *:6379(dictRehash+0x86) [0x558be35a3106]
Backtrace:
/lib/x86_64-linux-gnu/libpthread.so.0(+0x14420) [0x7f5e8943b420]
/opt/KeyDB/bin/keydb-server *:6379(dictRehash+0x86) [0x558be35a3106]
/opt/KeyDB/bin/keydb-server *:6379(+0x226632) [0x558be35a5632]
/opt/KeyDB/bin/keydb-server *:6379(redisDbPersistentData::incrementallyRehash()+0x49) [0x558be35a56a9]
/opt/KeyDB/bin/keydb-server *:6379(databasesCron(bool)+0x2e3) [0x558be35a7ee3]
/opt/KeyDB/bin/keydb-server *:6379(serverCron(aeEventLoop*, long long, void*)+0x2e3) [0x558be35a8b23]
/opt/KeyDB/bin/keydb-server *:6379(aeProcessEvents+0x235) [0x558be359fd85]
/opt/KeyDB/bin/keydb-server *:6379(aeMain+0x3e) [0x558be35a073e]
/opt/KeyDB/bin/keydb-server *:6379(workerThreadMain(void*)+0x12b) [0x558be35b972b]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x8609) [0x7f5e8942f609]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x43) [0x7f5e89354133]
I tried setting this config option:
enable-async-rehash no
to disable async rehash and it seems to be stable. Will keep testing and if OK, will try to dig deeper to finding the root cause of the crash.
Hmm, just got another crash. Seems like the only workaround at the moment is to use:
activerehashing no
Will update here if I find anything else useful.
I encountered this crash on a slave node:
I have not traced the root cause of the crash, but thought I'd report a bug here first. Will post an update once I dig a bit deeper into this.