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

6 Segmentation fault (core dumped) ./src/redis-cluster-proxy -c proxy.conf #107

Open
kaoyan2010 opened this issue Aug 8, 2022 · 1 comment

Comments

@kaoyan2010
Copy link

[2022-08-08 03:56:00.237/6] Thread 0 terminated
[2022-08-08 03:56:00.238/6] Thread 1 terminated
[2022-08-08 03:56:00.238/6] Thread 2 terminated
[2022-08-08 03:56:00.238/6] Thread 3 terminated
[2022-08-08 03:56:00.238/6] Thread 4 terminated
[2022-08-08 03:56:00.238/6] Thread 5 terminated
[2022-08-08 03:56:00.238/6] Thread 7 terminated

=== PROXY BUG REPORT START: Cut & paste starting from here ===
[2022-08-08 03:56:00.238/6] Redis Cluster Proxy 999.999.999 crashed by signal: 11
[2022-08-08 03:56:00.238/6] Crashed running the instruction at: 0x4143c3
[2022-08-08 03:56:00.238/6] Accessing address: 0x30b24e10
[2022-08-08 03:56:00.238/6] Handling crash on thread: 6

------ STACK TRACE ------
EIP:
./src/redis-cluster-proxy(freeRequest+0x23)[0x4143c3]

Backtrace:
./src/redis-cluster-proxy(logStackTrace+0x2d)[0x40d08d]
./src/redis-cluster-proxy(sigsegvHandler+0x17a)[0x40d69a]
/lib64/libpthread.so.0(+0xf630)[0x7f2cc8c7f630]
./src/redis-cluster-proxy(freeRequest+0x23)[0x4143c3]
./src/redis-cluster-proxy(freeRequest+0x2c5)[0x414665]
./src/redis-cluster-proxy(processRequest+0x189)[0x41aba9]
./src/redis-cluster-proxy(readQuery+0x1ea)[0x41be6a]
./src/redis-cluster-proxy(aeProcessEvents+0x101)[0x408d31]
./src/redis-cluster-proxy(aeMain+0x2b)[0x40912b]
./src/redis-cluster-proxy[0x410fbc]
/lib64/libpthread.so.0(+0x7ea5)[0x7f2cc8c77ea5]
/lib64/libc.so.6(clone+0x6d)[0x7f2cc89a0b0d]

------ INFO OUTPUT ------

Proxy

proxy_version:999.999.999
proxy_git_sha1:00000000
proxy_git_dirty:0
proxy_git_branch:
os:Linux 3.10.0-1160.66.1.el7.x86_64 x86_64
arch_bits:64
multiplexing_api:epoll
gcc_version:8.3.1
process_id:6
threads:8
tcp_port:6666
uptime_in_seconds:55
uptime_in_days:0
config_file:proxy.conf
acl_user:default

Memory

used_memory:6048000
used_memory_human:5.77M
total_system_memory:67387047936
total_system_memory_human:62.76G

Clients

connected_clients:8
max_clients:10000
thread_0_clinets:1
thread_1_clinets:1
thread_2_clinets:1
thread_3_clinets:1
thread_4_clinets:1
thread_5_clinets:1
thread_6_clinets:1
thread_7_clinets:1

Cluster

address:
entry_node::0

---- SIZEOF STRUCTS ----
clientRequest: 184
client: 224
redisClusterConnection: 48
clusterNode: 112
redisCluster: 104
list: 48
listNode: 24
rax: 24
raxNode: 4
raxIterator: 480
aeEventLoop: 88
aeFileEvent: 32
aeTimeEvent: 64

------ REGISTERS ------

RAX:00007f2ca4009690 RBX:00007f2ca4009110
RCX:0000000000b24e10 RDX:00007f2ca400d000
RDI:00007f2ca400a970 RSI:0000000006000000
RBP:00007f2ca4000d01 RSP:00007f2cc17f9d40
R8 :0000000000000000 R9 :00007f2ca4003820
R10:00007f2ca400d8c0 R11:00007f2cc8a2fd50
R12:0000000000db8d30 R13:0000000000e93c60
R14:0000000000db8e80 R15:0000000000db8e80
RIP:00000000004143c3 EFL:0000000000010202
CSGSFS:0000000000000033
(00007f2cc17f9d4f) -> 0000000000000036
(00007f2cc17f9d4e) -> 00007f2cc17f9e64
(00007f2cc17f9d4d) -> 0000000000e93c60
(00007f2cc17f9d4c) -> 0000000000008006
(00007f2cc17f9d4b) -> 000000000041aba9
(00007f2cc17f9d4a) -> 00007f2ca400a970
(00007f2cc17f9d49) -> 00007f2ca4000df1
(00007f2cc17f9d48) -> 00007f2ca4009110
(00007f2cc17f9d47) -> 00007f2c00000000
(00007f2cc17f9d46) -> 00007f2ca400d000
(00007f2cc17f9d45) -> 0000000000414665
(00007f2cc17f9d44) -> 0000000000db8d30
(00007f2cc17f9d43) -> 00007f2ca4000d01
(00007f2cc17f9d42) -> 00007f2ca4009110
(00007f2cc17f9d41) -> 0000000000db8d30
(00007f2cc17f9d40) -> 00007f2ca4000d01

------ DUMPING CODE AROUND EIP ------
Symbol: freeRequest (base: 0x4143a0)
Module: ./src/redis-cluster-proxy (base 0x400000)
$ xxd -r -p /tmp/dump.hex /tmp/dump.bin
$ objdump --adjust-vma=0x4143a0 -D -b binary -m i386:x86-64 /tmp/dump.bin

dump of function (hexdump of 163 bytes):
4885ff0f8477020000415455534883ec10488b07488b0ddd612200448b477048637028488b0cf14889f24c8b61204d85e4400f95c54585c074164084ed74114883c4105b5d415cc30f1f8400000000004c8b4708488b084889fbbe3dbd420031ff31c0e848afffff8b736c85f6742148837b6000741a4084ed74158b4b7885c90f845a020000662e0f1f840000000000488b7b104885ff7405e822c00000488b7b3848
Function at 0x40f350 is proxyLog
Function at 0x420460 is sdsfree

=== PROXY BUG REPORT END. Make sure to include from START to END. ===

   Please report the crash by opening an issue on github:

       https://github.com/artix75/redis-cluster-proxy/issues
@kaoyan2010
Copy link
Author

kaoyan2010 commented Aug 8, 2022

redis-cluster-proxy的mset和mget操作,
1.当key和value都是string类型时,可以执行成功;
2.当key和value都是byte数组时,
2.1.如果通过mset和mget操作一对key和value,可以执行成功;
2.2.如果通过mset和mget操作多对key和value,不可以执行成功;

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

1 participant