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 4XXKFx2BjJz5ZQxm 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 4XXKFw5j00z4s7l 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; bh=hqEercHq9dhCbwLWNqdPAvUfwzteybeXYx+Uh9O/1GE=; b=VWyu6Q4tpyV35mJs8ULJrj+2XNUT9VPEYhVAh6i+u4WVtnQAVEUCJcdG91CrsB1o1nhX3i tK/A/ydt53RKyFgryVAEufiXN2d48z7To7XoZa+jutIkTGf5wtFZQMPxF3mto8O/hnK4/M CmrZ9G6xoJuWMo72hN2p2HhKn4ElONJsrKrL5nbCBSfW4t9RX0o5kPfZVJcxLYZU9MeOw7 A9dSxJ+iDHNPdcP1ROxHG70GVFsuvtqhRh3sfTuneZHf0Y3pboOWYGOpOCA44AKsqGAmsl rujp4aUG+po2tx1wLVKyVyRA6Ovfn8LFKDiOgXdFYjgD41CLxtm13qQ6+7WP3Q== 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=m2QXnAQLLOp3+uG4e1iag/k2l9GMj5wKijAoT5vbFY5eVg2s8jyWeutlwbFPL19bcWJEgF wz3jCy3JVivjzmvh/rYo/DCv3vxT10Hnu20QcztPXnL6D2Z4Tew5ejxnZt1Jx+KHLPNvH1 xwmjmkshgbZIq0SbFk/cWW+bdEKjYRG3faqvOXC2HoWxLZQavPoJ+238ItoFUQ9H9hfVxP sPvEEh9nB3k0LWTyfMTAAvOSrv6JqgVdDNLK571Y9iswzO8NzCVd7DKqZLl3hC4l1ArsVG AfQ0tNjKElZZ+++JrGEILwHmUB/ub73frI9t5zKBFG7HLeS7Y1eBpv2LjVmd4Q== 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 4XXKFw51PQzcCx 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 49LFcCY9056198 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 49LFcCSj056197 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 From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 282251] java/openjdk22: IPv6 / INET6 is broken Date: Mon, 21 Oct 2024 15:38:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None 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: freebsd.68fba@nospam.spacesurfer.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282251 Bug ID: 282251 Summary: java/openjdk22: IPv6 / INET6 is broken Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: java@FreeBSD.org Reporter: freebsd.68fba@nospam.spacesurfer.com Flags: maintainer-feedback?(java@FreeBSD.org) Assignee: java@FreeBSD.org 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(); } --=20 You are receiving this mail because: You are the assignee for the bug.=