RFR: 7113349 JDK8 port to macosx

John Rose john.r.rose at oracle.com
Thu Mar 1 18:42:10 PST 2012


On Mar 1, 2012, at 1:56 PM, Stuart Marks wrote:

> cd bsd_amd64_compiler2/product && ./test_gamma
> Error occurred during initialization of VM
> java.lang.NullPointerException
>        at java.util.Hashtable.put(Hashtable.java:432)
>        at java.lang.System.initProperties(Native Method)
>        at java.lang.System.initializeSystemClass(System.java:1115)

A couple of data points:

The NPE is because libjava.dylib is handing a null value to Hashtable, for the key "user.language", in System.c.

This happens also for me, using a Java 7 libjava.dylib.  The bug is oddly sensitive to the setting of DYLD_LIBRARY_PATH, and something about the test_gamma script makes it worse.  See demo below.  The bug seems to be in the test_gamma script, but I haven't figured out how it works.

— John

--------
	cd build/macosx-amd64/hotspot/outputdir/bsd_amd64_compiler2/product
--------
	DYLD_PRINT_LIBRARIES=1 DYLD_LIBRARY_PATH=.:/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib: ./gamma -Xbootclasspath/p:$METH_BUILD/classes -Xbatch -showversion Queens 2>&1 | egrep 'jre/lib|92'
dyld: loaded: /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/libverify.dylib
dyld: loaded: /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/libjava.dylib
dyld: loaded: /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/libzip.dylib
dyld: loaded: /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/libJPEG.dylib
--------
	DYLD_PRINT_LIBRARIES=1 DYLD_LIBRARY_PATH=.: ./gamma -Xbootclasspath/p:$METH_BUILD/classes -Xbatch -showversion Queens 2>&1 | egrep 'jre/lib|92'
dyld: loaded: /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/libverify.dylib
dyld: loaded: /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/libjava.dylib
dyld: loaded: /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/libzip.dylib
92. A8 B4 C1 D3 E6 F2 G7 H5 
--------



More information about the macosx-port-dev mailing list