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

test: flaky disk allocator #371

Open
0xNineteen opened this issue Nov 8, 2024 · 1 comment
Open

test: flaky disk allocator #371

0xNineteen opened this issue Nov 8, 2024 · 1 comment

Comments

@0xNineteen
Copy link
Contributor

x19@x19s-MacBook-Pro sig % zig build test
test
└─ run test 337/338 passed, 1 failed
error: 'utils.allocators.test.disk allocator stdlib test' failed: /Users/x19/Documents/zig-macos-aarch64-0.13.0/lib/std/mem/Allocator.zig:225:89: 0x1092caceb in allocBytesWithAlignment__anon_48594 (test)
    const byte_ptr = self.rawAlloc(byte_count, log2a(alignment), return_address) orelse return Error.OutOfMemory;
                                                                                        ^
/Users/x19/Documents/zig-macos-aarch64-0.13.0/lib/std/mem/Allocator.zig:211:5: 0x1092d0687 in allocWithSizeAndAlignment__anon_48729 (test)
    return self.allocBytesWithAlignment(alignment, byte_count, return_address);
    ^
/Users/x19/Documents/zig-macos-aarch64-0.13.0/lib/std/mem/Allocator.zig:193:5: 0x109833fcb in alignedAlloc__anon_65456 (test)
    return self.allocAdvancedWithRetAddr(T, alignment, n, @returnAddress());
    ^
/Users/x19/Documents/zig-macos-aarch64-0.13.0/lib/std/array_list.zig:457:36: 0x1096a075f in ensureTotalCapacityPrecise (test)
                const new_memory = try self.allocator.alignedAlloc(T, alignment, new_capacity);
                                   ^
/Users/x19/Documents/zig-macos-aarch64-0.13.0/lib/std/array_list.zig:434:13: 0x10953788f in ensureTotalCapacity (test)
            return self.ensureTotalCapacityPrecise(better_capacity);
            ^
/Users/x19/Documents/zig-macos-aarch64-0.13.0/lib/std/array_list.zig:483:13: 0x1093d0ff3 in addOne (test)
            try self.ensureTotalCapacity(newlen);
            ^
/Users/x19/Documents/zig-macos-aarch64-0.13.0/lib/std/array_list.zig:262:34: 0x1090744bb in append (test)
            const new_item_ptr = try self.addOne();
                                 ^
/Users/x19/Documents/zig-macos-aarch64-0.13.0/lib/std/heap.zig:871:9: 0x109074053 in testAllocatorAlignedShrink (test)
        try stuff_to_free.append(slice);
        ^
/Users/x19/Documents/sig/src/utils/allocators.zig:838:9: 0x1090752df in test.disk allocator stdlib test (test)
        try std.heap.testAllocatorAlignedShrink(dma);
        ^
@0xNineteen
Copy link
Contributor Author

@InKryption any thoughts on why this might fail sometimes?

@dnut dnut moved this from 🔖 Ready to 📋 Backlog in Sig Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant