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

Closed
badboy opened this Issue Jan 18, 2013 · 0 comments

Comments

Projects
None yet
2 participants
Collaborator

badboy commented Jan 18, 2013

$ 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.

antirez added a commit that referenced this issue Jan 19, 2013

Always exit if connection fails.
This avoids unnecessary core dumps. Fixes antirez/redis#894

antirez added a commit that referenced this issue Jan 19, 2013

Always exit if connection fails.
This avoids unnecessary core dumps. Fixes antirez/redis#894

@antirez antirez closed this Jan 19, 2013

JackieXie168 pushed a commit to JackieXie168/redis that referenced this issue Aug 29, 2016

Always exit if connection fails.
This avoids unnecessary core dumps. Fixes antirez/redis#894
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment