Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
330 views
in Technique[技术] by (71.8m points)

libcrypto - Q) crash in openJ9 libcryp due to Memeory Violation in CRYPTO_memcmp

The Context of my question

My server software is based on

openjdk version "1.8.0_242"

Nearly ever 2-3 week my server process crashes. In the Java Dmp file is see that when doing

HttpsURLConnection conn = (HttpsURLConnection)myurl.openConnection(); 

there is a memory violation in the libcrypt-1_1 DLL in

4XENATIVESTACK               CRYPTO_memcmp+0xe8ef8 (0x00007FFA122A5C18 [libcrypto-1_1-x64+0x185c18])

So for me it looks like that CRYPTO_memcmp forces

1XHEXCPCODE Windows_ExceptionCode: C0000005

My Question

Did anybody observe a similar crash with openJ9 or have an idea about the root cause?

Many thanks in advance Reinhold


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I just think about my implementation which is a server and of cource I am using multitheading.

So I need to double check if libcrypto is Multi-Thread-safe. If not then this could explain the crash.

But the real question is: Is the method myurl.openConnection() realy thread-safe.
As far as I know it should be thread safe.

I will update with my finding as soon I found something


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...