From: normalperson@... Date: 2014-12-13T02:48:33+00:00 Subject: [ruby-core:66822] [Backport200 - Backport #9432] ThreadError [ Attempt to unlock a mutex which is locked by another thread ] Issue #9432 has been updated by Eric Wong. Can you show us a small test case? Which version of Sidekiq? Note: this issue seems to not affect Ruby 2.1+ because thread.rb was rewritten in C. I looked briefly and #9132 but I'd rather deal with issues in pure Ruby or C, not C++. ---------------------------------------- Backport #9432: ThreadError [ Attempt to unlock a mutex which is locked by another thread ] https://bugs.ruby-lang.org/issues/9432#change-50390 * Author: rajesh shanmugam * Status: Open * Priority: Normal * Assignee: ---------------------------------------- I use ruby-2.0.0-p247. I seem to get this issue frequently in threaded environment. (Sidekiq) I am not very sure if it a ruby thread issue as such or something I am doing wrong. If there is any more details you need I would be happy to provide you. Operating system: Ubuntu Trace ``` /home/ubuntu/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/thread.rb:188:in `synchronize' /home/ubuntu/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/thread.rb:188:in `block in pop' /home/ubuntu/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/thread.rb:187:in `handle_interrupt' /home/ubuntu/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/thread.rb:187:in `pop' ``` Regards Rajesh -- https://bugs.ruby-lang.org/