From nobody Mon Oct 21 15:38:12 2024 X-Original-To: java@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XXKFx2BPrz5ZQxl for ; Mon, 21 Oct 2024 15:38:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XXKFw4bvyz4sRm for ; Mon, 21 Oct 2024 15:38:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729525092; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hzUZu5hEgqJA0yQNu17dFCmkOS1T7pQc5KBX2ii1fBk=; b=Er407qu2YPRyCNtwgdnvumjWoqZJhJlQZgK1nuNhpO9X8zKFEVIYGSvVH/bBLZIQQZ7Vt/ 0dEQHoxxeJ7c7j+UI2PbMIN2g7mV3dUDvhyY/eCAPmgL/7XmEMdBEKgudt582uFulJQTUS gV8Sck6sS33f3P/qTmX4LgAgD5O41Kit/LsH53MG2KbGrMk5A5YoiBbN/dadZs/Nzxxv2+ 8H8BpxyuXuwXb9wAo9GRF9U11SrLp+sd6uAvIbXiQfLFfMtGrN6GgmSKif9rrJCJNtcXVN jPuaJWNrgtEad6Sj/eCxKYt533j31gU7RFPJvThXJ7sCTZX1M1vVFEqN3nyJjg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729525092; a=rsa-sha256; cv=none; b=N45BL7tpxvUz0Ifp+CTxnR92jHkJ4WnfoMFo2ZuZQZYcIMivIW4taTf2rQrep8em4sLNjm ox5Vu6x1gltXqDvCPKXSNAxiyB8Pl6/A00/HxhN0tXbYHbZDK5qsS7Q1zxm342YmVi0KIZ 3X01Zla0qkgMR4E/Qay+ofxeRFM/2RLS/FImiMqFs+7LbwIqrFJJda2R8BH/Lv029kYjqB TkqAzn/b6dmg6/4yXs1xYTYt7cKsAU3CNC7MVX0hhWci/ww4DGsnVPQ9gXe0KhTIDX2WOX iK2NKiyDk/LlXivUDepBQ+mPFrW0RZ76qoK04yPkiSaLuomDt6gQL/mYD2trsQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XXKFw3mYrzcCw for ; Mon, 21 Oct 2024 15:38:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 49LFcC4g056189 for ; Mon, 21 Oct 2024 15:38:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 49LFcC87056188 for java@FreeBSD.org; Mon, 21 Oct 2024 15:38:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: maintainer-feedback requested: [Bug 282251] java/openjdk22: IPv6 / INET6 is broken Date: Mon, 21 Oct 2024 15:38:12 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@FreeBSD.org MIME-Version: 1.0 Bugzilla Automation has asked freebsd-java (Nobody) for maintainer-feedback: Bug 282251: java/openjdk22: IPv6 / INET6 is broken https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282251 --- Description --- In java/openjdk22 IPv6 is broken, in java/openjdk17 it was working. I did n= ot try any openjdk's in between. To be more specific in openjdk17 started with default settings, INET6 doesn= 't work. However with -Djava.net.preferIPv4Stack=3Dfalse INET, INET6 and unspe= cified protocols all work. In openjdk22 started with default settings, INET6 doesn't work. With -Djava.net.preferIPv4Stack=3Dfalse no internet protocols work. These issues can be reproduced with the java code // Test unspecified protocol try { ServerSocket ss =3D new ServerSocket(0); Socket cs =3D new Socket(ss.getInetAddress(), ss.getLocalPort()); OutputStream os =3D cs.getOutputStream(); InputStream is =3D cs.getInputStream(); Socket as =3D ss.accept(); System.out.println("Connected " + cs + " to " + as); ss.close(); cs.close(); as.close(); } catch (IOException ex) { System.err.println("Failed to connect to localhost with unspecified protocol"); ex.printStackTrace(); } // Test INET (IPv6) try { InetAddress addr =3D InetAddress.getByName("127.0.0.1"); ServerSocket ss =3D new ServerSocket(0, 1, addr); Socket cs =3D new Socket(ss.getInetAddress(), ss.getLocalPort()); OutputStream os =3D cs.getOutputStream(); InputStream is =3D cs.getInputStream(); Socket as =3D ss.accept(); System.out.println("Connected " + cs + " to " + as); ss.close(); cs.close(); as.close(); } catch (IOException ex) { System.err.println("Failed to connect to localhost with INET"); ex.printStackTrace(); } // Test INET6 try { InetAddress addr =3D InetAddress.getByName("::0"); ServerSocket ss =3D new ServerSocket(0, 1, addr); Socket cs =3D new Socket(ss.getInetAddress(), ss.getLocalPort()); OutputStream os =3D cs.getOutputStream(); InputStream is =3D cs.getInputStream(); Socket as =3D ss.accept(); System.out.println("Connected " + cs + " to " + as); ss.close(); cs.close(); as.close(); } catch (IOException ex) { System.err.println("Failed to connect to localhost with INET6"); ex.printStackTrace(); }