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
I've played with rust, and when I've tried to push too many things in Vec, it cause Rust to made out of memory error. That was fine. But that it said that there was an 'Ilegal instruction' and that core was dumped.
#6 0x000055555556d258 in panic_unwind::__rust_maybe_catch_panic (f=0x5555555667f0 <std::panicking::try::do_call<fn(),()>>, data=0x2 <error: Cannot access memory at address 0x2>, data_ptr=0x7fffffffdc90, vtable_ptr=0x7fffffffdc88)
at /build/rustc-tTSICN/rustc-1.18.0+dfsg1/src/libpanic_unwind/lib.rs:98
#7 0x00005555555667a8 in std::panicking::try<(),fn()> (f=<optimized out>) at /build/rustc-tTSICN/rustc-1.18.0+dfsg1/src/libstd/panicking.rs:433
#8 0x000055555555d2a6 in std::panic::catch_unwind<fn(),()> (f=<optimized out>) at /build/rustc-tTSICN/rustc-1.18.0+dfsg1/src/libstd/panic.rs:361
#9 std::rt::lang_start (main=0x55555555aca0 <ch8::main> "UH\211\345H\203\354`1\300\211Ǹ\004\000", argc=1, argv=0x7fffffffde18) at /build/rustc-tTSICN/rustc-1.18.0+dfsg1/src/libstd/rt.rs:57
#10 0x000055555555ade3 in main ()
Why Rust calls for 'ud2' instruction which is intended to cause invalid opcode exception?
This is how intrinsics::abort is implemented. The described behaviour is expected in out-of-memory situations. It is not ideal and you will have to wait until fallible allocations are supported in containers for it to get better: #29802.
Hello.
I've played with rust, and when I've tried to push too many things in
Vec
, it cause Rust to made out of memory error. That was fine. But that it said that there was an 'Ilegal instruction' and that core was dumped.Final of strace output on the binary:
Final of backtrace in gdb:
gdb's
layout asm
shows:Why Rust calls for 'ud2' instruction which is intended to cause invalid opcode exception?
My source code (but I think, that any long chain of push'es would do this).
The text was updated successfully, but these errors were encountered: