Skip to content

fs.copyFile test fails with qemu-6.0.0 and target i386 linux none #8653

@mikdusan

Description

@mikdusan

reduction:

$ zig test -target i386-linux-none lib/std/fs.zig --test-cmd /opt/qemu-linux-x86_64-6.0.0/bin/qemu-i386 --test-cmd-bin --test-filter "copyFile"
[default] (err): Unseekable.copyFile"...
/home/mike/project/zig/work/qemu/lib/std/heap.zig:720:17: 0x409f8b in std.heap.FixedBufferAllocator.resize (test)
                return error.OutOfMemory;
                ^
/home/mike/project/zig/work/qemu/lib/std/os.zig:5465:26: 0x410bfe in std.os.copy_file_range (test)
            EOVERFLOW => return error.Unseekable,
                         ^
/home/mike/project/zig/work/qemu/lib/std/fs.zig:2536:25: 0x40db31 in copy_file (test)
            const amt = try os.copy_file_range(fd_in, offset, fd_out, offset, math.maxInt(u32), 0);
                        ^
/home/mike/project/zig/work/qemu/lib/std/fs.zig:1963:9: 0x40c9e9 in Dir.copyFile (test)
        try copy_file(in_file.handle, atomic_file.file.handle);
        ^
/home/mike/project/zig/work/qemu/lib/std/fs/test.zig:644:5: 0x40a2e0 in fs.test.test "fs.copyFile" (test)
    try tmp.dir.copyFile(src_file, tmp.dir, dest_file, .{});
    ^
/home/mike/project/zig/work/qemu/lib/std/special/test_runner.zig:83:17: 0x432c23 in std.special.main (test)
                return err;
                ^
error: the following test command failed with exit code 1:
/opt/qemu-linux-x86_64-6.0.0/bin/qemu-i386 lib/std/zig-cache/o/f389793c3c4816b8128e2418efb5b41f/test /home/mike/project/zig/work/qemu/_build/zig

Metadata

Metadata

Assignees

No one assigned

    Labels

    downstreamAn issue with a third party project that uses Zig.os-linux

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions