Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Aug 2026 20:52:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 193246] Bug in IPv6 multicast join(), uncovered by Jenkins
Message-ID:  <bug-193246-7501-My3uxFHOfx@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-193246-7501@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193246

--- Comment #30 from Marcin Cieślak <saper@saper.info> ---
I have updated my -current to 1c0d2f0b1a98526e4f1f5a051ce6904b4c3164e1 and
played with Jython a bit.

When I try on java 11:

import java.net
g = java.net.InetAddress.getAllByName("228.5.6.7")
z = java.net.MulticastSocket(6790)
z.joinGroup(g[0])

This gives:

> jython -Djava.net.preferIPv4Stack=false join_mcast.py 
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by jnr.posix.JavaLibCHelper
(file:/usr/local/lib/jython/jython.jar) to method sun.nio.ch.SelChImpl.getFD()
WARNING: Please consider reporting this to the maintainers of
jnr.posix.JavaLibCHelper
WARNING: Use --illegal-access=warn to enable warnings of further illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future release
Traceback (most recent call last):
  File "join_mcast.py", line 4, in <module>
    z.joinGroup(g[0])
        at java.base/java.net.PlainDatagramSocketImpl.join(Native Method)
        at
java.base/java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:235)
        at
java.base/java.net.MulticastSocket.joinGroup(MulticastSocket.java:328)
        at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)

java.net.SocketException: java.net.SocketException: Invalid argument

I can confirm that udp46 socket gets created before the program exists

udp46          0      0 *.6790                 *.*

-- 
You are receiving this mail because:
You are on the CC list for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193246-7501-My3uxFHOfx>