Assumed audience: People learning the Zig programming language Note that since Zig is in pretty active development this error message differs quite a bit between versions though the general idea should apply. For context though I'm using zig v0.17.0-dev.690+c5a61e899 which is the latest master and is not yet a stable release Error So I've been learning Zig since about yesterday and since then I've started writing a scripting language. During my test runs I kept running into this error: Bus error at address 0x104f6fa5d /zig/bin/lib/compiler_rt.zig:663:14: 0x104f3b9c8 in memset (compiler_rt) /zig/zig/lib/std/mem/Allocator.zig:450:5: 0x104e46c93 in free__anon_10187 (test) @memset(bytes, undefined); ^ /repo/src/root.zig:262:17: 0x104f2ff9b in deinit (test) gpa.free(self.content); ^ /repo/src/root.zig:281:26: 0x104f2dfff in test.Bus error at address repro (test) defer expected.deinit(gpa); ^ /zig/zig/lib/compiler/test_runner.zig:143:68: 0x104f0860b in mainServer (test) const status:…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.