powered by Jive Software

Last Openfire & FreeBSD 10.0

Hello All! I have some problem about subj:

Install from freebsd ports:

(pts/3)[root@server:/usr/ports/net-im/openfire]# make
===>  License APACHE20 accepted by the user
===>  Found saved configuration for openfire-3.9.1,1
===>   openfire-3.9.1,1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by openfire-3.9.1,1 for building
===>  Extracting for openfire-3.9.1,1
=> SHA256 Checksum OK for openfire_src_3_9_1.zip.
===>   openfire-3.9.1,1 depends on file: /usr/local/bin/unzip - found
===>  Patching for openfire-3.9.1,1
===>   Converting DOS text files to UNIX text files
===>  Applying FreeBSD patches for openfire-3.9.1,1
(cd /usr/ports/net-im/openfire/work/openfire_src && /bin/mv  ./src/plugins/jingleNodes/src/i18n/jingleNodes_i18n.properties  ./src/plugins/jingleNodes/src/i18n/jinglenodes_i18n.properties)
===>   openfire-3.9.1,1 depends on file: /usr/local/openjdk6/bin/java - found
===>   openfire-3.9.1,1 depends on file: /usr/local/bin/ant - found
===>  Configuring for openfire-3.9.1,1
===>  Building for openfire-3.9.1,1
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/assembler_x86.cpp:1138
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/usr/ports/java/openjdk6/work/hotspot/src/cpu/x86/vm/assembler_x86.cpp:1138), pid=66006, tid=100409
#  assert(is_simm32(disp)) failed: must be 32bit offset (call2)
#
# JRE version: 6.0_32-b30
# Java VM: OpenJDK Client VM (23.25-b01-jvmg mixed mode, sharing bsd-x86 )
# Core dump written. Default location: /usr/ports/net-im/openfire/work/openfire_src/build/core or core.66006
#
# An error report file with more information is saved as:
# /usr/ports/net-im/openfire/work/openfire_src/build/hs_err_pid66006.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#
Current thread is 100409
Dumping core ...
*** Signal 6 Stop.
make[1]: stopped in /usr/ports/net-im/openfire
*** Error code 1 Stop.
make: stopped in /usr/ports/net-im/openfire

I tried to do backtrace:

(pts/3)[root@server:/usr/ports/net-im/openfire/work/openfire_src/build]# gdb /usr/local/bin/java java.core
GNU gdb 6.1.1 [FreeBSD]
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 "i386-marcel-freebsd"...
Core was generated by `java'.
Program terminated with signal 6, Aborted.
Reading symbols from /lib/libz.so.6...done.
Loaded symbols for /lib/libz.so.6
Reading symbols from /lib/libthr.so.3...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/local/openjdk6/jre/lib/i386/client/libjvm.so...done.
Loaded symbols for /usr/local/openjdk6/jre/lib/i386/client/libjvm.so
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/lib/libc++.so.1...done.
Loaded symbols for /usr/lib/libc++.so.1
Reading symbols from /lib/libcxxrt.so.1...done.
Loaded symbols for /lib/libcxxrt.so.1
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /usr/local/openjdk6/jre/lib/i386/libverify.so...done.
Loaded symbols for /usr/local/openjdk6/jre/lib/i386/libverify.so
Reading symbols from /usr/local/openjdk6/jre/lib/i386/libjava.so...done.
Loaded symbols for /usr/local/openjdk6/jre/lib/i386/libjava.so
Reading symbols from /usr/local/openjdk6/jre/lib/i386/libzip.so...done.
Loaded symbols for /usr/local/openjdk6/jre/lib/i386/libzip.so
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x2810b51b in thr_kill () from /lib/libc.so.7
[New Thread 28803300 (LWP 100409/java)]
[New Thread 28803080 (LWP 101179/java)]
(gdb) backtrace
#0  0x2810b51b in thr_kill () from /lib/libc.so.7
#1  0x28099b1b in raise () from /lib/libthr.so.3
#2  0x281d88a6 in abort () from /lib/libc.so.7
#3  0x29147e73 in os::abort () at /usr/ports/java/openjdk6/work/hotspot/src/os/bsd/vm/os_bsd.cpp:1878
#4  0x2927e6d2 in VMError::report_and_die (this=0xbf9fd730) at /usr/ports/java/openjdk6/work/hotspot/src/share/vm/utilities/vmError.cpp:1010
#5  0x28ea6e9f in report_vm_error (file=<value optimized out>, line=<value optimized out>)
    at /usr/ports/java/openjdk6/work/hotspot/src/share/vm/utilities/debug.cpp:220
#6  0x28cc5e48 in Assembler::call_literal (this=0x2880d628, entry=<value optimized out>)
    at /usr/ports/java/openjdk6/work/hotspot/src/cpu/x86/vm/assembler_x86.cpp:1138
#7  0x28ce7e11 in MacroAssembler::stop (this=0x2880d628, msg=0xbf9fd828 "\215")
    at /usr/ports/java/openjdk6/work/hotspot/src/cpu/x86/vm/assembler_x86.cpp:6107
#8  0x291dd6d9 in StubGenerator::generate_forward_exception (this=0xbf9fd9b0)
    at /usr/ports/java/openjdk6/work/hotspot/src/cpu/x86/vm/stubGenerator_x86_32.cpp:414
#9  0x291dd3cf in StubGenerator::generate_initial (this=0xbf9fda58) at /usr/ports/java/openjdk6/work/hotspot/src/cpu/x86/vm/stubGenerator_x86_32.cpp:2294
#10 0x291dd318 in StubGenerator_generate (code=0x0) at /usr/ports/java/openjdk6/work/hotspot/src/cpu/x86/vm/stubGenerator_x86_32.cpp:2355
#11 0x291ed5c6 in StubRoutines::initialize1 () at /usr/ports/java/openjdk6/work/hotspot/src/share/vm/runtime/stubRoutines.cpp:150
#12 0x28f4259f in init_globals () at /usr/ports/java/openjdk6/work/hotspot/src/share/vm/runtime/init.cpp:100
#13 0x29238a9e in Threads::create_vm (args=<value optimized out>) at /usr/ports/java/openjdk6/work/hotspot/src/share/vm/runtime/thread.cpp:3220
#14 0x28fca315 in JNI_CreateJavaVM (penv=0xbf9fdf58, args=0xbf9fde48) at /usr/ports/java/openjdk6/work/hotspot/src/share/vm/prims/jni.cpp:5133
#15 0x080501bc in InitializeJVM (pvm=0xbf9fdf5c, penv=0xbf9fdf58, ifn=0xbf9fdf60) at ../../../../src/share/bin/java.c:1257
#16 0x0804f2c6 in JavaMain (_args=0xbfbfc958) at ../../../../src/share/bin/java.c:388
#17 0x280946d2 in pthread_create () from /lib/libthr.so.3
#18 0x00000000 in ?? ()
(gdb)

Please help deal with the problem

Try to use a newer JRE. It is likely a bug in the JRE when it fails like this.

I agree with LG, looks like you are using OpenJDK instead of Oracle’s JDK, and also you are using java 6 instead of java 7. Try switching your java version on your machine, and re-try to compile.

Thanks All for the tips, I actually use openjdk6 version from freebsd ports.
Problem povilas relatively recently, after one of the software updates.
Established an interesting fact, if you install openjdk from pkg-repository, then openfire compiled successfully,
but it is a solution I do not like, so I’ll try to update to openjdk7.
Perhaps this is a problem with dependencies openjdk6, but I tried to reinstall the dependencies and it has not successfully.