-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustc overflowed stack with serde #67817
Labels
C-bug
Category: This is a bug.
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
jonas-schievink
added
C-bug
Category: This is a bug.
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
I-nominated
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Jan 2, 2020
Partial stack trace:
|
This crash also occurs with this simplified code: use serde::{Serialize, Serializer};
struct Type;
impl Serialize for Type {
fn serialize<S>(&self, _: S) -> Result<S::Ok, S::Error>
where
S: Serializer
{
#[derive(Serialize)]
struct S;
}
} It happens with use serde::{Deserialize, Deserializer};
struct Type;
impl<'de> Deserialize<'de> for Type {
fn deserialize<D>(_: D) -> Result<Self, D::Error>
where
D: Deserializer<'de>
{
#[derive(Serialize)]
struct S;
}
} |
Duplicate of #55779. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I'm not sure is it a bug of
rustc
orserde
, but this simple code:Causes compiler (stable
1.40.0
and nightly2019-12-29
) to overflow its own stack:(playground)
The text was updated successfully, but these errors were encountered: