test_gamma failure on OS X (Leopard) with bsd-port (1.11)
Michael Franz
mvfranz at gmail.com
Mon Sep 7 12:30:33 PDT 2009
Hi,
I have been struggling with this for a few weeks and do not know what is
causing this problem. The ecj build works fine, but when the process runs
the test_gamma the javac fails to startup so that Queens is not compiled.
Thus the running of Queens fails as Queens is not available. I have enabled
a bunch of debugging switches that I have found in the code and force the
JVM to produce a core dump when it fails. When looking at the core file I
am lost trying to figure out what it is telling me. If I just continue
after this error I get another error about the crc-32 from
java.util.ZipEntry. If I copy this image
(openjkd-ecj/build/bsd-i586/j2sdk-image) and use it as my bootstrap JDK I
have the same results, so I think the JDK is built correctly, it just fails
at the test_gamma run.
I can remove the test_gamma test and build a working JDK. Good enough that
I can run NetBeans with it. I would like to figure out why the test_gamma
test fails.
The log before the test starts is:
cd bsd_i486_compiler2/product && ./test_gamma
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/bootstrap/jdk1.6.0
java full version "1.7.0_0-b66"
Launcher state:
debug:on
javargs:on
program name:java
launcher name:java
javaw:off
fullversion:1.7.0_0-b66
dotversion:1.7
ergo_policy:NEVER_ACT_AS_A_SERVER_CLASS_MACHINE
Command line Args:
argv[0] =
'/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/bootstrap/jdk1.6.0/bin/javac'
argv[1] = '-d'
argv[2] = '.'
argv[3] =
'/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/make/test/Queens.java'
JRE path is
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk-ecj/build/bsd-i586/j2sdk-image/jre
jvm.cfg[0] = ->-client<-
name: -client vmType: VM_IF_SERVER_CLASS server_class: -server
jvm.cfg[1] = ->-server<-
jvm.cfg[2] = ->-hotspot<-
name: -hotspot vmType: VM_ALIASED_TO alias: -client
jvm.cfg[3] = ->-classic<-
jvm.cfg[4] = ->-native<-
jvm.cfg[5] = ->-green<-
75 micro seconds to parse jvm.cfg
Default VM: client
Does
`/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk-ecj/build/bsd-i586/j2sdk-image/jre/lib/i386/client/libjvm.dylib'
exist ... yes.
Launcher state:
debug:on
javargs:on
program name:java
launcher name:java
javaw:off
fullversion:1.7.0_0-b66
dotversion:1.7
ergo_policy:NEVER_ACT_AS_A_SERVER_CLASS_MACHINE
Command line Args:
argv[0] =
'/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/bootstrap/jdk1.6.0/bin/javac'
argv[1] = '-d'
argv[2] = '.'
argv[3] =
'/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/make/test/Queens.java'
JRE path is
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk-ecj/build/bsd-i586/j2sdk-image/jre
jvm.cfg[0] = ->-client<-
name: -client vmType: VM_IF_SERVER_CLASS server_class: -server
jvm.cfg[1] = ->-server<-
jvm.cfg[2] = ->-hotspot<-
name: -hotspot vmType: VM_ALIASED_TO alias: -client
jvm.cfg[3] = ->-classic<-
jvm.cfg[4] = ->-native<-
jvm.cfg[5] = ->-green<-
77 micro seconds to parse jvm.cfg
Default VM: client
Does
`/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk-ecj/build/bsd-i586/j2sdk-image/jre/lib/i386/client/libjvm.dylib'
exist ... yes.
JVM path is
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk-ecj/build/bsd-i586/j2sdk-image/jre/lib/i386/client/libjvm.dylib
8376 micro seconds to LoadJavaVM
Checking to set threadStackSize 0
Checking to set threadStackSize 0
Checking to set threadStackSize 0
Checking to set threadStackSize 0
Checking to set threadStackSize 0
Checking to set threadStackSize 0
Checking threadStackSize 0
JavaVM args:
version 0x00010002, ignoreUnrecognized is JNI_FALSE, nOptions is 6
option[ 0] =
'-Denv.class.path=.:/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/bootstrap/jdk1.6.0/jre/lib/rt.jar:/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/bootstrap/jdk1.6.0/jre/lib/i18n.jar'
option[ 1] =
'-Dapplication.home=/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk-ecj/build/bsd-i586/j2sdk-image'
option[ 2] =
'-Djava.class.path=/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk-ecj/build/bsd-i586/j2sdk-image/lib/tools.jar:/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk-ecj/build/bsd-i586/j2sdk-image/classes'
option[ 3] = '-Xms8m'
option[ 4] = '-Dsun.java.command=com.sun.tools.javac.Main -d .
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/make/test/Queens.java'
option[ 5] = '-Dsun.java.launcher=SUN_STANDARD'
Error occurred during initialization of VM 1
java/lang/NoClassDefFoundError: java/lang/Object
./test_gamma: line 11: 68996 Abort trap (core dumped)
${JAVA_HOME}/bin/javac -d .
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/make/test/Queens.java
java version "1.7.0_0"
OpenJDK Runtime Environment (IcedTea7 1.11) (build 1.7.0_0-b66)
OpenJDK Server VM (build 16.0-b06, mixed mode)
Exception in thread "main" java.lang.NoClassDefFoundError: Queens
Caused by: java.lang.ClassNotFoundException: Queens
at java.net.URLClassLoader$2.run(URLClassLoader.java:299)
at java.net.URLClassLoader$2.run(URLClassLoader.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:287)
at java.lang.ClassLoader.loadClass(ClassLoader.java:392)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:334)
at java.lang.ClassLoader.loadClass(ClassLoader.java:332)
There are two threads and here is the back trace of the threads:
#0 0x912c5136 in clock_get_attributes ()
#1 0x912be013 in usleep$NOCANCEL$UNIX2003 ()
#2 0x912d5685 in abort ()
#3 0x015686c5 in os::abort (dump_core=true) at
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/src/os/bsd/vm/os_bsd.cpp:1599
#4 0x01373a9d in vm_abort [inlined] () at
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/src/share/vm/runtime/java.cpp:507
#5 0x01373a9d in vm_exit_during_initialization (ex={<Handle> = {_handle =
0x25062270}, <No data fields>}, message=0x803208 "java/lang/Object") at
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/src/share/vm/runtime/java.cpp:551
#6 0x012c4bf3 in Exceptions::special_exception (thread=0x801800,
file=0x170b434
"/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/src/share/vm/classfile/systemDictionary.cpp",
line=136, h_name={<Handle> = {_handle = 0x1726574}, <No data fields>},
message=0x108bc0 "?\003") at
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/src/share/vm/utilities/exceptions.cpp:82
#7 0x012c5689 in Exceptions::_throw_msg (thread=0x801800, file=0x170b434
"/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/src/share/vm/classfile/systemDictionary.cpp",
line=136, h_name={<Handle> = {_handle = 0xe6e54}, <No data fields>},
message=0x803208 "java/lang/Object", h_loader={_handle = 0x0},
h_protection_domain={_handle = 0xb00509f8}) at
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/src/share/vm/utilities/exceptions.cpp:134
#8 0x012c576e in Exceptions::_throw_msg (thread=0x801800, file=0x170b434
"/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/src/share/vm/classfile/systemDictionary.cpp",
line=136, name=0x25062270, message=0x803208 "java/lang/Object") at
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/src/share/vm/utilities/exceptions.cpp:156
#9 0x01634ddc in ~ResourceMark [inlined] () at resourceArea.hpp:138
#10 0x01634ddc in SystemDictionary::handle_resolution_exception
(class_name={<Handle> = {_handle = 0x1b7a8a8}, <No data fields>},
class_loader={_handle = 0x170b434}, protection_domain={_handle = 0x88},
throw_error=112, klass_h={<Handle> = {_handle = 0x803208}, <No data
fields>}, __the_thread__=0x801800) at
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/src/share/vm/classfile/systemDictionary.cpp:127
#11 0x0163a743 in SystemDictionary::resolve_or_fail () at
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/src/share/vm/classfile/systemDictionary.cpp:111
#12 0x0163a743 in SystemDictionary::resolve_or_fail () at
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/src/share/vm/classfile/systemDictionary.cpp:148
#13 0x0163a743 in SystemDictionary::initialize_wk_klass (id=24273732,
init_opt=0, __the_thread__=0x801800) at
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/src/share/vm/classfile/systemDictionary.cpp:1880
#14 0x0163a8e9 in SystemDictionary::initialize_preloaded_classes
(__the_thread__=0x1) at
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/src/share/vm/classfile/systemDictionary.cpp:1896
#15 0x0163b129 in SystemDictionary::initialize (__the_thread__=0x801800) at
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/src/share/vm/classfile/systemDictionary.cpp:1851
#16 0x0168474f in Universe::genesis (__the_thread__=0x801800) at
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/src/share/vm/memory/universe.cpp:288
#17 0x01685821 in universe2_init () at
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/src/share/vm/memory/universe.cpp:899
#18 0x01341b52 in init_globals () at
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/src/share/vm/runtime/init.cpp:102
#19 0x0166aa1e in Threads::create_vm (args=0x801800, canTryAgain=0xb0050e5f)
at
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/src/share/vm/runtime/thread.cpp:2900
#20 0x013815f2 in JNI_CreateJavaVM (vm=0xb0050f4c, penv=0xb0050f48,
args=0xffffffff) at
/Volumes/Data/Users/mfranz/developer/icedtea/icedtea-1.11-AppleJDK/openjdk/hotspot/src/share/vm/prims/jni.cpp:3281
#21 0x00002bec in JavaMain (_args=0x3c) at
../../../src/share/bin/java.c:1133
#22 0x9121a155 in _pthread_start ()
#23 0x9121a012 in thread_start ()
and the other:
#0 0x911f046e in nanosleep$UNIX2003 ()
#1 0x000075eb in ContinueInNewThread0 (continuation=0x2b40 <JavaMain>,
stack_size=-5763182555964637184, args=0xbfffb090) at
../../../src/solaris/bin/java_md.c:1307
#2 0x00005310 in JLI_Launch (argc=15208051, argv=0x0, jargc=2,
jargv=0x141f0, appclassc=2, appclassv=0x141e8, fullversion=0xbfffa25c
"?S#?\003\017", dotversion=0x0, pname=0x1286a "java", lname=0x911f046e
"s\016?", javaargs=0 '\0', cpwildcard=0 '\0', javaw=0 '\0', ergo=1) at
../../../src/share/bin/java.c:1910
#3 0x0000e2dc in main (argc=4, argv=0x100a08) at
../../src/share/bin/main.c:104
ZipEntry Error:
BUILD FAILED
java.lang.IllegalArgumentException: invalid entry crc-32
at java.util.zip.ZipEntry.setCrc(ZipEntry.java:186)
at
org.apache.tools.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:300)
at org.apache.tools.zip.ZipFile.<init>(ZipFile.java:152)
at
org.apache.tools.ant.types.ZipScanner.fillMapsFromArchive(ZipScanner.java:70)
at
org.apache.tools.ant.types.ArchiveScanner.scanme(ArchiveScanner.java:319)
at
org.apache.tools.ant.types.ArchiveScanner.getResource(ArchiveScanner.java:260)
at
org.apache.tools.ant.util.ResourceUtils.selectOutOfDateSources(ResourceUtils.java:162)
at
org.apache.tools.ant.util.ResourceUtils.selectOutOfDateSources(ResourceUtils.java:112)
at
org.apache.tools.ant.util.ResourceUtils.selectOutOfDateSources(ResourceUtils.java:84)
at org.apache.tools.ant.taskdefs.Zip.getResourcesToAdd(Zip.java:1177)
at org.apache.tools.ant.taskdefs.Zip.getResourcesToAdd(Zip.java:1012)
at org.apache.tools.ant.taskdefs.Jar.getResourcesToAdd(Jar.java:737)
at org.apache.tools.ant.taskdefs.Zip.executeMain(Zip.java:463)
at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java:416)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:623)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20090907/9f0d7bcd/attachment.html
More information about the distro-pkg-dev
mailing list