Date: Fri, 3 Aug 2018 07:54:49 +0000 From: =?utf-8?B?VGltbyBWw7Zsa2Vy?= <timo.voelker@fh-muenster.de> To: Michael Osipov <1983-01-06@gmx.net> Cc: "freebsd-java@freebsd.org" <freebsd-java@freebsd.org> Subject: Re: SCTP do not work with OpenJDK8 Message-ID: <84C95B6E-58F1-4FB4-A272-10DBF03202E0@fh-muenster.de> In-Reply-To: <a10f417c-2110-8ea7-a543-1afe802db5d9@gmx.net> References: <FD5A4D7B-42E6-4239-80BF-886876AE58DB@fh-muenster.de> <a10f417c-2110-8ea7-a543-1afe802db5d9@gmx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] > On 2. Aug 2018, at 20:58, Michael Osipov <1983-01-06@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 [-- Attachment #2 --] 0 *H 010 + 0 *H 00 %ف0 *H 010 UDE1+0)U "T-Systems Enterprise Services GmbH10UT-Systems Trust Center1%0#UT-TeleSec GlobalRoot Class 20 160222133822Z 310222235959Z010 UDE1E0CU <Verein zur Foerderung eines Deutschen Forschungsnetzes e. V.10UDFN-PKI1-0+U$DFN-Verein Certification Authority 20"0 *H 0 `fAsMg9Z`GNWKVlUvFEc>pԫT#7( ]Ę7 fxJ2)y T_Jx4twMYZ/l<
