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

Deadlock occurs on Thread.kill #1015

Closed
halorgium opened this Issue Sep 15, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@halorgium
Copy link

halorgium commented Sep 15, 2013

Encountered a deadlock with @celluloid.

Thread dump

/cc @headius @tarcieri

@ghost ghost assigned headius Sep 15, 2013

@headius

This comment has been minimized.

Copy link
Member

headius commented Sep 15, 2013

Trivial reproduction:

loop { Thread.new{}.kill; p :ok }

Barely runs at all for me. The problem is that the logic that runs when a thread is shutting down normally acquires two locks in the opposite order of kill called against that thread. I have a local patch that just removes several locks and fixes this. Will commit when I have a better connection.

@headius headius closed this in 937f414 Sep 15, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.