Skip to content

JVM CRASH JavaThread redisMessageListenerContainer #2702

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

Closed
likeonechild opened this issue Sep 7, 2023 · 3 comments
Closed

JVM CRASH JavaThread redisMessageListenerContainer #2702

likeonechild opened this issue Sep 7, 2023 · 3 comments
Labels
status: invalid An issue that we don't feel is valid

Comments

@likeonechild
Copy link

likeonechild commented Sep 7, 2023

version
spring-data-redis 2.1.16-release

info
The Java process suddenly disappears。
There are no related exceptions in the application log。
View hs_err log found the following exception:

--------------- T H R E A D ---------------

Current thread (0x00007f97a000b000): JavaThread "redisMessageListenerContainer-1513585" [_thread_in_native, id=3169579, stack(0x00007f979d6d7000,0x00007f979d7d8000)]

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000000000

Registers:
RAX=0x0000000000000001, RBX=0x0000000000002000, RCX=0x00007f984286cddd, RDX=0x0000000000000001
RSP=0x00007f979d7c6210, RBP=0x00007f979d7c62c0, RSI=0x0000000000000001, RDI=0x0000000000000000
R8 =0x0000000000000000, R9 =0x0000000064f7c934, R10=0x00007ffdd8b4d000, R11=0x0000000000000000
R12=0x00007f97e0fff6a0, R13=0x00007f979d7c6250, R14=0x00007f979d7c62e0, R15=0x00000000000007d0
RIP=0x0000000000000000, EFLAGS=0x0000000000010207, CSGSFS=0x002b000000000033, ERR=0x0000000000000014
TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007f979d7c6210)
0x00007f979d7c6210: 0000000000000000 0000000000000000
0x00007f979d7c6220: 0000000000000000 0000000000000000
0x00007f979d7c6230: 0000000000000000 0000000000000000
0x00007f979d7c6240: 0000000000000000 0000000000000000
0x00007f979d7c6250: 0000000000000000 0000000000000000
0x00007f979d7c6260: 0000000000000000 0000000000000000
0x00007f979d7c6270: 0000000000000000 0000000000000000
............................

Instructions: (pc=0x0000000000000000)
0xffffffffffffffe0:

Register to memory mapping:

RAX=0x0000000000000001 is an unknown value
RBX=0x0000000000002000 is an unknown value
RCX=0x00007f984286cddd: __poll+0x2d in /lib64/libc.so.6 at 0x00007f9842779000
RDX=0x0000000000000001 is an unknown value
RSP=0x00007f979d7c6210 is pointing into the stack for thread: 0x00007f97a000b000
RBP=0x00007f979d7c62c0 is pointing into the stack for thread: 0x00007f97a000b000
RSI=0x0000000000000001 is an unknown value
RDI=0x0000000000000000 is an unknown value
R8 =0x0000000000000000 is an unknown value
R9 =0x0000000064f7c934 is an unknown value
R10=0x00007ffdd8b4d000 is an unknown value
R11=0x0000000000000000 is an unknown value
R12=0x00007f97e0fff6a0 is an unknown value
R13=0x00007f979d7c6250 is pointing into the stack for thread: 0x00007f97a000b000
R14=0x00007f979d7c62e0 is pointing into the stack for thread: 0x00007f97a000b000
R15=0x00000000000007d0 is an unknown value

