GmSSL / GmSSL-Java

Java interface of the GmSSL library
https://gmssl.github.io/GmSSL-Java
Apache License 2.0
67 stars 14 forks source link

Java应用程序崩溃的的问题 #11

Open HallucinationOnce opened 8 months ago

HallucinationOnce commented 8 months ago

在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 commented 8 months ago

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