Skip to content

redis 2.8.11 crash #1932

Closed
Closed

Description

@fantasyni
[14051] 13 Aug 11:24:55.021 #     Redis 2.8.11 crashed by signal: 8
[14051] 13 Aug 11:24:55.021 #     Failed assertion: <no assertion failed> (<no file>:0)
[14051] 13 Aug 11:24:55.021 # --- STACK TRACE
redis-server *:6413(logStackTrace+0x3e)[0x44a5ae]
redis-server *:6413(genRedisInfoString+0xdbf)[0x42084f]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xf030)[0x7f77f2c1a030]
redis-server *:6413(genRedisInfoString+0xdbf)[0x42084f]
redis-server *:6413(infoCommand+0x4a)[0x42099a]
redis-server *:6413(call+0x70)[0x41ef40]
redis-server *:6413(processCommand+0x38d)[0x42108d]
redis-server *:6413(processInputBuffer+0x51)[0x4297c1]
redis-server *:6413(readQueryFromClient+0xb8)[0x4298e8]
redis-server *:6413(aeProcessEvents+0x230)[0x41a530]
redis-server *:6413(processEventsWhileBlocked+0x1e)[0x42a44e]
redis-server *:6413(loadAppendOnlyFile+0x27d)[0x44797d]
redis-server *:6413(loadDataFromDisk+0x44)[0x421cb4]
redis-server *:6413(main+0x29b)[0x4193fb]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd)[0x7f77f289eead]
redis-server *:6413[0x4195a9]
[14051] 13 Aug 11:24:55.021 # --- INFO OUTPUT

Activity

  1. mattsta commented on Aug 13, 2014

    @mattsta
    Contributor

    Thanks for reporting. Are you running on a strange platform?

    You died due to SIGFPE floating-point exception.

    You may also have generic memory corruption. Try running redis-server --test-memory [Large MB value] to see if anything easily detectible is wrong.

  2. MOON-CLJ commented on Dec 23, 2014

    @MOON-CLJ
    Contributor

    i have the same error in docker container

    === REDIS BUG REPORT START: Cut & paste starting from here ===
    [1] 23 Dec 09:38:20.003 # Redis 2.8.19 crashed by signal: 8
    [1] 23 Dec 09:38:20.003 # Failed assertion: (:0)
    [1] 23 Dec 09:38:20.003 # --- STACK TRACE
    /usr/local/bin/redis-server 0.0.0.0:16385(logStackTrace+0x76)[0x45e36e]
    /usr/local/bin/redis-server 0.0.0.0:16385(genRedisInfoString+0x837)[0x422a43]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0)[0x7ff3feec3cb0]
    /usr/local/bin/redis-server 0.0.0.0:16385(genRedisInfoString+0x837)[0x422a43]
    /usr/local/bin/redis-server 0.0.0.0:16385(infoCommand+0x67)[0x423696]
    /usr/local/bin/redis-server 0.0.0.0:16385(call+0xc6)[0x420bb1]
    /usr/local/bin/redis-server 0.0.0.0:16385(processCommand+0x65d)[0x421524]
    /usr/local/bin/redis-server 0.0.0.0:16385(processInputBuffer+0xef)[0x42f694]
    /usr/local/bin/redis-server 0.0.0.0:16385(readQueryFromClient+0x2c6)[0x42f98b]
    /usr/local/bin/redis-server 0.0.0.0:16385(aeProcessEvents+0x256)[0x419839]
    /usr/local/bin/redis-server 0.0.0.0:16385(processEventsWhileBlocked+0x2c)[0x430f21]
    /usr/local/bin/redis-server 0.0.0.0:16385(loadAppendOnlyFile+0x18b)[0x4586fc]
    /usr/local/bin/redis-server 0.0.0.0:16385(loadDataFromDisk+0x2b)[0x42446e]
    /usr/local/bin/redis-server 0.0.0.0:16385(main+0x4f3)[0x424ab1]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7ff3feb1676d]
    /usr/local/bin/redis-server 0.0.0.0:16385[0x417f6d]
    [1] 23 Dec 09:38:20.003 # --- INFO OUTPUT

  3. antirez commented on Dec 23, 2014

    @antirez
    Contributor

    Ok looks like we divide by zero or alike... let's try to figure out where this happens from the stack traces. Please send us your redis-server binary if possible.

  4. antirez commented on Dec 23, 2014

    @antirez
    Contributor

    Note for posterity: the INFO output is truncated in the bug report since it crashes again because of the same bug.

  5. MOON-CLJ commented on Dec 23, 2014

    @MOON-CLJ
    Contributor

    thx in advance~ @antirez the INFO output not truncated by me, it just end there in redis log. the crash happened when start redis-server. the docker container rm by me, so that redis-server binary is impossible to send to you。i have a Dockerfile https://github.com/MOON-CLJ/maestro-ng/blob/master/maestro/docker_redis/redis_dockerfile_debug/Dockerfile, you can modify it to build the binary.

  6. antirez commented on Dec 23, 2014

    @antirez
    Contributor

    Bug found, fixing. The loading statistics can trigger a division by zero. Moreover they where totally broken (always displaying "1") in certain cases. Fixing both, news ASAP.

  7. MOON-CLJ commented on Dec 23, 2014

    @MOON-CLJ
    Contributor
  8. antirez commented on Dec 23, 2014

    @antirez
    Contributor

    Thank you, should be fixed now. I was not able to reproduce the issue but I believe I identified the cause at least. Other related issues fixed in the same commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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