Add a way to fail the process on `panic!`
Nobody has claimed this yet.
- Dominant language
- Markdown
- Stars
- 6.6k
- Forks
- 1.7k
- Avg merge
- 16h 14m
- Merged PRs (30d)
- 1
Description
Issue by larsbergstrom
Friday Feb 28, 2014 at 20:41 GMT
For earlier discussion, see https://github.com/rust-lang/rust/issues/12629
This issue was labelled with: in the Rust repository
It would be nice to have something like an environment variable or a runtime flag we could set that would cause calls to fail! to unconditionally terminate the entire process.
When we are running reference tests and content tests in Servo, we often want failure within a task to take down the whole process, both because our recovery could cause a "false" test success and because our failure recovery (currently) often results in a hung process.
This feature would also be very nice for easily getting a good stack backtrace from an intermittent failure - we can just do ulimit -c unlimited, turn on this flag, and then run the test until a core file is emitted.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read the earlier discussion at rust-lang/rust#12629 first; the issue names no files, tests, or entry points. Define the desired process-wide behavior for task failures, the flag or environment-variable interface, and a testable termination and backtrace outcome before implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100