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 upStack overflow when compiling lots of macros #29466
Comments
This comment has been minimized.
This comment has been minimized.
|
Looks like we should be looping instead of recursing here? cc @nrc |
This comment has been minimized.
This comment has been minimized.
|
This is also a regression (the code compiles on stable and beta). |
This comment has been minimized.
This comment has been minimized.
|
cc @nikomatsakis looks like a mir problem? I guess the macros thing is just a way to construct the problematic code? |
This comment has been minimized.
This comment has been minimized.
|
I agree this is caused by MIR construction. The macro seems kind of irrelevant. |
This comment has been minimized.
This comment has been minimized.
|
I think the cause is that each |
This comment has been minimized.
This comment has been minimized.
|
Relevant discussion thread: https://internals.rust-lang.org/t/supporting-infinite-recursion-via-stacker/2863 |
nikomatsakis
added
T-compiler
A-mir
labels
Nov 4, 2015
This comment has been minimized.
This comment has been minimized.
|
triage: P-high This is a (Nightly-only) regression, so it's got to be fixed. |
Toby-S commentedOct 30, 2015
The code in this (large) gist causes a stack overflow using the current nightly (detailed below):
This works as expected on stable and beta. On nightly, it prints the following:
thread 'rustc' has overflowed its stackSegmentation faultgdb backtrace: