Forum: Ruby-core ThreadError [ Attempt to unlock a mutex which is locked by another thread ]

5cf8f058a4c094bb708174fb43e7a387?d=identicon&s=25 unknown (Guest)
on 2014-02-15 17:10
(Received via mailing list)
Issue #9432 has been updated by Tomoyuki Chikanaga.


Hello, rajesh.

Thank you for your report.
Could you try to reproduce it with 2.1 and/or trunk?

----------------------------------------
Backport #9432:  ThreadError [ Attempt to unlock a mutex which is locked
by another thread ]
https://bugs.ruby-lang.org/issues/9432#change-45192

* Author: rajesh shanmugam
* Status: Open
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: ruby 2.0.0p247 (2013-06-27 revision 41674)
[x86_64-darwin12.4.0]
----------------------------------------
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
This topic is locked and can not be replied to.