Created
September 3, 2021 15:01
-
-
Save hdorio/46c187442a9f38dc5fdcf78ace68d488 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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