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

A bad CreateHandle can crash the supervisor process #401

Open
hyperthunk opened this issue Nov 9, 2018 · 0 comments
Open

A bad CreateHandle can crash the supervisor process #401

hyperthunk opened this issue Nov 9, 2018 · 0 comments

Comments

@hyperthunk
Copy link
Member

The code that handles RunClosure spawns a process to deal with initialising the starting the child. The code in wrapHandle, on the other hand, unpacks and executes the Closure (SupervisorPid -> Process(ProcessId, Message)) in the supervisor's own process, which could crash and bring down the managed process itself.

Since this is a common branch - executing every time we spawn a child using that ToChildStart constructor - we should be more careful.

@LaurentRDC LaurentRDC transferred this issue from haskell-distributed/distributed-process-supervisor Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants