From owner-freebsd-java@FreeBSD.ORG Fri Oct 18 11:20:01 2013 Return-Path: Delivered-To: freebsd-java@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4B162272 for ; Fri, 18 Oct 2013 11:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2B2C0270B for ; Fri, 18 Oct 2013 11:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9IBK1Jr007554 for ; Fri, 18 Oct 2013 11:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9IBK15Y007553; Fri, 18 Oct 2013 11:20:01 GMT (envelope-from gnats) Resent-Date: Fri, 18 Oct 2013 11:20:01 GMT Resent-Message-Id: <201310181120.r9IBK15Y007553@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-java@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Lukasz Olszewski Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9E549171 for ; Fri, 18 Oct 2013 11:16:42 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 736AC26BE for ; Fri, 18 Oct 2013 11:16:42 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r9IBGf67041849 for ; Fri, 18 Oct 2013 11:16:41 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r9IBGf3u041847; Fri, 18 Oct 2013 11:16:41 GMT (envelope-from nobody) Message-Id: <201310181116.r9IBGf3u041847@oldred.freebsd.org> Date: Fri, 18 Oct 2013 11:16:41 GMT From: Lukasz Olszewski To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: java/183081: java crash on machine with zfs kernel module X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Oct 2013 11:20:01 -0000 >Number: 183081 >Category: java >Synopsis: java crash on machine with zfs kernel module >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-java >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 18 11:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Lukasz Olszewski >Release: 9.2 >Organization: >Environment: FreeBSD freeb 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013 root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >Description: java crashes with the following error /usr/lib/libzfs.so: Undefined symbol "avl_numnodes" It happens during initial configuration of hudson CI server if the zfs module is present. If the module is removed from the kernel the configuration completes successfully ident /usr/lib/libzfs.so /usr/lib/libzfs.so: $FreeBSD: release/9.2.0/lib/csu/amd64/crti.S 217105 2011-01-07 16:07:51Z kib $ $FreeBSD: release/9.2.0/cddl/compat/opensolaris/misc/deviceid.c 185174 2008-11-22 13:33:06Z pjd $ $FreeBSD: release/9.2.0/cddl/compat/opensolaris/misc/zmount.c 221390 2011-05-03 16:00:26Z jh $ $FreeBSD: release/9.2.0/cddl/compat/opensolaris/misc/fsshare.c 222313 2011-05-26 16:27:00Z will $ $FreeBSD: release/9.2.0/cddl/compat/opensolaris/misc/mnttab.c 209962 2010-07-12 23:49:04Z mm $ $FreeBSD: release/9.2.0/lib/csu/amd64/crtn.S 217105 2011-01-07 16:07:51Z kib $ >How-To-Repeat: On fresh installation of 9.2-RELEASE amd64: 1. Add openjdk7 java -version openjdk version "1.7.0_25" OpenJDK Runtime Environment (build 1.7.0_25-b15) OpenJDK 64-Bit Server VM (build 23.21-b01, mixed mode) 2. Add zfs kernel module kldload zfs kldstat Id Refs Address Size Name 1 9 0xffffffff80200000 15b93c0 kernel 3 1 0xffffffff81812000 1583db zfs.ko 4 1 0xffffffff8196b000 56f7 opensolaris.ko 3. Download the latest version of hudson ci (3.1.0) http://eclipse.org/downloads/download.php?file=/hudson/war/hudson-3.1.0.war 4. Run hudson java -jar hudson-3.1.0.war -httpPort=8632 5. Open a browser and go to http://localhost:8632 6. On an initial setup page choose only JNA Native Support Plugin to install (in Core Compatibility Plugins section) 7. Click Install and then click Finish The java aborts with the following error /usr/lib/libzfs.so: Undefined symbol "avl_numnodes" 8. Remove working directory rm -rf .hudson 9. Remove zfs module kldunload zfs kldstat Id Refs Address Size Name 1 1 0xffffffff80200000 15b93c0 kernel 10. Repeat steps 4-7. The setup completes successfully. >Fix: not known >Release-Note: >Audit-Trail: >Unformatted: