RFR: 7113349 JDK8 port to macosx

Michael McMahon michael.x.mcmahon at oracle.com
Fri Mar 2 01:28:44 PST 2012


I can't reproduce it. It must be something related to the boot JDK you 
are using.
Is it a complete jdk7 image?

I do get a (different) error if I set DYLD_LIBRARY_PATH in the environment
Are you actually setting this in your environment?
I notice the sanity check isn't looking for this, which it should on Mac.

- Michael

On 02/03/12 02:42, John Rose wrote:
> 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