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

Exception is never raised in fm_dispatch due to self-kill #9989

Open
berland opened this issue Feb 6, 2025 · 0 comments
Open

Exception is never raised in fm_dispatch due to self-kill #9989

berland opened this issue Feb 6, 2025 · 0 comments
Assignees
Labels

Comments

@berland
Copy link
Contributor

berland commented Feb 6, 2025

The os.killpg kills the fm_dispatch process such that the exception e is never raised. If there is a bug in fm_dispatch that triggers an exception, it will not be printed to the terminal. Running fm_dispatch in the runpath only gives you the output Terminated.

try:
fm_dispatch(sys.argv)
except Exception as e:
pgid = os.getpgid(os.getpid())
os.killpg(pgid, signal.SIGTERM)
raise e

@berland berland moved this to Todo in SCOUT Feb 6, 2025
@berland berland added the bug label Feb 6, 2025
@jonathan-eq jonathan-eq self-assigned this Feb 13, 2025
@jonathan-eq jonathan-eq moved this from Todo to In Progress in SCOUT Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

No branches or pull requests

2 participants