From owner-freebsd-java@FreeBSD.ORG Sat Aug 6 13:08:05 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71B3416A41F for ; Sat, 6 Aug 2005 13:08:05 +0000 (GMT) (envelope-from arno@heho.snv.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFB3F43D46 for ; Sat, 6 Aug 2005 13:08:04 +0000 (GMT) (envelope-from arno@heho.snv.jussieu.fr) Received: from heho.snv.jussieu.fr (heho.snv.jussieu.fr [134.157.184.22]) by shiva.jussieu.fr (8.12.11/jtpda-5.4) with ESMTP id j76D7Q73027416 for ; Sat, 6 Aug 2005 15:07:26 +0200 (CEST) X-Ids: 168 Received: from heho.snv.jussieu.fr (localhost [127.0.0.1]) by heho.snv.jussieu.fr (8.13.3/jtpda-5.2) with ESMTP id j76D81TT022858 ; Sat, 6 Aug 2005 15:08:01 +0200 (MEST) Received: (from arno@localhost) by heho.snv.jussieu.fr (8.13.3/8.13.1/Submit) id j76D81Rk022855; Sat, 6 Aug 2005 15:08:01 +0200 (MEST) (envelope-from arno) To: freebsd-java@freebsd.org From: "Arno J. Klaassen" Date: 06 Aug 2005 15:08:00 +0200 Message-ID: Lines: 42 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.7.2 (shiva.jussieu.fr [134.157.0.168]); Sat, 06 Aug 2005 15:07:26 +0200 (CEST) X-Antivirus: scanned by sophie at shiva.jussieu.fr X-Miltered: at shiva.jussieu.fr with ID 42F4B60E.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! Subject: Simple bug fix for jdk15-current-patchset on amd64 runnign eclipse ? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Aug 2005 13:08:05 -0000 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