Apache OpenOffice (AOO) Bugzilla – Issue 50943
64bit: testtools do not build (--with-java)
Last modified: 2006-06-06 08:08:59 UTC
When Java is turned on on AMD64, testtools do not build, because regcomp SIGSEGVs: regcomp -register -br ../../unxlngx4.pro/misc/bridgetest/bootstrap.rdb -r ../../unxlngx4.pro/lib/uno_services.rdb -c \ file:///home/oo/BuildDir/ooo_ooo64bit02_src/testtools/source/bridgetest/../../unxlngx4.pro/class/testComponent.jar \ -classpath .:../../unxlngx4.pro/class:/opt/java/jre/lib/rt.jar:.:/home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/bin/java_uno.jar:/home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/bin/jurt.jar:/home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/bin/ridl.jar Segmentation fault dmake: Error code 139, while making '../../unxlngx4.pro/lib/uno_services.rdb' dmake: '../../unxlngx4.pro/lib/uno_services.rdb' removed. '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /home/oo/BuildDir/ooo_ooo64bit02_src/testtools/source/bridgetest dmake: Error code 1, while making 'build_all' '---* tg_merge.mk *---'
Java is 1.4.2_02 from Blackdown, installed from j2sdk-1.4.2-02-linux-amd64.bin.
I updated to SL9.3, gcc 3.4.1 and JDK 1.4.2 for amd64 from Blackdown: oo@amd64:~/BuildDir/ooo_ooo64bit02_src/testtools/source/bridgetest> gdb regcomp.bin GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-suse-linux"...Using host libthread_db library "/lib64/tls/libthread_db.so.1". (gdb) run -register -br ../../unxlngx4.pro/misc/bridgetest/bootstrap.rdb -r ../../unxlngx4.pro/lib/uno_services.rdb -c \ file:///home/oo/BuildDir/ooo_ooo64bit02_src/testtools/source/bridgetest/../../unxlngx4.pro/class/testComponent.jar \ -classpath .:../../unxlngx4.pro/class:/opt/java/jre/lib/rt.jar:.:/home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/bin /java_uno.jar:/home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/bin/jurt.jar:/home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/bin/ridl.jar Starting program: /home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/bin/regcomp.bin -register -br ../../unxlngx4.pro/misc/bridgetest/bootstrap.rdb -r ../../unxlngx4.pro/lib/uno_services.rdb -c file:///home/oo/BuildDir/ooo_ooo64bit02_src/testtools/source/bridgetest/../../unxlngx4.pro/class/testComponent.jar -classpath .:../../unxlngx4.pro/class:/opt/java/jre/lib/rt.jar:.:/home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/bin/java_uno.jar:/home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/bin/jurt.jar:/home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/bin/ridl.jar using loader com.sun.star.loader.Java2 [Java framework] Using configuration file file:///home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/lib/jvmfwk3rc [Java framework] Using bootstrap parameter UNO_JAVA_JFW_ENV_JREHOME with JAVA_HOME = /usr/lib/jvm/java. [Java framework] Using bootstrap parameter UNO_JAVA_JFW_VENDOR_SETTINGS = file:///home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/lib/javavendors.xml. [Java framework] sunjavaplugin: Testing class SunVersion succeeded.[Java framework] sunjavaplugin: Using configuration file file:///home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/lib/sunjavapluginrc [Java framework] Executing: file:///usr/lib/jvm/java-1.4.2-sun-1.4.2.06/bin/java. [Java framework] Java executed successfully. [Java framework] Java wrote to stderr:" ". [Java framework] Executing: file:///usr/lib/jvm/java-1.4.2-sun-1.4.2.06/bin/java. [Java framework] Java executed successfully. [Java framework] Java wrote to stderr:" ". [Java framework] Executing: file:///usr/lib/jvm/java-1.4.2-sun-1.4.2.06/bin/java. [Java framework] Java executed successfully. [Java framework] Java wrote to stderr:" ". [Java framework] Executing: file:///usr/lib/jvm/java-1.4.2-sun-1.4.2.06/bin/java. [Java framework] Java executed successfully. [Java framework] Java wrote to stderr:" ". [Java framework] The JRE specified by the bootstrap variable UNO_JAVA_JFW_JREHOME or UNO_JAVA_JFW_ENV_JREHOME could not be recognized. Check the values and make sure that you use a plug-in library that can recognize that JRE.Error: File /home/oo/BuildDir/ooo_ooo64bit02_src/jvmfwk/source/framework.cxx, Line 781: [Java framework] The JRE specified by the bootstrap variable UNO_JAVA_JFW_JREHOME or UNO_JAVA_JFW_ENV_JREHOME could not be recognized. Check the values and make sure that you use a plug-in library that can recognize that JRE. Backtrace: [0] /home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/lib/libuno_sal.so.3: osl_assertFailedLine+0xe6 Backtrace: [1] /home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/lib/libjvmfwk.so.3: jfw_getSelectedJRE+0x3fc Backtrace: [2] /home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/lib/libjvmfwk.so.3: jfw_startVM+0x393 Backtrace: [3] /home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/lib/javavm.uno.so: ???+0xc0d6 Backtrace: [4] /home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/lib/javaloader.uno.so: ???+0x3c2e Backtrace: [5] /home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/lib/javaloader.uno.so: ???+0x5690 Backtrace: [6] /home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/lib/implreg.uno.so: ???+0x10096 Backtrace: [7] /home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/lib/implreg.uno.so: ???+0xe937 Backtrace: [8] /home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/bin/regcomp.bin: _ZN4DoItclERKN3rtl8OUStringE+0x6b Backtrace: [9] /home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/bin/regcomp.bin: _ZN4_STL8for_eachIPN3rtl8OUStringE4DoItEET0_T_S6_S5_+0x2f Backtrace: [10] /home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/bin/regcomp.bin: sal_main+0x7b7 Backtrace: [11] /home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/bin/regcomp.bin: main+0x27 Backtrace: [12] /lib64/tls/libc.so.6: __libc_start_main+0xea Backtrace: [13] /home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/bin/regcomp.bin: __gxx_personality_v0+0x5a register component 'file:///home/oo/BuildDir/ooo_ooo64bit02_src/testtools/source/bridgetest/../../unxlngx4.pro/class/testComponent.jar' in registry '../../unxlngx4.pro/lib/uno_services.rdb' failed! error (RuntimeException): [JavaVirtualMachine]:An unexpected error occurred while starting Java! Program exited with code 01. (gdb) javaldx output: oo@amd64:~/BuildDir/ooo_ooo64bit02_src/testtools/source/bridgetest> javaldx [Java framework] Using configuration file file:///home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/lib/jvmfwk3rc [Java framework] Using bootstrap parameter UNO_JAVA_JFW_ENV_JREHOME with JAVA_HOME = /opt/java. [Java framework] Using bootstrap parameter UNO_JAVA_JFW_VENDOR_SETTINGS = file:///home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/lib/javavendors.xml. [Java framework] sunjavaplugin: Testing class SunVersion succeeded.[Java framework] sunjavaplugin: Using configuration file file:///home/oo/BuildDir/ooo_ooo64bit02_src/solver/680/unxlngx4.pro/lib/sunjavapluginrc [Java framework] Executing: file:///opt/j2sdk1.4.2/bin/java. [Java framework] Java executed successfully. [Java framework] Java wrote to stderr:" ". [Java framework] sunjavaplugin.so: Detected another JRE: file:///opt/j2sdk1.4.2 at: file:///opt/java. [Java framework] sunjavaplugin.so: JRE found again (detected before): file:///opt/j2sdk1.4.2. [Java framework] sunjavaplugin.so: JRE found again (detected before): file:///opt/j2sdk1.4.2. /opt/j2sdk1.4.2/jre/lib/amd64/client:/opt/j2sdk1.4.2/jre/lib/amd64/native_threads:/opt/j2sdk1.4.2/jre/lib/amd64 oo@amd64:~/BuildDir/ooo_ooo64bit02_src/testtools/source/bridgetest>
/home/oo/BuildDir/ooo_ooo64bit02_src/jvmfwk/source/framework.cxx, Line 781: [Java framework] The JRE specified by the bootstrap variable UNO_JAVA_JFW_JREHOME or UNO_JAVA_JFW_ENV_JREHOME could not be recognized. Check the values and make sure that you use a plug-in library that can recognize that JRE. The errorcode there is 13...
This is32bit/64bit Java mixup. [Java framework] Executing: file:///usr/lib/jvm/java-1.4.2-sun-1.4.2.06/bin/java. This is 32bit java /opt/java is 64bit Java. Works if I do not mix them ;-)
Closing invaid issue.