Skip to content
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

Provide more information about call stack in case of stack overflow during compilation #64929

Closed
olegnn opened this issue Sep 30, 2019 · 1 comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints C-feature-request Category: A feature request, i.e: not implemented / a PR. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@olegnn
Copy link
Contributor

olegnn commented Sep 30, 2019

Compiling code with custom macros

RUST_BACKTRACE=full cargo build

results in

thread 'rustc' has overflowed its stack
fatal runtime error: stack overflow
error: could not compile `tests`.
Caused by:
  process didn't exit successfully: `rustc --edition=2018 --crate-name tests src/main.rs --color always --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=ae3074fbe56a7184 -C extra-filename=-ae3074fbe56a7184 ` (signal: 6, SIGABRT: process abort signal)

That's full message with no information about place in code which caused a problem and with no call stack even if RUST_BACKTRACE=full set.
It would be better if compiler could handle this type of exceptions and provide some debug information (call stack at least).

@jonas-schievink jonas-schievink added A-diagnostics Area: Messages for errors, warnings, and lints C-feature-request Category: A feature request, i.e: not implemented / a PR. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Sep 30, 2019
@nagisa
Copy link
Member

nagisa commented Sep 30, 2019

This will not happen; we are going to add stretchy stacks in rustc instead. cf. #41884

@nagisa nagisa closed this as completed Sep 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints C-feature-request Category: A feature request, i.e: not implemented / a PR. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants