Skip to content

std lib tests failing on aarch64 #3288

Closed

Description

@andrewrk
./zig test ../std/std.zig -target aarch64v8_5a-linux-none --test-cmd qemu-aarch64 --test-cmd-bin --override-std-dir ../std 
208/1221 rb.test "std-aarch64-linux-none-Debug-bare-multirb"...invalid enum value
/home/andy/dev/zig/std/rb.zig:106:16: 0x460343 in rb.Node.getColor (test)
        return @intToEnum(Color, @intCast(u1, node.parent_and_color & 1));
               ^
/home/andy/dev/zig/std/rb.zig:84:29: 0x45ff77 in rb.Node.isBlack (test)
        return node.getColor() == Black;
                            ^
/home/andy/dev/zig/std/rb.zig:183:33: 0x3d84c7 in rb.Tree.insert (test)
            if (parent.*.isBlack())
                                ^
/home/andy/dev/zig/std/rb.zig:533:20: 0x33bc6f in rb.test "std-aarch64-linux-none-Debug-bare-multirb" (test)
    _ = tree.insert(&ns[3].node);
                   ^
/home/andy/dev/zig/std/special/test_runner.zig:13:25: 0x7f423b in std.special.main (test)
        if (test_fn.func()) |_| {
                        ^
/home/andy/dev/zig/std/special/start.zig:189:37: 0x7f3907 in std.special.posixCallMainAndExit (test)
            const result = root.main() catch |err| {
                                    ^
/home/andy/dev/zig/std/special/start.zig:87:5: 0x7f379f in std.special._start (test)
    @noInlineCall(posixCallMainAndExit);
    ^

Activity

  1. added
    bug
    contributor friendly
    standard library
    arch-aarch64
    on Sep 22, 2019
  2. added this to the 0.6.0 milestone on Sep 22, 2019
  3. changed the title [-]std.rb test failing on aarch64[/-] [+]std lib tests failing on aarch64[/+] on Sep 22, 2019
  4. andrewrk commented on Sep 22, 2019

    @andrewrk
    MemberAuthor

    More:

    210/1221 rb.test "std-aarch64-linux-none-Debug-bare-multimultiple inserts, followed by calling first and last"...invalid enum value
    /home/andy/dev/zig/std/rb.zig:106:16: 0x595223 in rb.Node.getColor (test)
            return @intToEnum(Color, @intCast(u1, node.parent_and_color & 1));
                   ^
    /home/andy/dev/zig/std/rb.zig:84:29: 0x45eddb in rb.Node.isBlack (test)
            return node.getColor() == Black;
                                ^
    /home/andy/dev/zig/std/rb.zig:183:33: 0x3d80b3 in rb.Tree.insert (test)
                if (parent.*.isBlack())
                                    ^
    /home/andy/dev/zig/std/rb.zig:591:20: 0x33bdb3 in rb.test "std-aarch64-linux-none-Debug-bare-multimultiple inserts, followed by calling first and last" (test)
        _ = tree.insert(&second.node);
                       ^
    /home/andy/dev/zig/std/special/test_runner.zig:13:25: 0x7f301f in std.special.main (test)
            if (test_fn.func()) |_| {
                            ^
    /home/andy/dev/zig/std/special/start.zig:189:37: 0x7f26eb in std.special.posixCallMainAndExit (test)
                const result = root.main() catch |err| {
                                        ^
    /home/andy/dev/zig/std/special/start.zig:87:5: 0x7f2583 in std.special._start (test)
        @noInlineCall(posixCallMainAndExit);
        ^
    
    243/1221 fs.path.test "std-aarch64-linux-none-Debug-bare-multiresolveWindows"...reached unreachable code
    /home/andy/dev/zig/std/fs/path.zig:411:9: 0x470163 in fs.path.resolveWindows (test)
            switch (parsed.kind) {
            ^
    /home/andy/dev/zig/std/fs/path.zig:705:26: 0x3e910b in fs.path.testResolveWindows (test)
        return resolveWindows(debug.global_allocator, paths) catch unreachable;
                             ^
    /home/andy/dev/zig/std/fs/path.zig:682:50: 0x33f4ff in fs.path.test "std-aarch64-linux-none-Debug-bare-multiresolveWindows" (test)
        testing.expect(mem.eql(u8, testResolveWindows([_][]const u8{ "//server/share", "..", "relative\\" }), "\\\\server\\share\\relative"));
                                                     ^
    /home/andy/dev/zig/std/special/test_runner.zig:13:25: 0x7f2d27 in std.special.main (test)
            if (test_fn.func()) |_| {
                            ^
    /home/andy/dev/zig/std/special/start.zig:189:37: 0x7f23f3 in std.special.posixCallMainAndExit (test)
                const result = root.main() catch |err| {
                                        ^
    /home/andy/dev/zig/std/special/start.zig:87:5: 0x7f228b in std.special._start (test)
        @noInlineCall(posixCallMainAndExit);
        ^
    qemu: uncaught target signal 6 (Aborted) - core dumped
    
    Tests failed. Use the following command to reproduce the failure:
    /home/andy/dev/zig/zig-cache/o/CmEnwVQ9qGTiedBxe3AyoCzuc6ZWgH_L9pLAl8xPWeK4XRpbvoSCvwscYWtlhRLB/test
    
    248/1221 fs.path.test "std-aarch64-linux-none-Debug-bare-multirelative"...reached unreachable code
    /home/andy/dev/zig/std/fs/path.zig:411:9: 0x597e3f in fs.path.resolveWindows (test)
            switch (parsed.kind) {
            ^
    /home/andy/dev/zig/std/fs/path.zig:975:45: 0x470d47 in fs.path.relativeWindows (test)
        const resolved_from = try resolveWindows(allocator, [_][]const u8{from});
                                                ^
    /home/andy/dev/zig/std/fs/path.zig:1138:35: 0x3e8f4f in fs.path.testRelativeWindows (test)
        const result = relativeWindows(debug.global_allocator, from, to) catch unreachable;
                                      ^
    /home/andy/dev/zig/std/fs/path.zig:1107:24: 0x34069f in fs.path.test "std-aarch64-linux-none-Debug-bare-multirelative" (test)
        testRelativeWindows("\\\\foo\\bar", "\\\\foo\\bar\\baz", "baz");
                           ^
    /home/andy/dev/zig/std/special/test_runner.zig:13:25: 0x7f28eb in std.special.main (test)
            if (test_fn.func()) |_| {
                            ^
    /home/andy/dev/zig/std/special/start.zig:189:37: 0x7f1fb7 in std.special.posixCallMainAndExit (test)
                const result = root.main() catch |err| {
                                        ^
    /home/andy/dev/zig/std/special/start.zig:87:5: 0x7f1e4f in std.special._start (test)
        @noInlineCall(posixCallMainAndExit);
        ^
    qemu: uncaught target signal 6 (Aborted) - core dumped
    
    Tests failed. Use the following command to reproduce the failure:
    /home/andy/dev/zig/zig-cache/o/F6qo1i2P6CoI8FzsY5pkfmJlyjOhJ1zIt0_KYM4e0568HLtEZBkXebzTmXLaTAFD/test
    

    That's it though. With these disabled, the rest of the std lib tests pass.

  5. andrewrk commented on Sep 22, 2019

    @andrewrk
    MemberAuthor

    With -lc -target aarch64-linux-gnu:

    361/1221 io.test.test "std-aarch64-linux-gnu-Debug-c-multi write a file, read it, then delete it"...unexpected errno: 22
    unexpected errno: 22
    unexpected errno: 22
    unexpected errno: 22
    unexpected errno: 22
    unexpected errno: 22
    unexpected errno: 22
    unexpected errno: 22
    unexpected errno: 22
    unexpected errno: 22
    unexpected errno: 22
    unexpected errno: 22
    unexpected errno: 22
    ...this goes on for a long time
    
    910/1221 os.test.test "std-aarch64-linux-gnu-Debug-c-multi AtomicFile"...unexpected errno: 22
    unexpected errno: 22
    unexpected errno: 22
    unexpected errno: 22
    unexpected errno: 22
    unexpected errno: 22
    unexpected errno: 22
    unexpected errno: 22
    

    Just those 2 for that target.

  6. LemonBoy commented on Sep 22, 2019

    @LemonBoy
    Contributor

    The first two failures are due to #3271, sadly

  7. modified the milestones: 0.6.0, 0.7.0 on Oct 23, 2019
  8. modified the milestones: 0.7.0, 0.8.0 on Oct 30, 2020
  9. modified the milestones: 0.8.0, 0.9.0 on Nov 6, 2020
  10. zhaozg commented on Nov 14, 2020

    @zhaozg
    Contributor

    I crossbuild luajit with target aarch64-linux-gnu and got luajit,
    run with qemu, I got

    qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped
    
  11. modified the milestones: 0.9.0, 0.10.0 on May 19, 2021
  12. alexrp commented on Sep 5, 2024

    @alexrp
    Member

    Does anything actionable remain here?

  13. alexrp commented on Oct 2, 2024

    @alexrp
    Member

    Closing this since I couldn't find any remaining disabled tests.

  14. modified the milestones: 0.16.0, 0.14.0 on Oct 2, 2024
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

    arch-aarch64bugcontributor friendlystandard library

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions