From owner-freebsd-java@FreeBSD.ORG  Fri Oct 14 18:52:11 2005
Return-Path: <owner-freebsd-java@FreeBSD.ORG>
X-Original-To: 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 D739116A423
	for <java@freebsd.org>; Fri, 14 Oct 2005 18:52:11 +0000 (GMT)
	(envelope-from glewis@eyesbeyond.com)
Received: from misty.eyesbeyond.com (glewis.dsl.xmission.com [166.70.56.15])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DB23843D6E
	for <java@freebsd.org>; Fri, 14 Oct 2005 18:52:08 +0000 (GMT)
	(envelope-from glewis@eyesbeyond.com)
Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1])
	by misty.eyesbeyond.com (8.13.3/8.13.3) with ESMTP id j9EIpvG3049280;
	Fri, 14 Oct 2005 12:51:57 -0600 (MDT)
	(envelope-from glewis@eyesbeyond.com)
Received: (from glewis@localhost)
	by misty.eyesbeyond.com (8.13.3/8.13.3/Submit) id j9EIpusJ049279;
	Fri, 14 Oct 2005 12:51:56 -0600 (MDT)
	(envelope-from glewis@eyesbeyond.com)
X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to
	glewis@eyesbeyond.com using -f
Date: Fri, 14 Oct 2005 12:51:56 -0600
From: Greg Lewis <glewis@eyesbeyond.com>
To: Sean McNeil <sean@mcneil.com>
Message-ID: <20051014185156.GA49217@misty.eyesbeyond.com>
References: <1129274231.24866.2.camel@server.mcneil.com>
	<434F6342.20207@ebs.gr>
	<1129309049.27496.22.camel@server.mcneil.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1129309049.27496.22.camel@server.mcneil.com>
User-Agent: Mutt/1.4.2.1i
Cc: java@freebsd.org, Panagiotis Astithas <past@ebs.gr>
Subject: Re: file dialog aborts on amd64 6-RC1
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Oct 2005 18:52:12 -0000

On Fri, Oct 14, 2005 at 09:57:29AM -0700, Sean McNeil wrote:
> On Fri, 2005-10-14 at 10:50 +0300, Panagiotis Astithas wrote:
> > Sean McNeil wrote:
> > > I tried to do an import -> plugins and browse the directory location.
> > > This consistenly causes the dialog to crash:
> > > 
> > > #
> > > # An unexpected error has been detected by HotSpot Virtual Machine:
> > > #
> > > #  SIGSEGV (0xb) at pc=0x00000008021e9c1a, pid=24587, tid=0x51a000
> > > #
> > > # Java VM: Java HotSpot(TM) 64-Bit Server VM
> > > (1.5.0-p2-root_13_oct_2005_18_05 mixed mode)
> > > # Problematic frame:
> > > # C  [libzip.so+0x7c1a]  inflateEnd+0x3a
> > > #
> > > # An error report file with more information is saved as
> > > hs_err_pid24587.log
> > > #
> > > # If you would like to submit a bug report, please write
> > > # a letter to freebsd-java@FreeBSD.org mailing list
> > > #
> > 
> > As the message says, this should go to freebsd-java, along with the 
> > hs_err_pid24587.log file. Have you tried increasing the maximum heap size?
> 
> OK, I've move this thread to java@.  I figured this predated the eclipse
> mailing list and the list threw out my attachment of the log for some
> reason.  Also, as I've reported before on a different thread, I believe
> there is an issue with eclipse using the wrong API for libz.  There are
> problems with eclipse and gtk themes that use the pixmap engine.  It
> complains of libz versioning.
> 
> Now, I have a hard failure that is caused by libz and I've noticed
> something peculiar.  It appears
> that /usr/local/jdk1.5.0/jre/lib/amd64/libzip.so is invoking a routine
> in libz where is should not. libzip doesn't depend on libz.  Might there
> be some problem with namespace pollution going on here?  Does libzip
> need to be removed from the java build and libz used instead?  This
> would appear to be the case as they are not compatible yet are both used
> because of gtk.

The problem is that libzip.so needs to have its symbols privatised.  A
quick fix for this can be found at:

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=46004+0+archive/2005/freebsd-java/20050807.freebsd-java

Your post jogged my memory on this.  I need to look into it again.

-- 
Greg Lewis                          Email   : glewis@eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis@FreeBSD.org