SCTP do not work with OpenJDK8

Timo Völker timo.voelker at fh-muenster.de
Fri Aug 3 07:54:51 UTC 2018


> On 2. Aug 2018, at 20:58, Michael Osipov <1983-01-06 at gmx.net> wrote:
> 
> Am 2018-07-31 um 15:55 schrieb Timo Völker:
>> Hi,
>> I found an issue with SCTP support in OpenJDK8 for FreeBSD. In my example
>> https://github.com/msvoelker/java-sctp/
>> it happened that OpenJDK8 calls sendmsg with an buffer address != NULL and a buffer length of 0, which is an invalid argument for FreeBSD. I found the code 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. I attach my patch file at the end. If I copy this patch file to the files directory of the OpenJDK8 port, 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
> 
> Nice patch,
> 
> can you file an issue with Bugzilla, so this won't get lost?
> 
> Michael
> 

Hi Michael,

OK, I just did.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230321

Timo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5243 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-java/attachments/20180803/b38009f5/attachment.bin>


More information about the freebsd-java mailing list