简体   繁体   中英

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

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

I think you've encountered OpenJ9 issue 8373 which is fixed in the 0.23 release of jdk8u275-b01.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM