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
--Apple-Mail=_9AD4EA6A-8A85-480B-ABFC-7E8BDA658684 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 2. Aug 2018, at 20:58, Michael Osipov <1983-01-06@gmx.net> wrote: >=20 > Am 2018-07-31 um 15:55 schrieb Timo V=C3=B6lker: >> 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 !=3D = 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.htm= l >=20 > Nice patch, >=20 > can you file an issue with Bugzilla, so this won't get lost? >=20 > Michael >=20 Hi Michael, OK, I just did. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230321 Timo= --Apple-Mail=_9AD4EA6A-8A85-480B-ABFC-7E8BDA658684 Content-Disposition: attachment; filename="smime.p7s" Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIQsDCCBRIw ggP6oAMCAQICCQDjC9X4ryXZgTANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUxKzApBgNV BAoMIlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVt cyBUcnVzdCBDZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDIwHhcN MTYwMjIyMTMzODIyWhcNMzEwMjIyMjM1OTU5WjCBlTELMAkGA1UEBhMCREUxRTBDBgNVBAoTPFZl cmVpbiB6dXIgRm9lcmRlcnVuZyBlaW5lcyBEZXV0c2NoZW4gRm9yc2NodW5nc25ldHplcyBlLiBW LjEQMA4GA1UECxMHREZOLVBLSTEtMCsGA1UEAxMkREZOLVZlcmVpbiBDZXJ0aWZpY2F0aW9uIEF1 dGhvcml0eSAyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAy2DX/2ahQc3S+oeXinOr mU3qZzlaoWCARxVOjJWy5c/O01dLjc74VmwVVXYH6kb9yANFYz5w1KtUgLEjnL43KKkJ/wVdGA/E mJk3syD2ZngXh8KdDsxKMucWna4OjSl5BwAgVNwVX0qW13i2NNPBdLWd6b/Ad03qvVkH4FovbDyl ANw1vWUNj38ybfJaaktiAe6sODRZRTZJBdp4ymptW8CBaxHM0jyoi/hxGso74oDdFrRneos26k6R KT2zUVytqAy+nTTj0Q0Xg3XEOR6wlAsS8dVpjiX0uD0rv8COwx47pb9VEKsqrheXXjPOyPP0CQfj AoYxRmsBxRAMEcdZ6QIDAQABo4IBdDCCAXAw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mRlcnVuZyBl aW5lcyBEZXV0c2NoZW4gRm9yc2NodW5nc25ldHplcyBlLiBWLjEQMA4GA1UECwwHREZOLVBLSTEl MCMGA1UEAwwcREZOLVZlcmVpbiBHbG9iYWwgSXNzdWluZyBDQQIMHYLR/BSdFQjGdunuMIGxBgsq hkiG9w0BCRACCzGBoaCBnjCBjTELMAkGA1UEBhMCREUxRTBDBgNVBAoMPFZlcmVpbiB6dXIgRm9l cmRlcnVuZyBlaW5lcyBEZXV0c2NoZW4gRm9yc2NodW5nc25ldHplcyBlLiBWLjEQMA4GA1UECwwH REZOLVBLSTElMCMGA1UEAwwcREZOLVZlcmVpbiBHbG9iYWwgSXNzdWluZyBDQQIMHYLR/BSdFQjG dunuMA0GCSqGSIb3DQEBAQUABIIBAI7/i8bTMwpLPUKzC2PIOMY4PIAkcrLZu4JpmpUmhg+nqYHS 7ii0eTedd9T7PxkjGL4w3plQ1UeBMh2X4XHKBIXOAXr3lLIe+OJp60wfWQc4QLITgN0cl85zWjiu o0k2eUgXxpbA6/C+Mom7B6I0e/YRZtxXBtg+6IKVzs9N/P3CijVl5agc9N9ZAMZwvbX5tv9SeRLr R8Ofzyfnfoeh4VHSHjsrZGu9RUGc5gTZhVmzmdxqjMjWg2jlpFlHMSajtwV2+MJbt1dubH+OoRo6 fTMRq7PHm2LQHOSnIv8UW0XHTqj6XER0+4Gz5DVN0K4iXaXcmYTKf4MCkR6e9GmYfksAAAAAAAA= --Apple-Mail=_9AD4EA6A-8A85-480B-ABFC-7E8BDA658684--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?84C95B6E-58F1-4FB4-A272-10DBF03202E0>