Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 May 2014 19:27:26 -0400
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        d@delphij.net, luckyluke@plusnet.pl, freebsd-java@FreeBSD.org
Subject:   Re: java/183081: java crash on machine with zfs kernel module
Message-ID:  <537D365E.6070609@FreeBSD.org>
In-Reply-To: <537D302A.7000004@delphij.net>
References:  <201405212241.s4LMfcfr042282@freefall.freebsd.org> <537D302A.7000004@delphij.net>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?537D365E.6070609>