Date: Wed, 21 May 2014 16:00:58 -0700 From: Xin Li <delphij@delphij.net> To: jkim@FreeBSD.org, luckyluke@plusnet.pl, freebsd-java@FreeBSD.org Subject: Re: java/183081: java crash on machine with zfs kernel module Message-ID: <537D302A.7000004@delphij.net> In-Reply-To: <201405212241.s4LMfcfr042282@freefall.freebsd.org> References: <201405212241.s4LMfcfr042282@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------020804000508040901040301 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 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. Could you please try the attached patch, rebuild/install world and see if that fixed the problem? Cheers, - -- Xin LI <delphij@delphij.net> https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQIcBAEBCgAGBQJTfTApAAoJEJW2GBstM+ns8ZAQAJ30lm5QYn+r7ygyhW1zULiz ln52+Rm0UaMqFAbNolMa68le7fy8lmzKHQToql24t6hox6Xnnd3mcO+xwX/GPWzp lG0F7r1dZZ0dpIbRcqNpJy0SvouH3UB6lr0B7oNWayLfD3SMc6D2c/59TEWbZrRo EsNuRAPODHttw9lLA6Y95zFNzG+G0Ts1nZ3w3Tjdf+9SLffNKVMf+K08adHpQv2X ZcvNTgVUfv6Ze01N6oBf6jaLgvoloCfQnng+f2eJy2z0aVAVa1V/fHaQwequuW3u h0ACl5RX7W1mJDK4Egko5Ykk75hNS6PmpK9aXc3KNZ47BvEZefBDPHZMedJhRYSD 328CGED0x/t4i6hYqqlgYQv4RCJH0S7STO7TgN9MvTjeteNenN1s2+v41YkxAoNg kVUznj1qKSPBYrIOcVi9hl528iWpVxBwrv2N5YXxXV1Olr6RHg3qousg9mty4yca oyG85xKZyUC/JEfaQhcVRmgFLC5BhyLZkH7xoaHHUv5GtYb1dV8fhtCyQRi7AWEy XIJg92iR10w7/wsHXOOjeW7vB7D3wqNc9ELm6sm3n27cq7HsfM/GS7o8SxG+RQ4j 8l2T/3BpT2hBBwTdfLndlf17mfIWQj9P3QEQm365XOzWUa9cW/MDx9TJ849DCEjU 2pKBXhUCTfwrqnKsqKI2 =OtH6 -----END PGP SIGNATURE----- --------------020804000508040901040301 Content-Type: text/plain; charset=UTF-8; name="libzfs.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="libzfs.diff" Index: cddl/lib/libzfs/Makefile =================================================================== --- cddl/lib/libzfs/Makefile (revision 266429) +++ cddl/lib/libzfs/Makefile (working copy) @@ -7,8 +7,8 @@ LIB= zfs DPADD= ${LIBMD} ${LIBPTHREAD} ${LIBUMEM} ${LIBUTIL} ${LIBM} ${LIBNVPAIR} \ - ${LIBZFS_CORE} -LDADD= -lmd -lpthread -lumem -lutil -lm -lnvpair -lzfs_core + ${LIBAVL} ${LIBZFS_CORE} +LDADD= -lmd -lpthread -lumem -lutil -lm -lnvpair -lavl -lzfs_core SRCS= deviceid.c \ fsshare.c \ --------------020804000508040901040301--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?537D302A.7000004>