GmSSL-Java icon indicating copy to clipboard operation
GmSSL-Java copied to clipboard

Java应用程序崩溃的的问题

Open HallucinationOnce opened this issue 2 years ago • 1 comments

在Sm3、Sm4Cbc传入long sm4_cbc_ctx、sm3_cbc_ctx时,Java应用程序崩溃,发生了SIGSEGV信号,访问了无效的内存地址:

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x00007ff5b9ec91b1, pid=31540, tid=0x00007ff5fe54f700

JRE version: OpenJDK Runtime Environment (8.0_392-b08) (build 1.8.0_392-b08)

Java VM: OpenJDK 64-Bit Server VM (25.392-b08 mixed mode linux-amd64 compressed oops)

Problematic frame:

C [libgmssl.so.3+0x2a1b1] sm4_cbc_encrypt_update+0x24

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

HallucinationOnce avatar Oct 30 '23 02:10 HallucinationOnce

请问,在传输过程中,重新将Sm4对象反序列化后,sm4_cbc_ctx的数值跟传输前是一样的,但是会出现如下错误,请问怎么解决 1698634095283 41)

HallucinationOnce avatar Oct 30 '23 02:10 HallucinationOnce