Skip to content

[CRASH] ckeysExpired == db->expireSize() #739

Description

@splitice

This is not the only crash generated for this assertion statement in the issues list. However the other one thats currently open is an AOF crash, this trace is background saving.

Crash report

=== KEYDB BUG REPORT START: Cut & paste starting from here ===
380125:44:C 14 Nov 2023 01:19:22.909 # === ASSERTION FAILED ===
380125:44:C 14 Nov 2023 01:19:22.909 # ==> rdb.cpp:1372 'ckeysExpired == db->expireSize()' is not true

------ STACK TRACE ------

Backtrace:
keydb-rdb-bgsave 0.0.0.0:6379 [cluster](rdbSaveRio(_rio*, redisDbPersistentDataSnapshot const**, int*, int, rdbSaveInfo*)+0x54d) [0x55ce14ae406d]
keydb-rdb-bgsave 0.0.0.0:6379 [cluster](rdbSaveFile(char*, redisDbPersistentDataSnapshot const**, rdbSaveInfo*)+0xc7) [0x55ce14ae4167]
keydb-rdb-bgsave 0.0.0.0:6379 [cluster](rdbSave(redisDbPersistentDataSnapshot const**, rdbSaveInfo*)+0x6e) [0x55ce14ae449e]
keydb-rdb-bgsave 0.0.0.0:6379 [cluster](rdbSaveBackgroundFork(rdbSaveInfo*)+0x104) [0x55ce14ae4b64]
keydb-rdb-bgsave 0.0.0.0:6379 [cluster](launchRdbSaveThread(unsigned long&, rdbSaveInfo*)+0x45) [0x55ce14ae4c25]
keydb-rdb-bgsave 0.0.0.0:6379 [cluster](rdbSaveBackground(rdbSaveInfo*)+0x88) [0x55ce14ae5058]
keydb-rdb-bgsave 0.0.0.0:6379 [cluster](serverCron(aeEventLoop*, long long, void*)+0xcc0) [0x55ce14b3de50]
keydb-rdb-bgsave 0.0.0.0:6379 [cluster](aeProcessEvents+0x224) [0x55ce14b445a4]
keydb-rdb-bgsave 0.0.0.0:6379 [cluster](aeMain+0x3a) [0x55ce14b48cda]
keydb-rdb-bgsave 0.0.0.0:6379 [cluster](workerThreadMain(void*)+0x7e) [0x55ce14b30ade]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x8609) [0x7fd82f759609]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x43) [0x7fd82f67e133]

Aditional information

Seems to be caused by any database making heavy use of expriring keys.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions