Seeing frequent JVM crashes running sbt on 12-RC1.
# A fatal error has been detected by the Java Runtime Environment:
# SIGSEGV (0xb) at pc=0x000000080177cf4f, pid=9220, tid=0x0000000000018e35
# JRE version: OpenJDK Runtime Environment (8.0_181-b13) (build 1.8.0_181-b13)
# Java VM: OpenJDK 64-Bit Server VM (25.181-b13 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x97cf4f] JVM_FindSignal+0x18534f
# Core dump written. Default location: /usr/home/mark/dev/markdixon/java.core
# An error report file with more information is saved as:
# Compiler replay data is saved as:
# If you would like to submit a bug report, please visit:
This seems actually an openjdk issue, not a sbt one.
Okay so assign to that port then?
Created attachment 199543 [details]
JVM error log
Confirmed via reddit this impacts others too. This used to work on FreeBSD 11.
Created attachment 201008 [details]
sbt 1.1.4 JVM crash dump
I'm running 12.0-RELEASE-p1 r342631.
I compiled the java/openjdk8 with DEBUG option turned on, and sbt 1.1.4 constantly crashes.
The last frame belonging to sbt in the attached stack trace is:
Afterwards, it goes to jna native stuff.
sbt.io seems to be working with manual offsets into stat struct:
The stat.h was modified in r318736 ("Commit the 64-bit inode project"), which, as the commit message says, might break existing software.
This issue could be related to the crash in this bug, but it manifests itself regularly in DEBUG version of openjdk8, not sporadically.
sbt-io handled this ABI change:
"Remove custom native FreeBSD code that broke in FreeBSD 12 because of ABI change"
I haven't been able to reproduce the issue I mentioned when using ports version of sbt, because a `-Dsbt.io.jdktimestamps=true` was added to sbt options in devel/sbt (r488526).