[aarch64-port-dev ] Sporadic crashes on aarch64 after switching from OpenJDK 9 to 10

Stephan Bergmann sbergman at redhat.com
Thu Jun 21 13:04:33 UTC 2018


On 20/06/18 10:19, Stephan Bergmann wrote:
> cppunittester sets up all its signal handlers (which do /not/ include 
> one for SIGSEGV) way before the in-process JVM is instantiated, so this 
> always used to work fine without a need to LD_PRELOAD libjsig.so. 
> However, trying with LD_PRELOAD nevertheless, I could no longer 
> reproduce the (sporadic) failure.  Odd.

Ha, turns out that while the cppunittester process didn't set a SIGSEGV 
handler at start, it erroneously reset whatever SIGSEGV handler to 
SIG_DFL towards the end of execution, shortly before exit.  And with 
some luck, JVM threads executing JIT'ed code could apparently still run 
at that time, inducing SIGSEGV that would rely on the JVM's handler.

Appears to be just a coincidence that I only experienced that crash with 
OpenJDK 10 on aarch64.  Sorry for the noise...


More information about the aarch64-port-dev mailing list