rust-lang / rust-lang/rfcs

Add a way to fail the process on `panic!`

Open
#715 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

T-lang T-libs
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.