JDK-6569243 : Crash in javac while building JDK7, after sync with 7.0-b14
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Not an Issue
  • OS: linux
  • CPU: x86
  • Submitted: 2007-06-13
  • Updated: 2011-01-19
  • Resolved: 2007-06-29
Related Reports
Relates :  
Relates :  
Description
I have just updated my workspace with the changes from JDK7.0-b14 and tried to rebuild it on linux. The build process crashed while processing the directory make/sun/javac/recompile/library:

--------

# Running javac:
../../../../../build/linux-i586/bin/javac -J-XX:ThreadStackSize=768 -J-client -J-Xmx755m -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -classpath ../../../../../build/linux-i586/tmp/java/java.lang/library/newclasses:../../../../../src/share/classes -bootclasspath ../../../../../build/linux-i586/lib/jce.jar -sourcepath ../../../../../build/linux-i586/gensrc:../../../../../src/solaris/classes:../../../../../src/share/classes:../../../../../src/closed/solaris/classes:../../../../../src/closed/share/classes -d ../../../../../build/linux-i586/tmp/java/java.lang/library/newclasses -encoding ascii -source 1.5 -target 5 @../../../../../build/linux-i586/tmp/java/java.lang/.classes.list
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  Internal Error (554E534146450E43505004DA), pid=7561, tid=16386
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_01-b06 mixed mode)
# An error report file with more information is saved as hs_err_pid7561.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
/bin/sh: line 1:  7561 Aborted                 ../../../../../build/linux-i586/bin/javac -J-XX:ThreadStackSize=768 -J-client -J-Xmx755m -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -classpath "../../../../../build/linux-i586/tmp/java/java.lang/library/newclasses:../../../../../src/share/classes" -bootclasspath "../../../../../build/linux-i586/lib/jce.jar" -sourcepath "../../../../../build/linux-i586/gensrc:../../../../../src/solaris/classes:../../../../../src/share/classes:../../../../../src/closed/solaris/classes:../../../../../src/closed/share/classes" -d ../../../../../build/linux-i586/tmp/java/java.lang/library/newclasses -encoding ascii -source 1.5 -target 5 @../../../../../build/linux-i586/tmp/java/java.lang/.classes.list
gmake[5]: *** [.compile.classlist] Error 134
gmake[5]: Leaving directory `/export/art/ws/dolphin/make/sun/javac/recompile/library'
gmake[4]: *** [all] Error 1
gmake[4]: Leaving directory `/export/art/ws/dolphin/make/sun/javac/recompile'
gmake[3]: *** [all] Error 1
gmake[3]: Leaving directory `/export/art/ws/dolphin/make/sun/javac'
gmake[2]: *** [all] Error 1
gmake[2]: Leaving directory `/export/art/ws/dolphin/make/java/javac'
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/export/art/ws/dolphin/make/java'
gmake: *** [all] Error 1
gmake: Leaving directory `/export/art/ws/dolphin/make'

--------

HotSpot log file is placed into the corresponding directory (also attached to the bug report).

The same situation is with another my workspace and workspaces of other AWT members. I tried to change the bootdir to 5u11, 6u1 or 7.0-b10, but always got a crash. I only was able to build the workspace with USE_ONLY_BOOTDIR_TOOLS flag set to TRUE, but the build was broken (java -version crashed). After a build on windows platform, the build is also not workable.

Comments
SUGGESTED FIX Make sure ALT_JDK_IMPORT_PATH refers to a jdk7 newer than build 14.
19-09-2007

EVALUATION This seems to be connected to 6525802. Changes to the sun.misc.Unsafe interfaces.
31-08-2007

EVALUATION This is not a bug, but rather class files incompatibility between different Hotspot and JDK. JDK build works just fine with latest hotspot.
29-06-2007

EVALUATION There is some question as to whether this is a jdk6 or jdk7 VM. This needs to be clarified.
15-06-2007