Kotlin construye causando JVM a la falla de segmentación

Tengo un proyecto Kotlin + Java que estamos construyendo usando Gradle. Este es el command que estoy usando:

./gradlew "-Pkotlin.incremental=false" --info clean build javadoc 

Además, mi GRADLE_OPTS está configurado para:

 GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.parallel=false" 

Este es el error que obtengo:

 Could not perform non-incremental comstacktion with Kotlin compile daemon, non-incremental comstacktion in fallback mode will be performed Could not connect to kotlin daemon. Using fallback strategy. # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f3b93fffeee, pid=8, tid=0x00007f3b954fb700 # # JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.121-b13 mixed mode linux-amd64 compressed oops) # Problematic frame: # V [libjvm.so+0x6e2eee] jni_SetStaticIntField+0xee 

Hay un file en el que escribe ( hs_err_pid8.log o algo similar), pero está en una máquina CI y no puedo leerlo porque el CI destruye el contenedor al finalizar la construcción (éxito o falla). ¿Hay algo que pueda intentar o alguna forma de get más diagnósticos, o si alguien se ha enfrentado a este problema?

EDITAR Ok, así que pude get el file que se está generando en el SIGSEGV . Es enorme, así que lo adjunto en un pastebin: https://pastebin.com/Jkvp6uYx

Ahora no estoy seguro de cuáles son las partes relevantes, pero sí veo una acumulación de stack en una parte posiblemente relevante (los loggings hasta ahora nos habían hecho creer que esto tenía algo que ver con las tareas incrementales de Gradle):

  Stack: [0x00007fc7f0ece000,0x00007fc7f0fcf000], sp=0x00007fc7f0fc7b20, free space=998k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x6e2eee] jni_SetStaticIntField+0xee C [libjansi.so+0xf38] Java_org_fusesource_jansi_internal_CLibrary_init+0x108 j org.fusesource.jansi.internal.CLibrary.<clinit>()V+20 v ~StubRoutines::call_stub V [libjvm.so+0x690dd6] JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x1056 V [libjvm.so+0x642be7] InstanceKlass::call_class_initializer_impl(instanceKlassHandle, Thread*)+0xd7 V [libjvm.so+0x6451fc] InstanceKlass::initialize_impl(instanceKlassHandle, Thread*)+0x1ac V [libjvm.so+0x6455c1] InstanceKlass::initialize(Thread*)+0x41 V [libjvm.so+0x7f3c2f] LinkResolver::resolve_field(fieldDescriptor&, KlassHandle, Symbol*, Symbol*, KlassHandle, Bytecodes::Code, bool, bool, Thread*)+0x4df V [libjvm.so+0x7f3e95] LinkResolver::resolve_field_access(fieldDescriptor&, constantPoolHandle, int, Bytecodes::Code, Thread*)+0x245 V [libjvm.so+0x688d15] InterpreterRuntime::resolve_get_put(JavaThread*, Bytecodes::Code)+0x125 j org.jetbrains.kotlin.cli.common.messages.PlainTextMessageRenderer.<clinit>()V+21 v ~StubRoutines::call_stub V [libjvm.so+0x690dd6] JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x1056 V [libjvm.so+0x642be7] InstanceKlass::call_class_initializer_impl(instanceKlassHandle, Thread*)+0xd7 V [libjvm.so+0x6451fc] InstanceKlass::initialize_impl(instanceKlassHandle, Thread*)+0x1ac V [libjvm.so+0x6455c1] InstanceKlass::initialize(Thread*)+0x41 V [libjvm.so+0x64543d] InstanceKlass::initialize_impl(instanceKlassHandle, Thread*)+0x3ed V [libjvm.so+0x6455c1] InstanceKlass::initialize(Thread*)+0x41 V [libjvm.so+0x6854fa] InterpreterRuntime::_new(JavaThread*, ConstantPool*, int)+0x23a j org.jetbrains.kotlin.cli.common.messages.MessageRenderer.<clinit>()V+10 v ~StubRoutines::call_stub V [libjvm.so+0x690dd6] JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x1056 V [libjvm.so+0x642be7] InstanceKlass::call_class_initializer_impl(instanceKlassHandle, Thread*)+0xd7 V [libjvm.so+0x6451fc] InstanceKlass::initialize_impl(instanceKlassHandle, Thread*)+0x1ac V [libjvm.so+0x6455c1] InstanceKlass::initialize(Thread*)+0x41 V [libjvm.so+0x7f3c2f] LinkResolver::resolve_field(fieldDescriptor&, KlassHandle, Symbol*, Symbol*, KlassHandle, Bytecodes::Code, bool, bool, Thread*)+0x4df V [libjvm.so+0x7f3e95] LinkResolver::resolve_field_access(fieldDescriptor&, constantPoolHandle, int, Bytecodes::Code, Thread*)+0x245 V [libjvm.so+0x688d15] InterpreterRuntime::resolve_get_put(JavaThread*, Bytecodes::Code)+0x125 j org.jetbrains.kotlin.cli.common.CLICompiler.execAndOutputXml(Ljava/io/PrintStream;Lorg/jetbrains/kotlin/config/Services;[Ljava/lang/String;)Lorg/jetbrains/kotlin/cli/common/ExitCode;+123 v ~StubRoutines::call_stub V [libjvm.so+0x690dd6] JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x1056 V [libjvm.so+0x99c357] Reflection::invoke(instanceKlassHandle, methodHandle, Handle, bool, objArrayHandle, BasicType, objArrayHandle, bool, Thread*)+0x5d7 V [libjvm.so+0x99fa67] Reflection::invoke_method(oopDesc*, Handle, objArrayHandle, Thread*)+0x147 V [libjvm.so+0x72447b] JVM_InvokeMethod+0x26b J 1277 sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; (0 bytes) @ 0x00007fc7d9405bad [0x00007fc7d9405ac0+0xed] J 1276 C1 sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; (104 bytes) @ 0x00007fc7d940627c [0x00007fc7d9405ee0+0x39c] J 8712 C2 java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; (62 bytes) @ 0x00007fc7da72c92c [0x00007fc7da72c8a0+0x8c] j org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.compileInProcess([Ljava/lang/String;Ljava/lang/String;Lorg/jetbrains/kotlin/compilerRunner/GradleCompilerEnvironment;)Lorg/jetbrains/kotlin/cli/common/ExitCode;+142 j org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.compileWithDaemonOrFallback(Ljava/lang/String;Lorg/jetbrains/kotlin/cli/common/arguments/CommonCompilerArguments;Lorg/jetbrains/kotlin/compilerRunner/GradleCompilerEnvironment;)Lorg/jetbrains/kotlin/cli/common/ExitCode;+520 

Puse mi dinero en un path de classs ennetworkingado. Tiene allí 2 versiones de Kotlin stdlib (1.1.1 y 1.1-M2) y también kotlin-annotation-processing 1.1.0.

Asegúrese de que todo esté en 1.1.1 (o 1.1.2-2 hoy en día)