Simple bug fix for jdk15-current-patchset on amd64 runnign eclipse ?
Arno J. Klaassen
arno at heho.snv.jussieu.fr
Sat Aug 6 13:08:05 GMT 2005
Hello,
when I run eclipse on amd64 with jdk15 patched with latest experimental
patchset, I get a hotspot error when opening a file :
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0x0000000801a0fbba, pid=30197, tid=0x51a000
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0-p1-toor_19_jul_2005_12_24 mixed mode)
# Problematic frame:
# C [libzip.so+0x7bba] inflateEnd+0x3a
#
# An error report file with more information is saved as hs_err_pid30197.log
And the log-file learns :
C [libzip.so+0x7bba] inflateEnd+0x3a
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(J)V+0
j org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(J)V+8
j org.eclipse.swt.widgets.Display.eventProc(JJ)J+326
v ~StubRoutines::call_stub
j org.eclipse.swt.internal.gtk.OS._gtk_dialog_run(J)I+0
j org.eclipse.swt.internal.gtk.OS.gtk_dialog_run(J)I+8
j org.eclipse.swt.widgets.FileDialog.openChooserDialog()Ljava/lang/String;+122
...
This bug is probably close to JDK Bug 4953050
(http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4953050)
and in fact is easily solved by adding :
#define Z_PREFIX
at the beginning of ./j2se/src/share/native/java/util/zip/zlib-1.1.3/zconf.h
Am I wrong or is this even the "preferred" way to prevent conflicts with
standard libz.so ?
Kind regards, Arno
More information about the freebsd-java
mailing list