Skip to content

redis-cli --rdb core dumps when it can't connect. #894

@badboy

Description

@badboy
$ redis-cli --rdb -
Could not connect to Redis at 127.0.0.1:6379: Connection refused
[1]    22234 segmentation fault (core dumped)  redis-cli --rdb -
$ gdb redis-cli core.redis.cli.22234
[...]
#0  0x0000000000407495 in getRDB () at redis-cli.c:1001
1001        int s = context->fd;
(gdb) bt
#0  0x0000000000407495 in getRDB () at redis-cli.c:1001
#1  0x0000000000408159 in main (argc=0, argv=0x7fff2615cdb0) at redis-cli.c:1304

Should be easy to fix. I will try to do so.

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