From owner-freebsd-java@freebsd.org Fri Aug 3 07:52:14 2018 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 760FC1060B58 for ; Fri, 3 Aug 2018 07:52:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B947A75479 for ; Fri, 3 Aug 2018 07:52:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 7E1B71060B52; Fri, 3 Aug 2018 07:52:13 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6CE6F1060B51 for ; Fri, 3 Aug 2018 07:52:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0F7F475473 for ; Fri, 3 Aug 2018 07:52:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 5DC84A032 for ; Fri, 3 Aug 2018 07:52:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w737qCRW001912 for ; Fri, 3 Aug 2018 07:52:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w737qCxf001903 for java@FreeBSD.org; Fri, 3 Aug 2018 07:52:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: maintainer-feedback requested: [Bug 230321] java/openjdk8 - SCTP do not work Date: Fri, 03 Aug 2018 07:52:11 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: 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.27 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Aug 2018 07:52:14 -0000 Bugzilla Automation has asked freebsd-java mailing l= ist for maintainer-feedback: Bug 230321: java/openjdk8 - SCTP do not work https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230321 --- Description --- I found an issue with SCTP support in OpenJDK8 for FreeBSD. In my example=20 https://github.com/msvoelker/java-sctp/ it happened that OpenJDK8 calls sendmsg with an buffer address !=3D NULL an= d a buffer length of 0, which is an invalid argument for FreeBSD. I found the c= ode lines in the function Java_sun_nio_ch_sctp_SctpChannelImpl_send0 of jdk/src/solaris/native/sun/nio/ch/sctp/SctpChannelImpl.c Besides that, I changed two ifdef statements for FreeBSD (see attached patch file). If I copy this patch file to the files directory of the OpenJDK8 por= t, I'm able to install OpenJDK and to run the example application. sudo cp patch-jdk-src-solaris-native-sun-nio-ch-sctp-SctpChannelImpl.c /usr/ports/java/openjdk8/files cd /usr/ports/java/openjdk8 sudo make install I just saw that hwh found this issue already for OpenJDK7. https://lists.freebsd.org/pipermail/freebsd-java/2010-September/008906.html Thanks, Timo