Skip to content

Httpspec fails basic build/run cycle on Arch (and probably _ALL_ linux) #26

Description

@bradcypert

Httpspec fails basic build/run cycle on Arch (and probably ALL linux)

zig build run
thread 29741 panic: reached unreachable code
/home/brad/.local/share/mise/installs/zig/0.15.1/lib/std/posix.zig:5296:18: 0x11b4d4b in lseek_SET (std.zig)
        .BADF => unreachable, // always a race condition
                 ^
/home/brad/.local/share/mise/installs/zig/0.15.1/lib/std/fs/Dir.zig:377:40: 0x119f9d8 in nextLinux (std.zig)
                        posix.lseek_SET(self.dir.fd, 0) catch unreachable; // EBADF here likely means that the Dir was not opened with iteration permissions
                                       ^
/home/brad/.local/share/mise/installs/zig/0.15.1/lib/std/fs/Dir.zig:361:34: 0x1195329 in next (std.zig)
            return self.nextLinux() catch |err| switch (err) {
                                 ^
/home/brad/Projects/httpspec/src/main.zig:169:23: 0x118b591 in listHttpFiles (main.zig)
    while (try it.next()) |entry| {
                      ^
/home/brad/Projects/httpspec/src/main.zig:85:45: 0x118ca19 in collectSpecFiles__anon_24463 (main.zig)
        const http_files = try listHttpFiles(allocator, ".");
                                            ^
/home/brad/Projects/httpspec/src/main.zig:54:25: 0x118edcc in main (main.zig)
    try collectSpecFiles(allocator, &files, res);
                        ^
/home/brad/.local/share/mise/installs/zig/0.15.1/lib/std/start.zig:627:37: 0x1190e59 in posixCallMainAndExit (std.zig)
            const result = root.main() catch |err| {
                                    ^
/home/brad/.local/share/mise/installs/zig/0.15.1/lib/std/start.zig:232:5: 0x1184331 in _start (std.zig)
    asm volatile (switch (native_arch) {
    ^
???:?:?: 0x0 in ??? (???)
run
└─ run exe httpspec failure
error: the following command terminated unexpectedly:
/home/brad/Projects/httpspec/zig-out/bin/httpspec

Build Summary: 3/5 steps succeeded; 1 failed
run transitive failure

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions