Skip to content

Instantly share code, notes, and snippets.

@hdorio
Created September 3, 2021 15:01
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 hdorio/46c187442a9f38dc5fdcf78ace68d488 to your computer and use it in GitHub Desktop.
Save hdorio/46c187442a9f38dc5fdcf78ace68d488 to your computer and use it in GitHub Desktop.
const std = @import("std");
// Tested on Ubuntu 20.04.3 LTS x86_64 GNU/Linux
// `ulimit -s` => 8192
pub fn main() void {
// var big: [16_384 * 1_023]u8 = undefined; // works
var big: [16_384 * 1_024]u8 = undefined; // Segmentation fault
_ = big;
std.debug.print("aybabtu\n", .{});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment