Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jan 2012 16:46:48 -0500
From:      Pierre-Luc Drouin <pldrouin@pldrouin.net>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Problems with libz since libz.so.5 is gone...
Message-ID:  <CANT0rcv57gnpYie4irwQuepgNzHdukB_iYFUUWm%2BukLyYvdJgg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

so various ports, in particular the java ports, are giving me headaches
since /lib/libz.so.5 was replaced by /lib/libz.so.6. I managed to update
most of my ports, but the binary java ports, such as diablo-jdk16, are now
installing broken binary files. Even if I put an entry such as

libz.so.4 libz.so.6

in /etc/libmap.conf

javac --version
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGBUS (0xa) at pc=0x2811918c, pid=99059, tid=0x28404900
#
# Java VM: Diablo Java HotSpot(TM) Client VM (10.0-b23 mixed mode, sharing
bsd-x86)
# Problematic frame:
# C  [libc.so.7+0x4d18c]  vsnprintf+0x1c
#
# An error report file with more information is saved as:
# /usr/ports/graphics/xv/hs_err_pid99059.log
#
# Please submit bug reports to freebsd-java@FreeBSD.org
#
Abort


cat hs_err_pid99059.log
---------------  T H R E A D  ---------------

Current thread (0x2863d400):  JavaThread "Unknown thread" [_thread_in_vm,
id=675301632, stack(0xbf5ff000,0xbf9ff000)]

siginfo:si_signo=SIGBUS: si_errno=0, si_code=3 (BUS_OBJERR),
si_addr=0x2811918c

Registers:
EAX=0xbf9fe32c, EBX=0x281d0884, ECX=0x28ba535b, EDX=0x00000100
ESP=0xbf9fe14c, EBP=0xbf9fe254, ESI=0xbf9fe32c, EDI=0x00000056
EIP=0x2811918c, EFLAGS=0x00010206

Top of Stack: (sp=0xbf9fe14c)
0xbf9fe14c:   bf9fe168 bf9fe168 000000c8 2808d538
0xbf9fe15c:   2840f370 28682f50 00000003 28b89698
0xbf9fe16c:   2902c9c0 00000000 2902ca88 2902ca88
0xbf9fe17c:   bf9fe42c bf9fe430 bf9fe430 2902ca45
0xbf9fe18c:   28000000 bf9fe168 2902ca88 00000000
0xbf9fe19c:   2902ca88 2902ca88 00000000 00000000
0xbf9fe1ac:   00000000 2902ca88 bf9fe1d4 289783bd
0xbf9fe1bc:   2845c180 00000000 2902ca88 289783aa

Instructions: (pc=0x2811918c)
0x2811917c:   e8 00 00 00 00 5b 81 c3 03 77 0b 00 66 0f ef c0
0x2811918c:   0f 29 45 d8 0f 29 45 c8 0f 29 45 b8 0f 29 45 a8

Stack: [0xbf5ff000,0xbf9ff000],  sp=0xbf9fe14c,  free space=4092k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native
code)
C  [libc.so.7+0x4d18c]  vsnprintf+0x1c
V  [libjvm.so+0x1fb30f]
V  [libjvm.so+0x1fb34b]
V  [libjvm.so+0x2e6221]
V  [libjvm.so+0x28cad9]
V  [libjvm.so+0x28cb97]
V  [libjvm.so+0x313e4f]
V  [libjvm.so+0x31402e]
V  [libjvm.so+0x31407c]
V  [libjvm.so+0x312ece]
V  [libjvm.so+0x3136af]
V  [libjvm.so+0x314770]
V  [libjvm.so+0x1458d5]
V  [libjvm.so+0x19ab54]
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::StubRoutines (1)
V  [libjvm.so+0x1aa0dc]
V  [libjvm.so+0x2a3fd9]
V  [libjvm.so+0x1a920f]
V  [libjvm.so+0x18134a]
V  [libjvm.so+0x1813b1]
V  [libjvm.so+0x18169e]
V  [libjvm.so+0x181c08]
V  [libjvm.so+0x333e3b]
V  [libjvm.so+0x1b3433]
C  [javac+0xa755]  JavaMain+0x1cf5
C  [javac+0x8b01]  JavaMain+0xa1
C  [libthr.so.3+0x68ce]  pthread_create+0x72e

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::StubRoutines (1)

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
=>0x2863d400 JavaThread "Unknown thread" [_thread_in_vm, id=675301632,
stack(0xbf5ff000,0xbf9ff000)]

