org.gradle.launcher.daemon.client.DaemonDisappearedException: Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)


It is randomly reproducible on CI (VMware, CentOS, Docker). Locally it is not reproducible.
It appeared after our infrastructure updating to Gradle 8.2.1 according with Jdk 17, Android Gradle Plugin 8.0.2 and Kotlin 1.8.22.
Hs_err always has org.jetbrains.kotlin.resolve.checkers.TrailingCommaCallChecker as CompileTask.

Some info from hs_err:

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x0000000000000000, pid=56, tid=1564

JRE version: OpenJDK Runtime Environment (17.0.2+8) (build 17.0.2+8-86)
Java VM: OpenJDK 64-Bit Server VM (17.0.2+8-86, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, parallel gc, linux-amd64)
Problematic frame:
C 0x0000000000000000

Core dump will be written. Default location: /builds/mobile/android/mobilebank-android/core.56

If you would like to submit a bug report, please visit:
Crash Report

--------------- S U M M A R Y ------------

Command Line: -XX:+UseParallelGC -XX:+UseGCOverheadLimit -XX:MaxMetaspaceSize=1g --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/ --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx5g -Dfile.encoding=UTF-8 -Duser.language=en -Duser.variant -javaagent:/root/.gradle/wrapper/dists/gradle-8.2.1-all/1si9822totaa8crkgbu8exiky/gradle-8.2.1/lib/agents/gradle-instrumentation-agent-8.2.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.2.1

Host: Intel(R) Xeon(R) Gold 6248R CPU @ 3.00GHz, 8 cores, 30G, Debian GNU/Linux 10 (buster)
Time: Fri Aug 11 16:13:06 2023 UTC elapsed time: 882.882745 seconds (0d 0h 14m 42s)

--------------- T H R E A D ---------------

Current thread (0x00007f33b4da4950): JavaThread “C2 CompilerThread1” daemon [_thread_in_native, id=1564, stack(0x00007f33140e9000,0x00007f33141ea000)]

Current CompileTask:
C2: 882882 133905 4 org.jetbrains.kotlin.resolve.checkers.TrailingCommaCallChecker::check (257 bytes)

Well, something is causing your Java to crash somewhere in some native code.
I don’t think this is really Gradle related.
If you say the crash dump blames org.jetbrains.kotlin.resolve.checkers.TrailingCommaCallChecker, you should probably report this to Jetbrains instead at :slight_smile:

1 Like