Segfault in unstable::lang::return_to_mut #5517
Labels
A-lifetimes
Area: Lifetimes / regions
A-runtime
Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows
A-type-system
Area: Type system
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Found this while attempting to reproduce #3039. This code crashes:
This is as minimal as I can make it. Removing the second clause of the
||
makes it not crash. Changing the||
to a&&
makes it not crash.The backtrace is:
It crashes where it is trying to read
(*a).header.ref_count
becausea
is a null pointer.The text was updated successfully, but these errors were encountered: