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
By mistake I used recursively Default::default() inside Default::default() implementation.
Compilation suceeded, but program crashed on illegal instruction.
thread '<main>' has overflowed its stack
Program received signal SIGILL, Illegal instruction.
0x000055555555b97e in rust_stack_exhausted ()
(gdb) bt
#0 0x000055555555b97e in rust_stack_exhausted ()
#1 0x00005555555590c1 in __morestack ()
#2 0x000055555555900b in B.Default::default::h3de843a3f3bb0910zaa ()
#3 0x000055555555900b in B.Default::default::h3de843a3f3bb0910zaa ()
#4 0x000055555555900b in B.Default::default::h3de843a3f3bb0910zaa ()
#5 0x000055555555900b in B.Default::default::h3de843a3f3bb0910zaa ()
#6 0x000055555555900b in B.Default::default::h3de843a3f3bb0910zaa ()
#7 0x000055555555900b in B.Default::default::h3de843a3f3bb0910zaa ()
(...)
The text was updated successfully, but these errors were encountered:
The SIGILL is an intentional abort triggered by the stack overflow handling code.
The important part is thread '<main>' has overflowed its stack.
Even with #26783, this would only be a warning, Rust does not statically prevent infinite recursion.
By mistake I used recursively
Default::default()
insideDefault::default()
implementation.Compilation suceeded, but program crashed on illegal instruction.
I tried this code:
I expected to see this happen: compiler error
Instead, this happened: compilation succeeded, program crashes (illegal instruction)
Meta
rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: