gonna break 150
thread 'main' panicked at library\core\src\panicking.rs:136:5:
attempted to leave type `&mut hlua::Lua<'_>` uninitialized, which is invalid
stack backtrace:
0: std::panicking::begin_panic_handler
at /rustc/fcab24817c72ffbd6ffb66d92b7ddc0d3ee4d2f0/library\std\src\panicking.rs:597
1: core::panicking::panic_nounwind_fmt
at /rustc/fcab24817c72ffbd6ffb66d92b7ddc0d3ee4d2f0/library\core\src\panicking.rs:106
2: core::panicking::panic_nounwind
at /rustc/fcab24817c72ffbd6ffb66d92b7ddc0d3ee4d2f0/library\core\src\panicking.rs:136
3: core::mem::uninitialized
at /rustc/fcab24817c72ffbd6ffb66d92b7ddc0d3ee4d2f0\library\core\src\mem\mod.rs:692
4: hlua::PushGuard<ref_mut$<hlua::Lua> >::into_inner<ref_mut$<hlua::Lua> >
at C:\Users\diogotito\.cargo\registry\src\index.crates.io-6f17d22bba15001f\hlua-0.4.1\src\lib.rs:228
5: hlua::lua_functions::impl$2::push_to_lua<ref_mut$<hlua::Lua>,std::io::cursor::Cursor<ref$<slice2$<u8> > > >
at C:\Users\diogotito\.cargo\registry\src\index.crates.io-6f17d22bba15001f\hlua-0.4.1\src\lua_functions.rs:163
6: hlua::lua_functions::LuaFunction<ref_mut$<hlua::Lua> >::load_from_reader<ref_mut$<hlua::Lua>,std::io::cursor::Cursor<ref$<slice2$<u8> > > >
at C:\Users\diogotito\.cargo\registry\src\index.crates.io-6f17d22bba15001f\hlua-0.4.1\src\lua_functions.rs:324
7: hlua::lua_functions::LuaFunction<ref_mut$<hlua::Lua> >::load<ref_mut$<hlua::Lua> >
at C:\Users\diogotito\.cargo\registry\src\index.crates.io-6f17d22bba15001f\hlua-0.4.1\src\lua_functions.rs:338
8: hlua::Lua::execute<enum2$<hlua::any::AnyHashableLuaValue> >
at C:\Users\diogotito\.cargo\registry\src\index.crates.io-6f17d22bba15001f\hlua-0.4.1\src\lib.rs:678
9: fpt::debugger::DebuggerTextInterface::run
at .\fpt\src\debugger.rs:353
10: fpt_cli::debug
at .\fpt-cli\src\main.rs:50
11: fpt_cli::main
at .\fpt-cli\src\main.rs:110
12: core::ops::function::FnOnce::call_once<enum2$<core::result::Result<tuple$<>,enum2$<rustyline::error::ReadlineError> > > (*)(),tuple$<> >
at /rustc/fcab24817c72ffbd6ffb66d92b7ddc0d3ee4d2f0\library\core\src\ops\function.rs:250
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
thread caused non-unwinding panic. aborting.
error: process didn't exit successfully: `target\debug\fpt-cli.exe debug` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)
Calling
break(N)
in the debugger triggers a panic in hluaExample
When I run
I'm expecting
Instead, I'm getting this: