Skip to content

Crash on ctx.call("DUMP", ...) #439

@gkorland

Description

@gkorland

Call to RM_CALL with command DUMP crashes on reply

ctx.call("DUMP", &["a"]);

The crash happens in this method:

 pub fn call<'a, T: Into<StrCallArgs<'a>>>(&self, command: &str, args: T) -> RedisResult {
        self.call_internal::<_, CallResult>(command, raw::FMT, args)
            .map_or_else(|e| Err(e.into()), |v| Ok((&v).into()))
    }
thread '<unnamed>' (936142) panicked at /home/guy/.cargo/git/checkouts/redismodule-rs-0d6f86f5eaeafd9b/a670900/src/redisvalue.rs:236:84:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5, aborting


=== REDIS BUG REPORT START: Cut & paste starting from here ===
936142:M 21 Dec 2025 22:29:15.665 # Redis 8.2.3 crashed by signal: 6, si_code: -6
936142:M 21 Dec 2025 22:29:15.665 # Crashed running the instruction at: 0x7ffff6ea5fed

------ STACK TRACE ------
EIP:
/lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x11d) [0x7ffff6ea5fed]

936227 bio_lazy_free
/lib/x86_64-linux-gnu/libc.so.6(+0xac772) [0x7ffff6eac772]
/lib/x86_64-linux-gnu/libc.so.6(+0xa00ac) [0x7ffff6ea00ac]
/lib/x86_64-linux-gnu/libc.so.6(+0xa0807) [0x7ffff6ea0807]
/lib/x86_64-linux-gnu/libc.so.6(pthread_cond_wait+0x197) [0x7ffff6ea3067]
/home/linuxbrew/.linuxbrew/bin/redis-server *:6379(bioProcessBackgroundJobs+0x180) [0x5555556c1410]
/lib/x86_64-linux-gnu/libc.so.6(+0xa3d64) [0x7ffff6ea3d64]
/lib/x86_64-linux-gnu/libc.so.6(+0x1373bc) [0x7ffff6f373bc]

936208 rocksdb:high
/lib/x86_64-linux-gnu/libc.so.6(+0xac772) [0x7ffff6eac772]
/lib/x86_64-linux-gnu/libc.so.6(+0xa00ac) [0x7ffff6ea00ac]
/lib/x86_64-linux-gnu/libc.so.6(+0xa0807) [0x7ffff6ea0807]
/lib/x86_64-linux-gnu/libc.so.6(pthread_cond_wait+0x197) [0x7ffff6ea3067]

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