java, javac crash on MacOSX
Andrei Dmitriev
Andrei.Dmitriev at Sun.COM
Tue Jun 30 03:04:19 PDT 2009
Hi Greg,
thanks for the idea!
I verified that I have latest source...
Seem we found the reason now - seem hotspot has never actually built
because of some g++ specifics so it just picked soylatte up as a binary
or as a library.
Thanks!
Andrei
Greg Lewis wrote:
> On Mon, Jun 29, 2009 at 03:59:28PM -0400, Kurt Miller wrote:
>
>> Hi Andrei,
>>
>> Hmm, it would be helpful to do a debug build. I see you used
>> VARIANT=DBG, but doesn't appear to be working as expected. Can
>> you rebuild with this for your last line of the script?
>>
>> time -p make debug_build $* 2>&1 | tee $log
>>
>> That will get some debug info into libjvm.dylib and hopefully
>> we can see the function and line number that is crashing.
>>
>
> FWIW, pulling in last night's update would be a sensible first step then
> so that the debug info will correspond to the current source. There is
> also a small chance that the bug will have been fixed by the sync.
>
>
>> Andrei Dmitriev wrote:
>>
>>> Kurt,
>>>
>>> yep, I used these variables since that time because noticed that they
>>> don't really affect the build process itself - I got some binaries and
>>> never tried how they work.
>>> Now I see that variables... do affect JDK somehow. :(
>>> So here is the script:
>>> --------------------------------
>>> #!/bin/bash
>>>
>>>
>>> export ALT_BOOTDIR=/export/devtools/binary.plugs/soylatte16-i386-1.0.3/
>>> export ANT_HOME=/usr/share/ant
>>> export NO_DOCS=true
>>> export HOTSPOT_BUILD_JOBS=1;
>>> export ALT_FREETYPE_HEADERS_PATH=/usr/X11R6/include;
>>> export ALT_FREETYPE_LIB_PATH=/usr/X11R6/lib;
>>> export ALT_JIBX_LIBS_PATH=/export/devtools/jibx/lib/
>>>
>>> log=bsdport.build.log
>>>
>>> time -p make VARIANT=DBG $* 2>&1 | tee $log
>>> --------------------------------
>>> and it leads to the same error:
>>>
>>> make[7]:
>>> `/Users/dav/bsd-port-reference/build/bsd-i586/hotspot/outputdir/bsd_i486_compiler2/product/../generated/sa-jdi.jar'
>>> is up to date.
>>> make[6]: `incls/_precompiled.incl.gch' is up to date.
>>> if [ -d /Users/dav/bsd-port-reference/hotspot/agent -a "x86" != "ia64" ]
>>> ; then \
>>> make -f vm.make libsaproc.dylib; \
>>> fi
>>> make[7]: `libsaproc.dylib' is up to date.
>>> All done.
>>> cd bsd_i486_compiler2/product && ./test_gamma
>>> java full version "1.6.0_03-p3-landonf_19_aug_2008_14_55-b00"
>>> #
>>> # A fatal error has been detected by the Java Runtime Environment:
>>> #
>>> # SIGBUS (0xa) at pc=0x00e8d50f, pid=40704, tid=2685097760
>>> #
>>> # JRE version: 6.0_03
>>> # Java VM: OpenJDK Server VM (16.0-b03 mixed mode bsd-x86 )
>>> # Problematic frame:
>>> # V [libjvm.dylib+0xb150f]
>>> #
>>> # An error report file with more information is saved as:
>>> #
>>> /Users/dav/bsd-port-reference/build/bsd-i586/hotspot/outputdir/bsd_i486_compiler2/product/hs_err_pid40704.log
>>>
>>> #
>>> # If you would like to submit a bug report, please visit:
>>> # http://java.sun.com/webapps/bugreport/crash.jsp
>>> #
>>> ./test_gamma: line 12: 40704 Abort trap ./${gamma:-gamma}
>>> -Xbatch -showversion Queens < /dev/null
>>> make[4]: *** [product] Error 134
>>> make[3]: *** [generic_build2] Error 2
>>> make[2]: *** [product] Error 2
>>> make[1]: *** [hotspot-build] Error 2
>>> make: *** [build_product_image] Error 2
>>> real 41.36
>>> user 32.39
>>> sys 15.49
>>>
>>> Also verified that JAVA_HOME, ALT_HOTSPOT_IMPORT_PATH,
>>> ALT_JDK_IMPORT_PATH not set.
>>> I'm building from the bsd-port/ and bsd-port/hotspot/ folders with
>>> similar results listed above. :(
>>>
>>> Thanks,
>>> Andrei
>>>
>>>
>>>
>>> Kurt Miller wrote:
>>>
>>>> Andrei Dmitriev wrote:
>>>>
>>>>
>>>>> Hi folks,
>>>>>
>>>>> I'm experiencing a crash with the latest javac and java build on MacOSX:
>>>>> Any ideas what's going on there? I think it's not an issue with the
>>>>> latest merge because I've seen that crash that week too.
>>>>>
>>>>> ../build/bsd-i586/bin/javac
>>>>> #
>>>>> # An unexpected error has been detected by Java Runtime Environment:
>>>>> #
>>>>> # Internal Error (554E534146450E43505004DA), pid=97421, tid=0xb0051000
>>>>> #
>>>>> # Java VM: Java HotSpot(TM) Client VM
>>>>> (1.6.0_03-p3-landonf_19_aug_2008_14_55-b00 mixed mode)
>>>>>
>>>>>
>>>> ^^^^^^^^^^^^^^^^^^^^^^
>>>>
>>>> Hi Andrei,
>>>>
>>>> That looks like the soylatte hotspot not the bsd-port/openjdk7
>>>> hotspot. Did you build with ALT_HOTSPOT_IMPORT_PATH?
>>>>
>>>> ALT_HOTSPOT_IMPORT_PATH and ALT_JDK_IMPORT_PATH can not point
>>>> to a soylatte build. Leave them unset to build bsd-port. See
>>>> the following email for an example of how to get a clean build
>>>> of bsd-port on OS X:
>>>>
>>>> http://mail.openjdk.java.net/pipermail/bsd-port-dev/2009-June/000735.html
>>>>
>>>> Regards,
>>>> -Kurt
>>>>
>>>>
>
>
More information about the bsd-port-dev
mailing list