New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use-after-free #5513

Open
mlite opened this Issue Oct 31, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@mlite
Copy link

mlite commented Oct 31, 2018

  1. Found in git revision edce515, building it with "make MALLOC=libc 32bit"

  2. Reproducing step:
    src/redis-server ./tests/tmp/redis.conf.8988.2

DTS_MSG: Stensal C/C++ DTS detected a runtime program error. Abort execution!
DTS_MSG: Access the memory block that is freed.
DTS_MSG: Diagnostic information:

  • Caution: the allocation info is correct only if the freed memory is not reused.
  • the memory block (start:0xb0769f0, size:123 bytes) was allocated at
    file:/home/sbuilder/workspace/redis/src/zmalloc.c::163, 14
  • Stack trace (most recent call first):
    -[1] file:/home/sbuilder/workspace/redis/src/zmalloc.c::202, 5
    -[2] file:/home/sbuilder/workspace/redis/src/listpack.c::217, 5
    -[3] file:/home/sbuilder/workspace/redis/src/rax.c::1233, 9
    -[4] file:/home/sbuilder/workspace/redis/src/rax.c::1228, 9
    -[5] file:/home/sbuilder/workspace/redis/src/rax.c::1241, 5
    -[6] file:/home/sbuilder/workspace/redis/src/t_stream.c::64, 5
    -[7] file:/home/sbuilder/workspace/redis/src/object.c::346, 5
    -[8] file:/home/sbuilder/workspace/redis/src/object.c::362, 26
    -[9] file:/home/sbuilder/workspace/redis/src/server.c::498, 5
    -[10] file:/home/sbuilder/workspace/redis/src/dict.c::387, 21
    -[11] file:/home/sbuilder/workspace/redis/src/dict.c::404, 12
    -[12] file:/home/sbuilder/workspace/redis/src/db.c::275, 9
    -[13] file:/home/sbuilder/workspace/redis/src/db.c::474, 31
    -[14] file:/home/sbuilder/workspace/redis/src/db.c::487, 5
    -[15] file:/home/sbuilder/workspace/redis/src/server.c::2433, 5
    -[16] file:/home/sbuilder/workspace/redis/src/server.c::2729, 9
    -[17] file:/home/sbuilder/workspace/redis/src/networking.c::1452, 17
    -[18] file:/home/sbuilder/workspace/redis/src/networking.c::1487, 9
    -[19] file:/home/sbuilder/workspace/redis/src/networking.c::1569, 5
    -[20] file:/home/sbuilder/workspace/redis/src/ae.c::443, 17
    -[21] file:/home/sbuilder/workspace/redis/src/ae.c::501, 9
    -[22] file:/home/sbuilder/workspace/redis/src/server.c::4197, 5

@mlite mlite changed the title possible use-after-free use-after-free Oct 31, 2018

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