Skip to content

Instantly share code, notes, and snippets.

@marler8997
Created March 11, 2021 22:18
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 marler8997/78cecfc76db67d28e14f8fe08544b997 to your computer and use it in GitHub Desktop.
Save marler8997/78cecfc76db67d28e14f8fe08544b997 to your computer and use it in GitHub Desktop.
info from crash from from https://github.com/ziglang/zig/pull/8174
info is CONSOLE_SCREEN_BUFFER_INFO{ .dwSize = COORD{ .X = 192, .Y = 9001 }, .dwCursorPosition = COORD{ .X = 0, .Y = 182 }, .wAttributes = 7, .srWindow = SMALL_RECT{ .Left = 0, .Top = 153, .Right = 191, .Bottom = 182 }, .dwMaximumWindowSize = COORD{ .X = 192, .Y = 86 } }
thread 3700 panic: integer overflow
D:\git\zig2\lib\std\Progress.zig:213:66: 0x7ff7f404fc14 in Progress.refreshWithHeldLock (test.obj)
const fill_chars = @intCast(windows.DWORD, info.dwSize.X * (info.dwSize.Y - info.dwCursorPosition.Y) - info.dwCursorPosition.X);
^
D:\git\zig2\lib\std\Progress.zig:182:36: 0x7ff7f403d160 in Progress.refresh (test.obj)
return self.refreshWithHeldLock();
^
D:\git\zig2\lib\std\special\test_runner.zig:49:25: 0x7ff7f401d2b4 in std.special.main (test.obj)
progress.refresh();
^
D:\git\zig2\lib\std\start.zig:174:65: 0x7ff7f40098de in start.WinStartup (test.obj)
std.os.windows.kernel32.ExitProcess(initEventLoopAndCallMain());
^
Unable to dump stack trace: FileNotFound
error: the following test command failed with exit code 2147483651:
D:\git\zig2\zig-cache\o\e360c79ab89bbe7399c7e69f8030abcd\test.exe D:\git\zig2\zig-cache\bin\zig.exe
The following command exited with error code 1:
D:\git\zig2\zig-cache\bin\zig.exe test D:\git\zig2\lib\std\std.zig --test-name-prefix std-native-Debug-bare-multi --cache-dir D:\git\zig2\zig-cache --global-cache-dir C:\Users\Jonathan\AppData\Local\zig --name test -I D:\git\zig2\test --override-lib-dir D:\git\zig2\lib
error: the following build command failed with exit code 1:
D:\git\zig2\zig-cache\o\1116e49c57dfe6baef3c1f65b46bc869\build.exe D:\git\zig2\zig-cache\bin\zig.exe D:\git\zig2 D:\git\zig2\zig-cache C:\Users\Jonathan\AppData\Local\zig test-std
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment