Last active
December 28, 2015 14:29
-
-
Save crodjer/7514687 to your computer and use it in GitHub Desktop.
With redis-cli, multiple runs of the command `slowlog get` result in a Segmentation Fault.
Redis versions: 2.8.0-rc6, current unstable (b2f834390c).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
┌─[rohan@crodjer]-[09:02 PM] ± git:(f7f97bf) | |
└─> valgrind src/redis-cli ~/workspace/src/redis | |
==5398== Memcheck, a memory error detector | |
==5398== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. | |
==5398== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info | |
==5398== Command: src/redis-cli | |
==5398== | |
127.0.0.1:6379> config set slowlog-log-slower-than 1 | |
OK | |
127.0.0.1:6379> slowlog get | |
1) 1) (integer) 17 | |
2) (integer) 1384702315 | |
3) (integer) 8 | |
4) 1) "config" | |
2) "set" | |
3) "slowlog-log-slower-than" | |
4) "1" | |
2) 1) (integer) 16 | |
2) (integer) 1384702311 | |
3) (integer) 7 | |
4) 1) "config" | |
2) "set" | |
3) "slowlog-log-slower-than" | |
4) "1" | |
3) 1) (integer) 15 | |
2) (integer) 1384702311 | |
3) (integer) 9 | |
4) 1) "config" | |
2) "set" | |
3) "slowlog-log-slower-than" | |
4) "1" | |
4) 1) (integer) 14 | |
2) (integer) 1384702310 | |
3) (integer) 7 | |
4) 1) "config" | |
2) "set" | |
3) "slowlog-log-slower-than" | |
4) "1" | |
5) 1) (integer) 13 | |
2) (integer) 1384702288 | |
3) (integer) 29 | |
4) 1) "slowlog" | |
2) "get" | |
6) 1) (integer) 12 | |
2) (integer) 1384702287 | |
3) (integer) 26 | |
4) 1) "slowlog" | |
2) "get" | |
7) 1) (integer) 11 | |
2) (integer) 1384702286 | |
3) (integer) 8 | |
4) 1) "config" | |
2) "set" | |
3) "slowlog-log-slower-than" | |
4) "1" | |
8) 1) (integer) 10 | |
2) (integer) 1384702279 | |
3) (integer) 25 | |
4) 1) "slowlog" | |
2) "get" | |
9) 1) (integer) 9 | |
2) (integer) 1384702278 | |
3) (integer) 40 | |
4) 1) "slowlog" | |
2) "get" | |
10) 1) (integer) 8 | |
2) (integer) 1384702276 | |
3) (integer) 8 | |
4) 1) "config" | |
2) "set" | |
3) "slowlog-log-slower-than" | |
4) "1" | |
127.0.0.1:6379> slowlog get | |
==5398== Invalid read of size 4 | |
==5398== at 0x40F446: redisReaderGetReply (sds.h:47) | |
==5398== by 0x4107A3: redisGetReplyFromReader (hiredis.c:1139) | |
==5398== by 0x41086A: redisGetReply (hiredis.c:1166) | |
==5398== by 0x40BD5F: cliReadReply (redis-cli.c:505) | |
==5398== by 0x40C9DB: cliSendCommand (redis-cli.c:621) | |
==5398== by 0x408D70: main (redis-cli.c:886) | |
==5398== Address 0x5a9 is not stack'd, malloc'd or (recently) free'd | |
==5398== | |
==5398== | |
==5398== Process terminating with default action of signal 11 (SIGSEGV) | |
==5398== Access not within mapped region at address 0x5A9 | |
==5398== at 0x40F446: redisReaderGetReply (sds.h:47) | |
==5398== by 0x4107A3: redisGetReplyFromReader (hiredis.c:1139) | |
==5398== by 0x41086A: redisGetReply (hiredis.c:1166) | |
==5398== by 0x40BD5F: cliReadReply (redis-cli.c:505) | |
==5398== by 0x40C9DB: cliSendCommand (redis-cli.c:621) | |
==5398== by 0x408D70: main (redis-cli.c:886) | |
==5398== If you believe this happened as a result of a stack | |
==5398== overflow in your program's main thread (unlikely but | |
==5398== possible), you can try to increase the size of the | |
==5398== main thread stack using the --main-stacksize= flag. | |
==5398== The main thread stack size used in this run was 8388608. | |
==5398== | |
==5398== HEAP SUMMARY: | |
==5398== in use at exit: 13,221 bytes in 249 blocks | |
==5398== total heap usage: 412 allocs, 163 frees, 20,913 bytes allocated | |
==5398== | |
==5398== LEAK SUMMARY: | |
==5398== definitely lost: 0 bytes in 0 blocks | |
==5398== indirectly lost: 0 bytes in 0 blocks | |
==5398== possibly lost: 0 bytes in 0 blocks | |
==5398== still reachable: 13,221 bytes in 249 blocks | |
==5398== suppressed: 0 bytes in 0 blocks | |
==5398== Rerun with --leak-check=full to see details of leaked memory | |
==5398== | |
==5398== For counts of detected and suppressed errors, rerun with: -v | |
==5398== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 2 from 2) | |
[1] 5398 segmentation fault (core dumped) valgrind src/redis-cli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment