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
Closed

Deadlock occurs on Thread.kill #1015

halorgium opened this issue Sep 15, 2013 · 1 comment
Assignees
Milestone

Comments

@halorgium
Copy link

@halorgium halorgium commented Sep 15, 2013

Encountered a deadlock with @celluloid.

Thread dump

/cc @headius @tarcieri

@ghost ghost assigned headius Sep 15, 2013
@headius
Copy link
Member

@headius 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
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants