From owner-freebsd-java@freebsd.org Thu Oct 17 20:45:24 2019 Return-Path: Delivered-To: freebsd-java@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 627B015D479 for ; Thu, 17 Oct 2019 20:45:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46vLlS200mz3D11 for ; Thu, 17 Oct 2019 20:45:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 443DA15D476; Thu, 17 Oct 2019 20:45:24 +0000 (UTC) Delivered-To: java@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4402B15D474 for ; Thu, 17 Oct 2019 20:45:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46vLlS18jqz3D10 for ; Thu, 17 Oct 2019 20:45:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0C3D426290 for ; Thu, 17 Oct 2019 20:45:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x9HKjNxa076970 for ; Thu, 17 Oct 2019 20:45:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x9HKjNdG076969 for java@FreeBSD.org; Thu, 17 Oct 2019 20:45:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 241317] java/openjdk8: unsatisfied link of getmntonname0 Date: Thu, 17 Oct 2019 20:45:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: easy, patch, patch-ready X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: cmt@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Oct 2019 20:45:24 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241317 Bug ID: 241317 Summary: java/openjdk8: unsatisfied link of getmntonname0 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: easy, patch, patch-ready Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: java@FreeBSD.org Reporter: cmt@freebsd.org Flags: maintainer-feedback?(java@FreeBSD.org) Assignee: java@FreeBSD.org Created attachment 208391 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D208391&action= =3Dedit make BsdNativeDispatcher actoally load the native library to dispatch to Since the latest update of openjdk8 (openjdk8-8.232.09.1) german/mediathekv= iew broke: clicking on a download button gives no reaction in the GUI and an exception like this (shortened to the relevant part, because java): Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: sun.nio.fs.BsdNativeDispatcher.getmntonname0(J)[B at sun.nio.fs.BsdNativeDispatcher.getmntonname0(Native Method) at sun.nio.fs.BsdNativeDispatcher.getmntonname(BsdNativeDispatcher.java:61) at sun.nio.fs.BsdFileStore.findMountEntry(BsdFileStore.java:67) at sun.nio.fs.UnixFileStore.(UnixFileStore.java:65) at sun.nio.fs.BsdFileStore.(BsdFileStore.java:40) at sun.nio.fs.BsdFileSystemProvider.getFileStore(BsdFileSystemProvider.java:55) at sun.nio.fs.BsdFileSystemProvider.getFileStore(BsdFileSystemProvider.java:39) at sun.nio.fs.UnixFileSystemProvider.getFileStore(UnixFileSystemProvider.java:= 368) at java.nio.file.Files.getFileStore(Files.java:1461) at mediathek.gui.dialog.DialogAddDownload.getFreeDiskSpace(DialogAddDownload.j= ava:268) Poking around jdk/src/solaris/classes/sun/nio/fs/BsdNativeDispatcher.java it appears that indeed getmntonname0() is declared "native", but there are no provisions to load a suitable library for that method. The other NativeDispatchers call System.loadLibrary("nio"), which would make a lot of sense here, too - a "NativeDispatcher" should at least have some access to = the library it is dispatching to. Attached is a patch (to be dropped into files/) which implements the same System.loadLibrary() logic with it's wrappers in BsdNativeDispatcher.java. = This still passes poudriere and fixes mediathekview for me. I've not reported th= is upstream, as I'm not even sure which upstream to report to (and I'd dread t= o go through the submit-a-trivial-patch dance with the-company-which-swallowed-S= un). I'm debugging a JDK - what am I doing with my live? --=20 You are receiving this mail because: You are the assignee for the bug.=