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

k8s环境com.luciad.imageio.webp.WebP.decode操作的时候会导致crash #38

Open
limpidck opened this issue Dec 12, 2024 · 1 comment

Comments

@limpidck
Copy link

本地物理机没有问题,但是上K8S环境部署后,涉及到com.luciad.imageio.webp.WebP.decode调用时,会导致crash,然后导致服务下线。以下为阿里云K8S生产环境下的线程日志截图:
--------------- T H R E A D ---------------

Current thread (0x000055991935e000): JavaThread "Thread-sign-2" [_thread_in_native, id=1722, stack(0x00007f7768449000,0x00007f77684c9ad0)]

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

Registers:
RAX=0x000000000000000c, RBX=0x000000000000000c, RCX=0x0000000000000011, RDX=0x000000000000000c
RSP=0x00007f77684c8108, RBP=0x00007f77684c81b0, RSI=0x0000559920445e50, RDI=0x00007f77684c81b0
R8 =0x00007f77684c81ff, R9 =0x00000000000018ff, R10=0x00005599204475c0, R11=0x0000559920440fc0
R12=0x000000000000000c, R13=0x00007f77684c81d0, R14=0x0000000000000210, R15=0x00007f77684c81f0
RIP=0x000000000000b8e6, EFLAGS=0x0000000000010206, CSGSFS=0x002b000000000033, ERR=0x0000000000000014
TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007f77684c8108)
0x00007f77684c8108: 00007f7754864fde 00007f77684c87f0
0x00007f77684c8118: 00007f77684c8370 0101010100000421
0x00007f77684c8128: 0101010101010101 0101010101010101
0x00007f77684c8138: 0101010101010101 0000000000000000
0x00007f77684c8148: 0000000000000000 00007f77684c8210
0x00007f77684c8158: 0000559920445e51 00007f77684c8250
0x00007f77684c8168: 00007f77684c8230 0000000790594ff0
0x00007f77684c8178: 0000000000000000 0000559920445c40
0x00007f77684c8188: 00005599204475c0 0000559920440fc0
0x00007f77684c8198: 0000559920445c40 00005599204475c0
0x00007f77684c81a8: 00007f77684c8270 0000000000000001
0x00007f77684c81b8: 00007f77d3885d49 0000000000000000
0x00007f77684c81c8: 0000000000000040 00007f77b9867b30
0x00007f77684c81d8: 00007f77b9869900 00007f77684c82a8
0x00007f77684c81e8: 0000000000000029 8181818181818181
0x00007f77684c81f8: 8181818181818181 8181818181818181
0x00007f77684c8208: 8181818181818181 7b7b7b7b7b7b7b7b
0x00007f77684c8218: 7b7b7b7b7b7b7b7b 7b7b7b7b7b7b7b7b
0x00007f77684c8228: 7b7b7b7b7b7b7b7b 8181818181818181
0x00007f77684c8238: 8181818181818181 8181818181818181
0x00007f77684c8248: 8181818181818181 7b7b7b7b7b7b7b7b
0x00007f77684c8258: 7b7b7b7b7b7b7b7b 7b7b7b7b7b7b7b7b
0x00007f77684c8268: 7b7b7b7b7b7b7b7b 0000000000000000
0x00007f77684c8278: 0000000000000000 0000000000000000
0x00007f77684c8288: 0000000000000000 0000000000000000
0x00007f77684c8298: 0000000000000000 0000000000000000
0x00007f77684c82a8: 0000000000000000 0000000000000000
0x00007f77684c82b8: 0000000000000000 0000000000000000
0x00007f77684c82c8: 0000000000000000 0000000000000000
0x00007f77684c82d8: 0000000000000000 0000000000000000
0x00007f77684c82e8: 0000000000000000 0000000000000000
0x00007f77684c82f8: 0000000000000000 0000000000000000

Instructions: (pc=0x000000000000b8e6)
0x000000000000b8c6:
[error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xb]

Register to memory mapping:

RAX=0x000000000000000c is an unknown value
RBX=0x000000000000000c is an unknown value
RCX=0x0000000000000011 is an unknown value
RDX=0x000000000000000c is an unknown value
RSP=0x00007f77684c8108 is pointing into the stack for thread: 0x000055991935e000
RBP=0x00007f77684c81b0 is pointing into the stack for thread: 0x000055991935e000
RSI=0x0000559920445e50 is an unknown value
RDI=0x00007f77684c81b0 is pointing into the stack for thread: 0x000055991935e000
R8 =0x00007f77684c81ff is pointing into the stack for thread: 0x000055991935e000
R9 =0x00000000000018ff is an unknown value
R10=0x00005599204475c0 is an unknown value
R11=0x0000559920440fc0 is an unknown value
R12=0x000000000000000c is an unknown value
R13=0x00007f77684c81d0 is pointing into the stack for thread: 0x000055991935e000
R14=0x0000000000000210 is an unknown value
R15=0x00007f77684c81f0 is pointing into the stack for thread: 0x000055991935e000

Stack: [0x00007f7768449000,0x00007f77684c9ad0], sp=0x00007f77684c8108, free space=508k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x000000000000b8e6
C [ld-musl-x86_64.so.1+0x24d49] malloc+0x38d

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.luciad.imageio.webp.WebP.decode(J[BII[IZ)[I+0
j com.luciad.imageio.webp.WebP.decode(Lcom/luciad/imageio/webp/WebPDecoderOptions;[BII[I)[I+64
j com.luciad.imageio.webp.WebPReader.read(ILjavax/imageio/ImageReadParam;)Ljava/awt/image/BufferedImage;+53
J 241397 C1 javax.imageio.ImageIO.read(Ljavax/imageio/stream/ImageInputStream;)Ljava/awt/image/BufferedImage; (91 bytes) @ 0x00007f77c8823684 [0x00007f77c8823100+0x584]
j javax.imageio.ImageIO.read(Ljava/net/URL;)Ljava/awt/image/BufferedImage;+42

@closerd
Copy link

closerd commented Jan 13, 2025

我们也碰见了docker 部署环境出现这种堆栈问题,请问你们是怎么解决的呢

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

2 participants