From owner-freebsd-java@FreeBSD.ORG Wed May 21 23:27:26 2014 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from hammer.pct.niksun.com (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by hub.freebsd.org (Postfix) with ESMTP id 88D8E5AC; Wed, 21 May 2014 23:27:26 +0000 (UTC) Message-ID: <537D365E.6070609@FreeBSD.org> Date: Wed, 21 May 2014 19:27:26 -0400 From: Jung-uk Kim User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: d@delphij.net, luckyluke@plusnet.pl, freebsd-java@FreeBSD.org Subject: Re: java/183081: java crash on machine with zfs kernel module References: <201405212241.s4LMfcfr042282@freefall.freebsd.org> <537D302A.7000004@delphij.net> In-Reply-To: <537D302A.7000004@delphij.net> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 May 2014 23:27:26 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2014-05-21 19:00:58 -0400, Xin Li wrote: > On 05/21/14 15:41, jkim@FreeBSD.org wrote: >> Synopsis: java crash on machine with zfs kernel module > >> State-Changed-From-To: open->closed State-Changed-By: jkim >> State-Changed-When: Wed May 21 22:27:12 UTC 2014 >> State-Changed-Why: The root cause is the bundled JNA plugin for >> ZFS, which seems to be based on an ancient libzfs4j for Solaris. > >> https://github.com/kohsuke/libzfs4j > >> It tries to load libzfs.so via JNA but it fails because it is >> missing the symbol. > >> Sorry but we cannot "fix" the ancient Solaris libzfs.so vs. >> modern FreeBSD libzfs.so incompatibility problem. > >> http://www.freebsd.org/cgi/query-pr.cgi?pr=183081 > > Actually, this does seems like a FreeBSD bug to me: libzfs.so > should link against libavl.so, which it didn't. Looking at Illumos > source, libzfs is linked against libavl.so. I didn't bother to look at the Illumos source. My bad. > Could you please try the attached patch, rebuild/install world and > see if that fixed the problem? Yes, it worked for me. Thanks! Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQEcBAEBAgAGBQJTfTZeAAoJEHyflib82/FGM10IAImb5G734bXpDQnplxjMcumq vRKU3+1O7PI0YKKLHwVPBfzPm58ROYw1FTxh47q1PoYDGisWhfbaN3kqHWGU4mWJ GnQpSqAyA92ahTZs5h2IJJNfpY22JbWJI95cFwXlLEBUn9J7bjYgnIZ2PUhJ9deX 263AXQ3cIFBmb8w+tmsobvmXPZr89RLYqQVXJY3nTMJjVEsIRHbUpsuFTtK18Haj QncJRohi1IQm4un/CQAB6RAFPJalOm82YuMrslWhL1Lls/EjeylqyyHpVRxMyFxZ pPPEgsaF07g2hCH+hQZcTER2NA5HNIaMq2lj4abNN9PpjS1kSLYsz9599nVT2hk= =f3Ne -----END PGP SIGNATURE-----