$ stage3/bin/zig test ../lib/std/std.zig -OReleaseSafe
Test [1054/2193] test.testHash union... FAIL (TestUnexpectedResult)
/home/andy/Downloads/zig/lib/std/heap/general_purpose_allocator.zig:913:13: 0x59e72d in createBucket (test)
return ptr;
^
/home/andy/Downloads/zig/lib/std/heap/general_purpose_allocator.zig:482:13: 0x559ca8 in allocSlot (test)
return bucket.page + slot_index * size_class;
^
/home/andy/Downloads/zig/lib/std/mem/Allocator.zig:323:9: 0x66f176 in create__anon_95284 (test)
return @intToPtr([*]T, @ptrToInt(byte_slice.ptr))[0..@divExact(byte_slice.len, @sizeOf(T))];
^
/home/andy/Downloads/zig/lib/std/mem/Allocator.zig:185:5: 0x66f17e in create__anon_95284 (test)
return &slice[0];
^
/home/andy/Downloads/zig/lib/std/os.zig:4363:13: 0x3a87a6 in mmap (test)
if (err == .SUCCESS) return @intToPtr([*]align(mem.page_size) u8, rc)[0..length];
^
/home/andy/Downloads/zig/lib/std/heap.zig:354:47: 0x558115 in alloc (test)
return result_ptr[0..alignPageAllocLen(aligned_len, n, len_align)];
^
/home/andy/Downloads/zig/lib/std/os.zig:4363:13: 0x3a87a6 in mmap (test)
if (err == .SUCCESS) return @intToPtr([*]align(mem.page_size) u8, rc)[0..length];
^
/home/andy/Downloads/zig/lib/std/heap.zig:354:47: 0x558115 in alloc (test)
return result_ptr[0..alignPageAllocLen(aligned_len, n, len_align)];
^
/home/andy/Downloads/zig/lib/std/heap/general_purpose_allocator.zig:913:13: 0x59e72d in createBucket (test)
return ptr;
^
/home/andy/Downloads/zig/lib/std/heap/general_purpose_allocator.zig:482:13: 0x559ca8 in allocSlot (test)
return bucket.page + slot_index * size_class;
^
/home/andy/Downloads/zig/lib/std/mem/Allocator.zig:323:9: 0x66f4db in init (test)
return @intToPtr([*]T, @ptrToInt(byte_slice.ptr))[0..@divExact(byte_slice.len, @sizeOf(T))];
^
/home/andy/Downloads/zig/lib/std/mem/Allocator.zig:185:5: 0x66f4e3 in init (test)
return &slice[0];
^
/home/andy/Downloads/zig/lib/std/heap/general_purpose_allocator.zig:482:13: 0x559ca8 in allocSlot (test)
return bucket.page + slot_index * size_class;
^
/home/andy/Downloads/zig/lib/std/mem/Allocator.zig:323:9: 0x66f4db in init (test)
return @intToPtr([*]T, @ptrToInt(byte_slice.ptr))[0..@divExact(byte_slice.len, @sizeOf(T))];
^
/home/andy/Downloads/zig/lib/std/mem/Allocator.zig:185:5: 0x66f4e3 in init (test)
return &slice[0];
^
/home/andy/Downloads/zig/lib/std/heap/general_purpose_allocator.zig:482:13: 0x559ca8 in allocSlot (test)
return bucket.page + slot_index * size_class;
^
/home/andy/Downloads/zig/lib/std/mem/Allocator.zig:323:9: 0x66f4db in init (test)
return @intToPtr([*]T, @ptrToInt(byte_slice.ptr))[0..@divExact(byte_slice.len, @sizeOf(T))];
^
/home/andy/Downloads/zig/lib/std/mem/Allocator.zig:185:5: 0x66f4e3 in init (test)
return &slice[0];
^
/home/andy/Downloads/zig/lib/std/hash/auto_hash.zig:0:0: 0x6712e9 in test.testHash union (test)
/home/andy/Downloads/zig/lib/std/hash/auto_hash.zig:0:0: 0x6712f1 in test.testHash union (test)
/home/andy/Downloads/zig/lib/std/os.zig:4363:13: 0x3a87a6 in mmap (test)
if (err == .SUCCESS) return @intToPtr([*]align(mem.page_size) u8, rc)[0..length];
^
/home/andy/Downloads/zig/lib/std/heap.zig:354:47: 0x558115 in alloc (test)
return result_ptr[0..alignPageAllocLen(aligned_len, n, len_align)];
^
/home/andy/Downloads/zig/lib/std/os.zig:4363:13: 0x3a87a6 in mmap (test)
if (err == .SUCCESS) return @intToPtr([*]align(mem.page_size) u8, rc)[0..length];
^
/home/andy/Downloads/zig/lib/std/heap.zig:354:47: 0x558115 in alloc (test)
return result_ptr[0..alignPageAllocLen(aligned_len, n, len_align)];
^
/home/andy/Downloads/zig/lib/std/heap/general_purpose_allocator.zig:913:13: 0x59e72d in createBucket (test)
return ptr;
^
/home/andy/Downloads/zig/lib/std/heap/general_purpose_allocator.zig:482:13: 0x559ca8 in allocSlot (test)
return bucket.page + slot_index * size_class;
^
/home/andy/Downloads/zig/lib/std/mem/Allocator.zig:323:9: 0x66f176 in create__anon_95284 (test)
return @intToPtr([*]T, @ptrToInt(byte_slice.ptr))[0..@divExact(byte_slice.len, @sizeOf(T))];
^
/home/andy/Downloads/zig/lib/std/mem/Allocator.zig:185:5: 0x66f17e in create__anon_95284 (test)
return &slice[0];
^
/home/andy/Downloads/zig/lib/std/os.zig:4363:13: 0x3a87a6 in mmap (test)
if (err == .SUCCESS) return @intToPtr([*]align(mem.page_size) u8, rc)[0..length];
^
/home/andy/Downloads/zig/lib/std/heap.zig:354:47: 0x558115 in alloc (test)
return result_ptr[0..alignPageAllocLen(aligned_len, n, len_align)];
^
/home/andy/Downloads/zig/lib/std/os.zig:4363:13: 0x3a87a6 in mmap (test)
if (err == .SUCCESS) return @intToPtr([*]align(mem.page_size) u8, rc)[0..length];
^
/home/andy/Downloads/zig/lib/std/heap.zig:354:47: 0x558115 in alloc (test)
return result_ptr[0..alignPageAllocLen(aligned_len, n, len_align)];
^
Same behavior when using stage2 instead of stage3.
Zig Version:
0.10.0-dev.3042+74b1defd7Same behavior when using stage2 instead of stage3.
-ODebug,-OReleaseFast, and-OReleaseSmallwork fine.