Stack: [0x00007f979d6d7000,0x00007f979d7d8000], sp=0x00007f979d7c6210, free space=956k
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 9280 java.net.SocketInputStream.socketRead0(Ljava/io/FileDescriptor;[BIII)I (0 bytes) @ 0x00007f982d6ec0a7 [0x00007f982d6ec040+0x67]
J 13959 C2 java.net.SocketInputStream.read([BIII)I (328 bytes) @ 0x00007f982e311650 [0x00007f982e3114c0+0x190]
J 13578 C2 redis.clients.jedis.Protocol.process(Lredis/clients/util/RedisInputStream;)Ljava/lang/Object; (110 bytes) @ 0x00007f982f2f8de4 [0x00007f982f2f8d20+0xc4]
J 11715 C2 redis.clients.jedis.Connection.getStatusCodeReply()Ljava/lang/String; (37 bytes) @ 0x00007f982ed9ecbc [0x00007f982ed9eb00+0x1bc]
J 11864 C2 redis.clients.jedis.JedisFactory.validateObject(Lorg/apache/commons/pool2/PooledObject;)Z (88 bytes) @ 0x00007f982e720a64 [0x00007f982e7207c0+0x2a4]
J 12442 C2 org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(J)Ljava/lang/Object; (385 bytes) @ 0x00007f982f043d3c [0x00007f982f043620+0x71c]
J 11698 C2 org.springframework.data.redis.core.RedisTemplate.execute(Lorg/springframework/data/redis/core/RedisCallback;ZZ)Ljava/lang/Object; (180 bytes) @ 0x00007f982eda0a24 [0x00007f982eda04e0+0x544]
J 16490 C2 org.springframework.data.redis.listener.RedisMessageListenerContainer$$Lambda$663.run()V (20 bytes) @ 0x00007f982f8f0acc [0x00007f982f8ee8a0+0x222c]
J 16491 C2 java.lang.Thread.run()V (17 bytes) @ 0x00007f982eac8de8 [0x00007f982eac8da0+0x48]
v ~StubRoutines::call_stub

..................................

Internal exceptions (10 events):
Event: 9241.736 Thread 0x00007f983e0a4800 Exception <a 'java/net/SocketTimeoutException': Read timed out> (0x00000000ddf73f88) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u131/8869/hotspot/src/share/vm/prims/jni.cpp, line 735]
Event: 9253.404 Thread 0x00007f983df22800 Exception <a 'java/net/SocketTimeoutException': Read timed out> (0x00000000e8f1dfe8) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u131/8869/hotspot/src/share/vm/prims/jni.cpp, line 735]
Event: 9255.926 Thread 0x00007f983e0a4800 Exception <a 'java/net/SocketTimeoutException': Read timed out> (0x00000000d9e0fee8) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u131/8869/hotspot/src/share/vm/prims/jni.cpp, line 735]
Event: 9262.600 Thread 0x00007f983df59800 Exception <a 'java/net/SocketTimeoutException': Read timed out> (0x00000000e0115a40) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u131/8869/hotspot/src/share/vm/prims/jni.cpp, line 735]
Event: 9692.764 Thread 0x00007f983df22800 Exception <a 'java/net/SocketTimeoutException': Read timed out> (0x00000000df399670) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u131/8869/hotspot/src/share/vm/prims/jni.cpp, line 735]
Event: 28510.628 Thread 0x00007f983c751000 Exception <a 'java/net/SocketException': Socket closed> (0x00000000d9456640) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u131/8869/hotspot/src/share/vm/prims/jni.cpp, line 735]
Event: 28510.633 Thread 0x00007f983c751000 Exception <a 'java/net/SocketException': Socket closed> (0x00000000d9456a98) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u131/8869/hotspot/src/share/vm/prims/jni.cpp, line 735]
Event: 28510.633 Thread 0x00007f983c751000 Exception <a 'java/net/SocketException': Socket closed> (0x00000000d9456ef0) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u131/8869/hotspot/src/share/vm/prims/jni.cpp, line 735]
Event: 28832.961 Thread 0x00007f97bc0e0000 Implicit null exception at 0x00007f982f7db43c to 0x00007f982f7dc161
Event: 28832.963 Thread 0x00007f983c882800 Implicit null exception at 0x00007f982f63e334 to 0x00007f982f63f921

From the logs, it can be seen that "redisMessageListenerContainer " is a possible cause of this crash. So, I would like to know what is the possible cause of this crash? And how to solve it

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 7, 2023
@mp911de
Copy link
Member

mp911de commented Sep 7, 2023

Any particular reason you filed the issue here? The stack terminates in native calls originating from I/O.

@mp911de mp911de added the status: waiting-for-feedback We need additional information before we can continue label Sep 7, 2023
@likeonechild
Copy link
Author

Any particular reason you filed the issue here? The stack terminates in native calls originating from I/O.
it's jvm crash logs,From the logs, it can be seen that "redisMessageListenerContainer " is a possible cause of this crash. So, I would like to know what is the possible cause of this crash? And how to solve it

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Sep 7, 2023
@mp911de
Copy link
Member

mp911de commented Sep 7, 2023

redisMessageListenerContainer-* is the thread name. The failure happens inside native code and that isn't something we can debug nor fix.

@mp911de mp911de closed this as not planned Won't fix, can't repro, duplicate, stale Sep 7, 2023
@mp911de mp911de added status: invalid An issue that we don't feel is valid and removed status: waiting-for-triage An issue we've not yet triaged status: feedback-provided Feedback has been provided labels Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: invalid An issue that we don't feel is valid
Projects
None yet
Development

No branches or pull requests

3 participants