Skip to content

Instantly share code, notes, and snippets.

@fengb
Created May 22, 2019 03:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fengb/13a21cd949e05eca1bc80e96093f5c37 to your computer and use it in GitHub Desktop.
Save fengb/13a21cd949e05eca1bc80e96093f5c37 to your computer and use it in GitHub Desktop.
Test 1/1 DirectAllocator...reached unreachable code
/usr/local/Cellar/zig/0.4.0+3b6a4fe4/lib/zig/std/debug.zig:168:30: 0x108397429 in _std.debug.assert (test.o)
pub fn assert(ok: bool) void {
^
/usr/local/Cellar/zig/0.4.0+3b6a4fe4/lib/zig/std/mem.zig:106:15: 0x10839983a in _std.mem.Allocator.alignedAlloc (test.o)
assert(byte_slice.len == byte_count);
^
/usr/local/Cellar/zig/0.4.0+3b6a4fe4/lib/zig/std/mem.zig:91:9: 0x108399101 in _std.mem.Allocator.alloc (test.o)
return self.alignedAlloc(T, @alignOf(T), n);
^
/Users/fengb/projects/zee_alloc/src/main.zig:112:17: 0x108397926 in _testAllocator (test.o)
var slice = try allocator.alloc(*i32, 100);
^
/Users/fengb/projects/zee_alloc/src/main.zig:144:22: 0x10839755e in _DirectAllocator (test.o)
try testAllocator(&zee_alloc.allocator);
^
/usr/local/Cellar/zig/0.4.0+3b6a4fe4/lib/zig/std/special/test_runner.zig:13:25: 0x1083bd569 in _std.special.main (test.o)
if (test_fn.func()) |_| {
^
/usr/local/Cellar/zig/0.4.0+3b6a4fe4/lib/zig/std/special/bootstrap.zig:126:22: 0x1083bd228 in _main (test.o)
root.main() catch |err| {
^
???:?:?: 0x7fff68ec6ed9 in ??? (???)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment