From nobody Mon Aug 5 16:33:40 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 4Wd27S38D1z5SKJV for ; Mon, 05 Aug 2024 16:33:40 +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 4Wd27R6rKcz4brD for ; Mon, 5 Aug 2024 16:33:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722875620; a=rsa-sha256; cv=none; b=eJkdmczbMclB4gQBnVBSac8ZShrXNj8Ayb7pNZrJ3SP/BXSo7Z3nS835SWlTx/LgJAV8Ga UbKHyu3r/ElcQpG/j2/VXffDFCE3Z8qeHQ00nTY4nTHuf4NBc0ks9YgSnVbrwyDzv7/60q 2bNHqxaMZy9GCCM7Hcfiq4CZeRcnzDLi+1sNEGy5Zbuk7UX3eIkJew4y1wuJH87RM+B5gQ 2aFq82SEmldQeNGhG7uoAvVxTz26ET0weLwbBueJl5bX3wQGOY+SSFSCPpZLpCwmqbhIjZ 3lbxuaJ2or1y8qRRpYkyPIQxg8u/CE8YsM+agZZSVRxpvi2wiu0ke5WOIMiAjg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722875620; 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=uaD+6EXul5jL4xIKAPiG4C+T9Idz3hthOf8hT0uFlXc=; b=H7v524KoElbDci1+x/zKI6DkgPOpCO0yvnCc956uN3Q+kivIW23AeKzLscjetUi//3/iyq E1SeKyO1ysmzWM0HoUkpxHZQLPVvTsbeGBrVj4AM+E8robSx2urUNl35SSboYbPIDE0esZ Uni69FGcRMhykNlruAHBFc7VpGeMWkWr52HsUuF4gf39Kc/azh0IjFm0WxilcjghHJj1Y/ kCxy4Q7aKynvJiMyFDKPGkFVc01zuwdmw12K7yIMie5jf3WjclH3wevgCUXOqaT8yBz8sc JoeKbJlAQ2mA+QkjkrVPu3e+Mrei/AltgT2D8mQrXGcThumMDP6wO++PJpmkLQ== 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 4Wd27R6RsWzX0P for ; Mon, 5 Aug 2024 16:33:39 +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 475GXdFx053059 for ; Mon, 5 Aug 2024 16:33:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 475GXdDO053058 for java@FreeBSD.org; Mon, 5 Aug 2024 16:33:39 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 239890] java/openjdk11: openjdk 11.0.4+11.2 JDBC connections fail with IPv6 addresses Date: Mon, 05 Aug 2024 16:33:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: antonfb@hesiod.org 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: Message-ID: In-Reply-To: References: 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=3D239890 --- Comment #11 from antonfb@hesiod.org --- I've notice this failure started when I upgraded to 14.1 from 13.2. I've also noticed some issues, not clear they are the same when going from = 13.2 to 13.3. I looked at the kernel tcp code and I believe it started enforcing that you= can not used 4 in 6 addresses for connect when v6only is 1. I think 13.2 didn't enforce that for connect when it did for bind. Things with java seem to work with preferipv4stack=3Dfalse AND sysctl ipv6o= nly=3D0, but other utilities on the system have problems with that. My use of tomcat is a problem here. Needing ipv6 support and jdbc together = seem to require this combination. I do think, and I may try to debug, that jdk should be setting a new socket= 's v6only option to v6only=3D0 when the ip stack being used is ipv6. I wonder if running jdk in a jail where that jail sets the sysctl v6only to= 0 might solve the issue for me. But having to look at this for every os upgra= de is bad. --=20 You are receiving this mail because: You are the assignee for the bug.=