Mantis - Resin
Viewing Issue Advanced Details
6464 minor always 03-11-22 10:02 07-27-22 21:57
nam  
nam  
normal  
closed 4.0.66  
no change required  
none    
none  
0006464: openssl crash EXCEPTION_ACCESS_VIOLATION on windows 10
(rep by Nerine)

Crashes on Windows 10 but not on Windows 7.

#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000027a12802313, pid=2340, tid=0x0000000000001bac
#
# JRE version: OpenJDK Runtime Environment (8.0_322-b06) (build 1.8.0_322-b06)
# Java VM: OpenJDK 64-Bit Server VM (25.322-b06 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [resinssl.dll+0x2313]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.caucho.vfs.OpenSSLFactory.setVerify(JLjava/lang/String;I)V+0
j com.caucho.vfs.OpenSSLFactory.initConfig()V+247
j com.caucho.vfs.OpenSSLFactory.create(Ljava/net/InetAddress;I)Lcom/caucho/vfs/QServerSocket;+30
j com.caucho.network.listen.TcpPort.bind()V+296
j com.caucho.cloud.network.NetworkListenSystem.start()V+55
j com.caucho.env.service.ResinSystem.startServices()V+93
j com.caucho.env.service.ResinSystem.start()V+316
j com.caucho.server.resin.Resin.start()V+139
j com.caucho.server.resin.Resin.initMain()V+184
j com.caucho.server.resin.Resin.main([Ljava/lang/String;)V+16
v ~StubRoutines::call_stub

Notes
(0007093)
nam   
07-27-22 21:57   
The underlying issue is Exploit Protection in Windows Security. Exploit Protection protects against malicious applications but it may cause crashes in older applications. In Windows 10, it had aggressive settings on by default. But in Windows 11, Microsoft turned off some of those settings for compatibility. The settings in question is:

    1. Windows Security
    -> 2. App & Browser control
         -> 3. Exploit Protection
              -> 4a. Force randomization for images (Mandatory ASLR)
              -> 4b. High-entropy ASLR (Bottoms-up ASLR)

To prevent Resin from crashing, you will need to disable 4a or 4b. You may want to do this system-wide or just for the javaw.exe program that Resin uses to start itself up.