[Bug 233470] java/openjdk8: Frequent JVM crashes with devel/sbt on 12-RC1

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jan 11 00:40:11 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233470

Bojan Petrovic <bojan_petrovic at fastmail.fm> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bojan_petrovic at fastmail.fm
 Attachment #201008|text/x-log                  |text/plain
          mime type|                            |

--- Comment #5 from Bojan Petrovic <bojan_petrovic at fastmail.fm> ---
Created attachment 201008
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=201008&action=edit
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the freebsd-java mailing list