Immich module redis-immich core dumps

After updating to latest nixpkgs, the redis-immich service fails to start because redis core dumps.

Here are the relevant logs:

 === REDIS BUG REPORT START: Cut & paste starting from here ===
jul 24 16:21:10 hephaestus redis[896]: monotonic clock: POSIX clock_gettime
jul 24 16:21:10 hephaestus redis-server[896]: Configuration loaded
jul 24 16:21:10 hephaestus redis-server[896]: Redis version=8.0.3, bits=64, commit=00000000, modified=0, pid=896, just started
jul 24 16:21:10 hephaestus redis-server[896]: oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
jul 24 16:21:10 hephaestus redis-server[896]: Supervised by systemd. Please make sure you set appropriate values for TimeoutStartSec and TimeoutStopSec in your service unit.
jul 24 16:21:08 hephaestus systemd[1]: Starting Redis Server - redis-immich...
-- Boot 47b4c6db68ed4e699e7b6b396c520fc5 --
jul 24 16:17:20 hephaestus systemd[1]: Failed to start Redis Server - redis-immich.
jul 24 16:17:20 hephaestus systemd[1]: redis-immich.service: Failed with result 'core-dump'.
jul 24 16:17:20 hephaestus systemd[1]: redis-immich.service: Main process exited, code=dumped, status=11/SEGV
jul 24 16:17:20 hephaestus systemd-coredump[11939]: [🡕] Process 11929 (redis-server) of user 993 dumped core.
jul 24 16:17:20 hephaestus redis[11929]: 
jul 24 16:17:20 hephaestus redis[11929]: d231c931f631ff
jul 24 16:17:20 hephaestus redis[11929]: 5b415c5d31d231c931f631ffc30f1f0049c7442470fdffffff31c05b415c5d31
jul 24 16:17:20 hephaestus redis[11929]: 5b415c5d31d231c931f631ffc30f1f00418b8424940000004189942494000000
jul 24 16:17:20 hephaestus redis[11929]: 486304b14801c8ffe00f1f8000000000418b8424900000004189942490000000
jul 24 16:17:20 hephaestus redis[11929]: 554889e54154534c8b672083fe070f872e41e2ff488d0d05ac070089f64889fb
jul 24 16:17:20 hephaestus redis[11929]: dump of function (hexdump of 135 bytes):
jul 24 16:17:20 hephaestus redis[11929]: 
                                         ------ DUMPING CODE AROUND EIP ------
                                         Symbol: lua_gc (base: 0x6c58012c480)
                                         Module: /nix/store/mzvzvm4r45k7aisrpjp72riyppap1md7-redis-8.0.3/bin/redis-server (base 0x6c57fecd000)
                                         $ xxd -r -p /tmp/dump.hex /tmp/dump.bin
                                         $ objdump --adjust-vma=0x6c58012c480 -D -b binary -m i386:x86-64 /tmp/dump.bin
                                         ------
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a387190) -> 0000000000000001
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a387191) -> 0000000000000000
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a387192) -> 0000721e0a389fc0
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a387193) -> 000006c57ff84493
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a387194) -> 0000000000000000
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a387195) -> 0000000000000000
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a387196) -> 0000000000000000
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a387197) -> 0000000000000000
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a387198) -> 0000000000000000
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a387199) -> 0000000000000000
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38719a) -> 0000000000000000
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38719b) -> 0000000000000000
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38719c) -> 0000000000000000
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38719d) -> 0000000000000000
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38719e) -> 0000000000000000
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38719f) -> 0000000000000000
jul 24 16:17:20 hephaestus redis[11929]: 
                                         RAX:000006c580251400 RBX:0000000000000001
                                         RCX:0000000000000000 RDX:0000000000000000
                                         RDI:0000000000000000 RSI:0000000000000003
                                         RBP:0000721e0a3871a0 RSP:0000721e0a387190
                                         R8 :0000000000000000 R9 :000006c58016ccb9
                                         R10:0000000000000000 R11:0000000000000000
                                         R12:0000000000000000 R13:0000000000000000
                                         R14:00006ab5ea3eab50 R15:000006c580244c00
                                         RIP:000006c58012c487 EFL:0000000000010246
                                         CSGSFS:002b000000000033
jul 24 16:17:20 hephaestus redis[11929]: 
                                         ------ REGISTERS ------
jul 24 16:17:20 hephaestus redis[11929]: Crashed running the instruction at: 0x6c58012c487
jul 24 16:17:20 hephaestus redis[11929]: Accessing address: 0x20
jul 24 16:17:20 hephaestus redis[11929]: Redis 8.0.3 crashed by signal: 11, si_code: 1
jul 24 16:17:20 hephaestus redis[11929]: 
                                         ------ INFO OUTPUT ------
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38a6c0) -> 0000000000000002
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38a6c1) -> 0000000000a00200
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38a6c2) -> 0000000000000268
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38a6c3) -> 00006a75e8e00000
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38a6c4) -> 0000000000000268
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38a6c5) -> 00006af5ea3fc310
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38a6c6) -> 0000721e0a38a710
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38a6c7) -> 000006c57ff7cb7b
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38a6c8) -> 000006c5802449a0
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38a6c9) -> 0000000000000000
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38a6ca) -> 0000721e0a38a740
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38a6cb) -> 000006c580135bb2
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38a6cc) -> 0000721e0a38a7c0
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38a6cd) -> 000006c5802449a0
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38a6ce) -> 0000721e0a38a7c0
jul 24 16:17:20 hephaestus redis[11929]: (0000721e0a38a6cf) -> 0000000000000000
jul 24 16:17:20 hephaestus redis[11929]: 
                                         RAX:ffffffffffffffc0 RBX:00006a75e8e00000
                                         RCX:0000000000000000 RDX:00006a75e8e00000
                                         RDI:00006a75e8e00000 RSI:0000000000000000
                                         RBP:0000721e0a38a6f0 RSP:0000721e0a38a6c0
                                         R8 :0000000000000000 R9 :0000000000000000
                                         R10:0000000000000000 R11:0000000000000000
                                         R12:0000000000000268 R13:000006c5800f23e0
                                         R14:00006af5ea3fc310 R15:00006bc5ea3e9890
                                         RIP:00006e75eb805ca7 EFL:0000000000010287
                                         CSGSFS:002b000000000033

Tried on a different device and it works there, strange

I’d suggest running memtest to check that your memory is healthy.