1
當我嘗試使用我的Jenkins服務器中的Gradle編譯一些Java代碼時,我一直在Java中發生崩潰。任何人都知道任何可能的解似乎libzip有一些問題...Jenkins Java編譯導致Java崩潰
我正在使用Ubuntu服務器。完整的錯誤報告:http://pastebin.com/dnmFTbLg
:reobf#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0x7) at pc=0x00007f54df18218d, pid=17194, tid=140002619074304
#
# JRE version: 7.0_25-b30
# Java VM: OpenJDK 64-Bit Server VM (23.7-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libzip.so+0x518d] Java_java_util_zip_ZipFile_getZipMessage+0x114d
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /var/lib/jenkins/workspace/ICBM/hs_err_pid17194.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# https://bugs.launchpad.net/ubuntu/+source/openjdk-7/
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
有誰知道爲什麼Java在嘗試執行編譯時崩潰?
從堆棧跟蹤看起來像''gradle' build - 'net.minecraftforge.gradle.tasks.user.reobf.ObfArtifact.applySpecialSource(Ljava/IO /文件; Ljava/IO /文件; Ljava/IO /文件;)'。什麼是你的'gradle'構建,Jenkins正在調用它的命令是什麼?另外,如果你手動在同一個環境中運行相同的命令,你會得到同樣的錯誤嗎? –
這個錯誤似乎是由一個錯誤的zip實現引起的,它在本地代碼中崩潰而不是給你一個適當的異常。如果你谷歌'Java_java_util_zip_ZipFile_getZipMessage + 0x114d',你會發現有幾個人提到無效的zip文件或訪問尚未完成的文件。我會嘗試如果更新JDK幫助,然後檢查罐子是否完好無損,也許有一個邪惡的無效字節。 – zapl