You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cargo test
Compiling sig11 v0.1.0 (file:///home/mvyskocil/bordel/adventofcode/sig11)
src/main.rs:6:9: 6:17 warning: unused variable: `grid`, #[warn(unused_variables)] on by default
src/main.rs:6 let mut grid : Grid = [[0; 1000]; 1000];
^~~~~~~~
src/main.rs:6:9: 6:17 warning: variable does not need to be mutable, #[warn(unused_mut)] on by default
src/main.rs:6 let mut grid : Grid = [[0; 1000]; 1000];
^~~~~~~~
Running target/debug/sig11-3533bb6cb3c1d616
running 1 test
Process didn't exit successfully: `/home/mvyskocil/bordel/adventofcode/sig11/target/debug/sig11-3533bb6cb3c1d616` (signal: 11)
I've tested several basic types (isize, u32, i64, char, ...), but it fails all the time with segfault. The only one form, which I found working well is array of bools.
1000*1000 is nearly a MB. I believe the default stack for new threads in Rust is 2MB although Rust doesn't control the stack size for the main thread. This is simply a stack overflow.
Ah yes this just looks like a standard case of stack overflow. The guard page is getting completely skipped over here which is why you're not getting the standard stack overflow message as well. As a result this is largely just a dupe of #16012, so I'm going to close this in favor of that.
The testcase
This is an output of lldb
The text was updated successfully, but these errors were encountered: