Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Aug 2018 20:58:05 +0200
From:      Michael Osipov <1983-01-06@gmx.net>
To:        =?UTF-8?Q?Timo_V=c3=b6lker?= <timo.voelker@fh-muenster.de>, "freebsd-java@freebsd.org" <freebsd-java@freebsd.org>
Subject:   Re: SCTP do not work with OpenJDK8
Message-ID:  <a10f417c-2110-8ea7-a543-1afe802db5d9@gmx.net>
In-Reply-To: <FD5A4D7B-42E6-4239-80BF-886876AE58DB@fh-muenster.de>
References:  <FD5A4D7B-42E6-4239-80BF-886876AE58DB@fh-muenster.de>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a10f417c-2110-8ea7-a543-1afe802db5d9>