Other Threads:
  0x28488800 VMThread [stack: 0xbf57e000,0xbf5fe000] [id=675420160]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 960K, used 17K [0x4aff0000, 0x4b0f0000,
0x4b4d0000)
  eden space 896K,   2% used [0x4aff0000, 0x4aff47c8, 0x4b0d0000)
  from space 64K,   0% used [0x4b0d0000, 0x4b0d0000, 0x4b0e0000)
  to   space 64K,   0% used [0x4b0e0000, 0x4b0e0000, 0x4b0f0000)
 tenured generation   total 7168K, used 0K [0x4b4d0000, 0x4bbd0000,
0x4eff0000)
   the space 7168K,   0% used [0x4b4d0000, 0x4b4d0000, 0x4b4d0200,
0x4bbd0000)
 compacting perm gen  total 12288K, used 4K [0x4eff0000, 0x4fbf0000,
0x52ff0000)
   the space 12288K,   0% used [0x4eff0000, 0x4eff1260, 0x4eff1400,
0x4fbf0000)
    ro space 8192K,  73% used [0x52ff0000, 0x535d3618, 0x535d3800,
0x537f0000)
    rw space 12288K,  58% used [0x537f0000, 0x53ee9a30, 0x53ee9c00,
0x543f0000)

Dynamic libraries:
0x08048000      /usr/local/diablo-jdk1.6.0/bin/javac
0x280ac000      /lib/libthr.so.3
0x280cc000      /lib/libc.so.7
0x28800000      /usr/local/diablo-jdk1.6.0/jre/lib/i386/client/libjvm.so
0x281fb000      /usr/lib/libstdc++.so.6
0x282d7000      /lib/libm.so.5
0x282f3000      /lib/libgcc_s.so.1
0x282fe000
/usr/local/diablo-jdk1.6.0/jre/lib/i386/native_threads/libhpi.so
0x28310000      /usr/local/diablo-jdk1.6.0/jre/lib/i386/libverify.so
0x2831d000      /usr/local/diablo-jdk1.6.0/jre/lib/i386/libjava.so
0x28344000      /usr/local/diablo-jdk1.6.0/jre/lib/i386/libzip.so
0x2834d000      /lib/libz.so.6
0x28059000      /libexec/ld-elf.so.1

VM Arguments:
jvm_args: -Dapplication.home=/usr/local/diablo-jdk1.6.0 -Xms8m -Xss4m
-ea:com.sun.tools...
java_command: com.sun.tools.javac.Main --version
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=/usr/local/diablo-jdk1.6.0
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
LD_LIBRARY_PATH=/usr/local/diablo-jdk1.6.0/jre/lib/i386/client:/usr/local/diablo-jdk1.6.0/jre/lib/i386:/usr/local/diablo-jdk1.6.0/jre/../lib/i386:
SHELL=/bin/csh
DISPLAY=:0.0
HOSTTYPE=FreeBSD
OSTYPE=FreeBSD
MACHTYPE=i386

Signal Handlers:
SIGSEGV: [libjvm.so+0x3685b0], sa_mask[0]=0x7fffffff, sa_flags=0x00000042
SIGBUS: [libjvm.so+0x3685b0], sa_mask[0]=0x7fffffff, sa_flags=0x00000042
SIGFPE: [libjvm.so+0x2a4f60], sa_mask[0]=0x7fffffff, sa_flags=0x00000042
SIGPIPE: [libjvm.so+0x2a4f60], sa_mask[0]=0x7fffffff, sa_flags=0x00000042
SIGXFSZ: [libjvm.so+0x2a4f60], sa_mask[0]=0x7fffffff, sa_flags=0x00000042
SIGILL: [libjvm.so+0x2a4f60], sa_mask[0]=0x7fffffff, sa_flags=0x00000042
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x2a7660], sa_mask[0]=0x00000000, sa_flags=0x00000042
SIGHUP: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGINT: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGTERM: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGQUIT: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000


---------------  S Y S T E M  ---------------

OS:Bsd
uname:FreeBSD 9.0-STABLE FreeBSD 9.0-STABLE #0: Mon Jan 23 16:02:56 EST
2012  i386
rlimit: STACK 65536k, CORE infinity, NPROC 5547, NOFILE 11095
CPU:total 2 (1 cores per cpu, 1 threads per core) family 15 model 2
stepping 7, cmov, cx8, fxsr, mmx, sse, sse2

Memory: 4k page, physical 2776236k(694059k free)

vm_info: Diablo Java HotSpot(TM) Client VM (10.0-b23) for bsd-x86 JRE
(1.6.0_07-b02), built on May 12 2008 23:14:46 by "truk" with gcc 4.2.1
20070719  [FreeBSD]

time: Thu Jan 26 16:40:55 2012
elapsed time: 0 seconds

How can I fix this exactly?

Thanks!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANT0rcv57gnpYie4irwQuepgNzHdukB_iYFUUWm%2BukLyYvdJgg>