Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Aug 2018 07:52:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        java@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 230321] java/openjdk8 - SCTP do not work
Message-ID:  <bug-230321-8522-f5syhPLgWM@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-230321-8522@https.bugs.freebsd.org/bugzilla/>
References:  <bug-230321-8522@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-java mailing l=
ist
<java@FreeBSD.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230321-8522-f5syhPLgWM>