Skip to content
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

Problem in sdsMakeRoomFor() in sds.c #221 #480

Closed
shashikirang opened this issue Oct 26, 2016 · 3 comments
Closed

Problem in sdsMakeRoomFor() in sds.c #221 #480

shashikirang opened this issue Oct 26, 2016 · 3 comments

Comments

@shashikirang
Copy link

segmentation fault when trying realloc.
the backtrace is as below:
0 __memcpy_avx_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S:138
1 0x00007f0618b3ee84 in ?? () from /usr/lib/libjemalloc.so.2
0000002 0x00007f0618b332e9 in realloc () from /usr/lib/libjemalloc.so.2
3 0x00007f06182e0c0d in sdsMakeRoomFor (s=0x7f060da0d34b "NM", addlen=addlen@entry=1) at sds.c:221
4 0x00007f06182e154c in sdscatlen (s=s@entry=0x7f060da0d34b "NM", t=t@entry=0x7f06188b3987, len=len@entry=1) at sds.c:379
5 0x00007f06182de354 in redisvFormatCommand (target=target@entry=0x7f060edfb9b0, format=, ap=0x7f060edfb9f8) at hiredis.c:247
6 0x00007f06182e0462 in redisvAppendCommand (c=0x7f060da13000, format=, ap=) at hiredis.c:933
7 0x00007f06182e060d in redisvCommand (c=0x7f060da13000, format=, ap=ap@entry=0x7f060edfb9f8) at hiredis.c:1003
8 0x00007f06182e06d7 in redisCommand (c=, format=) at hiredis.c:1012

Any clue?
or could it be memory corruption ?

@fenglonz
Copy link

fenglonz commented Dec 8, 2016

I have the same coredump. Have you known how to fixed it? Thanks!

@dagostinelli
Copy link

dagostinelli commented Dec 21, 2016

FYI This is related to #493 and #447 and #460

@michael-grunder
Copy link
Collaborator

I think this can be closed as many of the potential culprits have been fixed in newer versions of sds.

Feel free to reopen if it's still happening

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants