scalacheck-shapeless icon indicating copy to clipboard operation
scalacheck-shapeless copied to clipboard

SizeTests on 2.13 makes JVM segfault on JDK 13 and 14

Open SethTisue opened this issue 4 years ago • 6 comments

example of it happening on Ubuntu, in the Scala community build: https://scala-ci.typesafe.com/job/scala-2.13.x-jdk14-integrate-community-build/628/console

but I have also seen it happen outside dbuild, on MacOS + JDK 14 (14-ea+32-1423) + Scala 2.13.1. just by cloning the repo and then doing testJVM/test. here's the crash log: https://gist.github.com/SethTisue/849ae992455477669d595e3e6510f1a0

SethTisue avatar Jan 24 '20 20:01 SethTisue

reproducible with just testJVM/testOnly *SizeTests

SethTisue avatar Feb 03 '20 17:02 SethTisue

I can't reproduce that locally with Adopt 13.0.2 (on macOS):

$ jabba use [email protected]

$ java -version
openjdk version "13.0.2" 2020-01-14
OpenJDK Runtime Environment AdoptOpenJDK (build 13.0.2+8)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 13.0.2+8, mixed mode, sharing)

$ sbt "testJVM/testOnly *SizeTests"
[info] Loading settings for project global-plugins from idea.sbt,plugins.sbt ...
[info] Loading global plugins from ~/.sbt/1.0/plugins
[info] Loading settings for project scalacheck-shapeless-build from plugins.sbt,metals.sbt ...
[info] Loading project definition from ./project
[info] Loading settings for project scalacheck-shapeless from build.sbt ...
[info] Set current project to scalacheck-shapeless (in build file:./scalacheck-shapeless/)
-------------------------------- Running Tests --------------------------------
+ org.scalacheck.SizeTests.tree 2091ms
[info] utest
[info] Tests: 1, Passed: 1, Failed: 0
[info] Passed: Total 1, Failed 0, Errors 0, Passed 1
[success] Total time: 3 s, completed 3 févr. 2020 à 19:55:17

alexarchambault avatar Feb 03 '20 18:02 alexarchambault

sbt testJVM/test works too. Same thing with [email protected] via jabba.

Are you consistently getting that error, @SethTisue?

alexarchambault avatar Feb 03 '20 19:02 alexarchambault

it's 2.13-specific. try sbt "++2.13.1" "testJVM/testOnly *SizeTests"

with

openjdk version "13.0.2" 2020-01-14
OpenJDK Runtime Environment AdoptOpenJDK (build 13.0.2+8)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 13.0.2+8, mixed mode, sharing)

I did 5 runs of sbt "++2.13.1" "testJVM/testOnly *SizeTests" just now and all 5 crashed.

SethTisue avatar Feb 03 '20 20:02 SethTisue

Reproduced with [email protected]. [email protected] seems fine OTOH. No idea what can cause that though 🤔

alexarchambault avatar Feb 03 '20 20:02 alexarchambault

is [email protected] newer or older than 14-ea+32-1423? the latter is what brew cask install java-beta gives me on macOS

SethTisue avatar Feb 03 '20 20:02 SethTisue