Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upSIGTRAP in drop glue when slice literal initialization panics #30018
Comments
sfackler
added
the
I-crash
label
Nov 24, 2015
This comment has been minimized.
This comment has been minimized.
|
Popped up in broken tests in one of my crates: kornelski/rust-security-framework@8ab48c2 |
This comment has been minimized.
This comment has been minimized.
|
triage: I-nominated probably good to have crashes like this categorized at least |
rust-highfive
added
the
I-nominated
label
Nov 25, 2015
alexcrichton
added
T-compiler
and removed
I-nominated
labels
Nov 25, 2015
This comment has been minimized.
This comment has been minimized.
|
It does appear to have been present since 1.0 at least, BTW. |
sfackler
added
the
I-nominated
label
Nov 25, 2015
This comment has been minimized.
This comment has been minimized.
|
@alexcrichton added back I-nominated, assuming that the removal was unintentional. |
This comment has been minimized.
This comment has been minimized.
|
@pnkfelix notes that this is likely a debug flag, and probably only occurs if debug assertions are enabled. |
This comment has been minimized.
This comment has been minimized.
|
triage: P-medium |
This comment has been minimized.
This comment has been minimized.
|
Yeah, when compiling with optimizations, it won't hit this signal but continues on and behavior depends on the specific case. The minimized example exits without issue, but the test case I had in my crate segfaults. |
sfackler
added
P-medium
and removed
I-nominated
labels
Dec 6, 2015
pnkfelix
self-assigned this
Jan 11, 2016
This comment has been minimized.
This comment has been minimized.
|
I think I know why this happens; it is probably related to how somewhat sloppy handling of the drop flags on scratch/temporary values in other contexts (see e.g. #30530). |
sfackler commentedNov 24, 2015
Backtrace: