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: # /usr/home/mark/dev/markdixon/hs_err_pid9220.log # # Compiler replay data is saved as: # /usr/home/mark/dev/markdixon/replay_pid9220.log # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp
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: sbt.internal.io.FreeBSD64Milli$.$anonfun$getModifiedTimeNative$3(Ljava/lang/String;Lsbt/internal/io/FreeBSD64FileStat;)I+11 Afterwards, it goes to jna native stuff. sbt.io seems to be working with manual offsets into stat struct: https://github.com/sbt/io/blob/87e9e49bb8faf829c5f3a0f9c69e5cb865309a6c/io/src/main/scala/sbt/internal/io/Milli.scala#L227 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" https://github.com/sbt/io/commit/7a03684003ee19e7db995bade5e1b207c10b51ba
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).