Skip to content

Windows: Panic in example multicast_udp.zig #91

@RcCreeperTech

Description

@RcCreeperTech

When attempting to run the UDP multicast example the program reports a failure to bind to the multicast address.
Also in a seperate program that I tested where I try to bind to network.Address.IPv4.any and then join the multicast group the programs still panics with error.SocketNotBound

.\zig-out\bin\udp.exe
failed to bind to 224.0.0.1:9999:error.AddressNotAvailable
Failed to join mcast group network.Socket.MulticastGroup{ .interface = 0.0.0.0, .group = 224.0.0.1 }:error.SocketNotBound
Waiting for UDP messages from socket error.SocketNotBound
thread 9504 panic: reached unreachable code
C:\Users\Devin\Dev\zig\zig-network\network.zig:1493:35: 0xdc5103 in recvfrom (udp.exe.obj)
                    .WSAEINVAL => unreachable,
                                  ^
C:\Users\Devin\Dev\zig\zig-network\network.zig:689:31: 0xdc2af9 in receive (udp.exe.obj)
        return try recvfrom_fn(self.internal, data, flags, null, null);
                              ^
C:\Users\Devin\Dev\zig\zig-network\examples\multicast_udp.zig:50:37: 0xdc2011 in main (udp.exe.obj)
        const bytes = try r.read(msg[0..buflen]);
                                    ^
C:\tools\zigup\zig\0.14.0-dev.1038+87ec4e11c\files\lib\std\start.zig:442:53: 0xdc2e17 in WinStartup (udp.exe.obj)
    std.os.windows.ntdll.RtlExitUserProcess(callMain());
                                                    ^
???:?:?: 0x7ffaa7497343 in ??? (KERNEL32.DLL)
???:?:?: 0x7ffaa93026b0 in ??? (ntdll.dll)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions