# test: Set emit_bin=false for some safety tests\. · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/5beb5f20d282fd0db8715899ba6a5d6630d91bb4)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 5beb5f20d282fd0db8715899ba6a5d6630d91bb4

Requested commit: 5beb5f20d282fd0db8715899ba6a5d6630d91bb4

Commit: 5beb5f20d282fd0db8715899ba6a5d6630d91bb4

Tree: 1302cd42afa3c95970a6a244f20c26375638db44

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
test: Set emit_bin=false for some safety tests.

This should hopefully be reverted soon with Andrew's work on the self-hosted
wasm linker.

error: thread 171731 panic: integer overflow
/home/alexrp/Source/ziglang/zig/src/link/Wasm.zig:2392:32: 0x22b709e in setupMemory (zig)
        break :index sym.index - wasm.imported_globals_count;
                               ^
/home/alexrp/Source/ziglang/zig/src/link/Wasm.zig:2678:25: 0x1ed1be6 in flushModule (zig)
    try wasm.setupMemory();
                        ^
/home/alexrp/Source/ziglang/zig/src/link/Wasm.zig:2619:28: 0x1c2e4d4 in flush (zig)
    return wasm.flushModule(arena, tid, prog_node);
                           ^
/home/alexrp/Source/ziglang/zig/src/link.zig:874:77: 0x1a55ad7 in flush (zig)
                return @as(*tag.Type(), @fieldParentPtr("base", base)).flush(arena, tid, prog_node);
                                                                            ^
/home/alexrp/Source/ziglang/zig/src/Compilation.zig:2411:17: 0x1a553f9 in flush (zig)
        lf.flush(arena, tid, prog_node) catch |err| switch (err) {
                ^
/home/alexrp/Source/ziglang/zig/src/Compilation.zig:2371:22: 0x1a58d60 in update (zig)
            try flush(comp, arena, .{
                     ^
/home/alexrp/Source/ziglang/zig/src/main.zig:4114:32: 0x1ae392b in serve (zig)
                try comp.update(main_progress_node);
                               ^
/home/alexrp/Source/ziglang/zig/src/main.zig:3555:22: 0x1b05322 in buildOutputType (zig)
            try serve(
                     ^
/home/alexrp/Source/ziglang/zig/src/main.zig:265:31: 0x195faca in mainArgs (zig)
        return buildOutputType(gpa, arena, args, .{ .build = .Obj });
                              ^
/home/alexrp/Source/ziglang/zig/src/main.zig:200:20: 0x195c995 in main (zig)
    return mainArgs(gpa, arena, args);
                   ^
/home/alexrp/Source/ziglang/zig/lib/std/start.zig:617:37: 0x195c49e in main (zig)
            const result = root.main() catch |err| {
                                    ^

```

## Parents

- [1d1ca8485454a4b14f20376aff532bfe7c959155](https://git.cafe/gitcafe/zig/commit/1d1ca8485454a4b14f20376aff532bfe7c959155?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/5beb5f20d282fd0db8715899ba6a5d6630d91bb4?format=markdown)
