#1131651 gradle-kotlin-dsl: FTBFS: exception: java.lang.ExceptionInInitializerError

Package:
kotlin
Source:
kotlin
Submitter:
Santiago Vila
Date:
2026-07-19 11:15:07 UTC
Severity:
normal
Tags:
#1131651#5
Date:
2026-03-23 11:54:28 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202603/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:gradle-kotlin-dsl, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --with maven-repo-helper
   dh_clean
 debian/rules binary
dh binary --with maven-repo-helper
   dh_update_autotools_config
   dh_autoreconf
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
# gradle-kotlin-dsl-tooling-models
kotlinc \
    -module-name gradle-kotlin-dsl-tooling-models \
    -d tooling-models/target/classes \
    tooling-models/src/main/kotlin/
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.intellij.util.containers.ConcurrentIntObjectHashMap
WARNING: Please consider reporting this to the maintainers of class com.intellij.util.containers.ConcurrentIntObjectHashMap
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
exception: java.lang.ExceptionInInitializerError
	at com.intellij.openapi.util.io.FileUtil.<clinit>(FileUtil.java:52)
	at com.intellij.openapi.application.PathManager.extractRoot(PathManager.java:399)
	at com.intellij.openapi.application.PathManager.getResourceRoot(PathManager.java:364)
	at org.jetbrains.kotlin.utils.PathUtil.getResourcePathForClass(PathUtil.kt:151)
	at org.jetbrains.kotlin.utils.PathUtil.getPathUtilJar(PathUtil.kt:146)
	at org.jetbrains.kotlin.utils.PathUtil.getKotlinPathsForCompiler(PathUtil.kt:106)
	at org.jetbrains.kotlin.cli.common.ArgumentsKt.computeKotlinPaths(arguments.kt:73)
	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:72)
	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:42)
	at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:103)
	at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:81)
	at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:49)
	at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit(CLITool.kt:214)
	at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMain(CLITool.kt:206)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler$Companion.main(K2JVMCompiler.kt:300)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.main(K2JVMCompiler.kt)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
	at org.jetbrains.kotlin.preloading.Preloader.run(Preloader.java:81)
	at org.jetbrains.kotlin.preloading.Preloader.main(Preloader.java:43)
Caused by: java.lang.IllegalArgumentException: 25.0.3-ea
	at com.intellij.util.lang.JavaVersion.parse(JavaVersion.java:270)
	at com.intellij.util.lang.JavaVersion.current(JavaVersion.java:144)
	at com.intellij.openapi.util.SystemInfo.isJavaVersionAtLeast(SystemInfo.java:186)
	at com.intellij.Patches.<clinit>(Patches.java:36)
	... 20 more

make[1]: *** [debian/rules:10: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1131651#10
Date:
2026-07-19 11:13:41 UTC
From:
To:
reassign 1131657 kotlin
affects src:kotlinx-atomicfu
found 1131657 1.3.31+ds1-3
close 1131657 1.3.31+ds1-4
reassign 1131658 kotlin
affects 1131658 src:kotlinx-coroutines
found 1131658 1.3.31+ds1-3
close 1131658 1.3.31+ds1-4
reassign 1131651 kotlin
affects 1131651 src:gradle-kotlin-dsl
found 1131651 1.3.31+ds1-3
close 1131651 1.3.31+ds1-4
# kotlin itself
close 1131656 1.3.31+ds1-4
thanks

This does not happen anymore and it was a bug in kotlin:

bisection finished successfully
  last bad timestamp: 20260708T082311Z
  first good timestamp: 20260708T142341Z
only one package differs: kotlin 1.3.31+ds1-3 -> 1.3.31+ds1-4

(Additionally, kotlin itself builds ok again)