Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Darwin: connection-mode socket was connected already #69

Open
kassane opened this issue Jul 10, 2023 · 0 comments
Open

Darwin: connection-mode socket was connected already #69

kassane opened this issue Jul 10, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@kassane
Copy link
Contributor

kassane commented Jul 10, 2023

Uses zig-macos-x86_64-0.11.0-dev.3950+a75531073 same source 7b5f76e (standalone project test)

edit: repo fork (CI test): https://github.com/kassane/zig-network/actions/runs/5568702251

Build ok. however when running:

thread 7538 panic: reached unreachable code
/Users/runner/hostedtoolcache/zig/master/x64/lib/std/os.zig:5985:24: 0x10d5fe61b in sendto (ntp-zig)
            .ISCONN => unreachable, // connection-mode socket was connected already but a recipient was specified
                       ^
/Users/runner/.cache/zig/p/122090e7cb4459c2224399a45c56f47462733b919aa547c96b8c14ee705bfa22976e/network.zig:520:46: 0x10d5ee39f in sendTo (ntp-zig)
            .ipv4 => |sockaddr| try sendto_fn(self.internal, data, flags, @ptrCast(&sockaddr), @sizeOf(@TypeOf(sockaddr))),
                                             ^
/Users/runner/.cache/zig/p/122090e7cb4459c2224399a45c56f47462733b919aa547c96b8c14ee705bfa22976e/network.zig:469:35: 0x10d5d5859 in send (ntp-zig)
            return try self.sendTo(ep, data);
                                  ^
/Users/runner/hostedtoolcache/zig/master/x64/lib/std/io/writer.zig:17:27: 0x10d5ac956 in write (ntp-zig)
            return writeFn(self.context, bytes);
                          ^
/Users/runner/hostedtoolcache/zig/master/x64/lib/std/io/writer.zig:23:40: 0x10d5a8774 in writeAll (ntp-zig)
                index += try self.write(bytes[index..]);
                                       ^
/Users/runner/work/ntp-zig/ntp-zig/src/main.zig:14:31: 0x10d5a7f01 in main (ntp-zig)
    try sock.writer().writeAll(&request);
                              ^
/Users/runner/hostedtoolcache/zig/master/x64/lib/std/start.zig:608:37: 0x10d5a8fb2 in main (ntp-zig)
            const result = root.main() catch |err| {
                                    ^
???:?:?: 0x115a8652d in ??? (???)
???:?:?: 0x0 in ??? (???)
run ntp-zig: error: the following command terminated unexpectedly:
/Users/runner/work/ntp-zig/ntp-zig/zig-cache/o/703913aea06a991a2c9b3f3ffe120bda/ntp-zig 
Build Summary: 1/3 steps succeeded; 1 failed (disable with --summary none)
run transitive failure
+- run ntp-zig failure
error: the following build command failed with exit code 1:
/Users/runner/work/ntp-zig/ntp-zig/zig-cache/o/b553499fe5c39aecb53f8ff1ef25817f/build /Users/runner/hostedtoolcache/zig/master/x64/zig /Users/runner/work/ntp-zig/ntp-zig /Users/runner/work/ntp-zig/ntp-zig/zig-cache /Users/runner/.cache/zig run -freference-trace -freference-trace
@ikskuh ikskuh added the bug Something isn't working label Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants