Skip to content

Thread.test.thread local storage fails randomly on multiple 32-bit architectures #25498

@alexrp

Description

@alexrp

We've previously seen this on arm/armeb and thumb/thumbeb:

test
+- test-modules
   +- test-std
      +- run test std-riscv32-linux-none-baseline_rv32-Debug failure
thread 2151089 panic: reached unreachable code
/home/ci/actions-runner4/_work/zig/zig/lib/std/posix.zig:4995:17: 0x5cfe31 in munmap (test)
        else => unreachable,
                ^
/home/ci/actions-runner4/_work/zig/zig/lib/std/Thread.zig:1507:27: 0x65d873 in join (test)
        defer posix.munmap(self.thread.mapped);
                          ^
/home/ci/actions-runner4/_work/zig/zig/lib/std/Thread.zig:466:26: 0x65715b in join (test)
    return self.impl.join();
                         ^
/home/ci/actions-runner4/_work/zig/zig/lib/std/Thread.zig:1673:17: 0x9a1021 in test.thread local storage (test)
    thread2.join();
                ^
/home/ci/actions-runner4/_work/zig/zig/lib/compiler/test_runner.zig:138:29: 0x64d61b in mainServer (test)
                test_fn.func() catch |err| switch (err) {
                            ^
/home/ci/actions-runner4/_work/zig/zig/lib/compiler/test_runner.zig:67:26: 0x64ad1b in main (test)
        return mainServer() catch @panic("internal test runner failure");
                         ^
/home/ci/actions-runner4/_work/zig/zig/lib/std/start.zig:618:22: 0x64a389 in callMain (test)
            root.main();
                     ^
error: while executing test 'Thread.test.thread local storage', the following command terminated with signal 6 (expected exited with code 0):
qemu-riscv32 /home/ci/actions-runner4/_work/zig/zig/zig-local-cache/o/6e5ac3adf343e1b75cbebaaffbf4e0e2/test --cache-dir=/home/ci/actions-runner4/_work/zig/zig/zig-local-cache --seed=0x1f99addd --listen=-

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavioros-linuxstandard libraryThis issue involves writing Zig code for the standard library.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions