# Ruby threaded application suddenly stops working at 100% CPU

**URL:** <https://www.ruby-forum.com/t/ruby-threaded-application-suddenly-stops-working-at-100-cpu/171968>\
**Category:** Ruby\
**Created:** [July 12, 2009, 4:09pm UTC](https://www.ruby-forum.com/t/ruby-threaded-application-suddenly-stops-working-at-100-cpu/171968 "2009-07-12T16:09:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Chanters](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@David\_Chanters](https://www.ruby-forum.com/u/David_Chanters)\
**Post date:** [July 12, 2009, 4:09pm UTC](https://www.ruby-forum.com/t/ruby-threaded-application-suddenly-stops-working-at-100-cpu/171968/1 "2009-07-12T16:09:56Z")

</div>

Hello all,

For ages, I’ve been using the attached script to control songs played  
via MPD (found it on the Internet) – I’ve used rubygems to install  
these libraries – and they’ve not changed in ages. In a recent  
upgrade (using Debian Sid) the program now doesn’t work – and  
consumes 100% CPU and does nothing.

The program is supposed to create a systray icon, and when clicked  
launched ncmpc in an rxvt-unicode window. This was working fine –  
until I did a usual apt-get dist-upgrade and now it’s not working.

Would someone have any ideas how to go about debugging this?  
Attaching strace to the process doesn’t reveal anything useful – and  
perhaps there’s some ruby-specific debug tools I can use to address  
this instead – I am not sure.

Any help greatly appreciated. The version of ruby I am using is:

% ruby --version  
ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]

David

---

<div class="post-metadata">

**Author:** ![David\_Chanters](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@David\_Chanters](https://www.ruby-forum.com/u/David_Chanters)\
**Post date:** [July 13, 2009, 1:57pm UTC](https://www.ruby-forum.com/t/ruby-threaded-application-suddenly-stops-working-at-100-cpu/171968/2 "2009-07-13T13:57:24Z")

</div>

> Any help greatly appreciated. The version of ruby I am using is:
> 
> % ruby --version  
> ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]

Odd.  
[http://redmine.ruby-lang.org/issues/show/1484](http://redmine.ruby-lang.org/issues/show/1484)  
might be related [?]r
