Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > thread deadlock issue

Reply
Thread Tools

thread deadlock issue

 
 
ara.t.howard@noaa.gov
Guest
Posts: n/a
 
      11-14-2006

can anyone interpret this

deadlock 0xb7d8ff3c: sleep:T(1000000000000000019884624838656.000000) - /usr/local/ruby-1.8.4/lib/ruby/site_ruby/slave.rb:306
deadlock 0xb7d90888: sleep:F(4) - /usr/local/ruby-1.8.4/lib/ruby/site_ruby/drb/unix.rb:87
deadlock 0xb7d8fe9c: sleep:S - /usr/local/ruby-1.8.4/lib/ruby/site_ruby/drb/drb.rb:127
^^
^^
^^
^^
the bit in question

??



-a
--
my religion is very simple. my religion is kindness. -- the dalai lama

 
Reply With Quote
 
 
 
 
Eric Hodel
Guest
Posts: n/a
 
      11-14-2006

On Nov 14, 2006, at 8:35 AM, http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:

> can anyone interpret this
>
> deadlock 0xb7d8ff3c: sleep:T
> (1000000000000000019884624838656.000000) - /usr/local/ruby-1.8.4/
> lib/ruby/site_ruby/slave.rb:306
> deadlock 0xb7d90888: sleep:F(4) - /usr/local/ruby-1.8.4/lib/ruby/
> site_ruby/drb/unix.rb:87
> deadlock 0xb7d8fe9c: sleep:S - /usr/local/ruby-1.8.4/lib/ruby/
> site_ruby/drb/drb.rb:127
> ^^
> ^^
> ^^
> ^^
> the bit in question


FOREACH_THREAD_FROM(curr, th) {
warn_printf("deadlock 0x%lx: %s:",
th->thread, thread_status_name(th->status));
if (th->wait_for & WAIT_FD) warn_printf("F(%d)", th->fd);
if (th->wait_for & WAIT_SELECT) warn_printf("S");
if (th->wait_for & WAIT_TIME) warn_printf("T(%f)", th->delay);
if (th->wait_for & WAIT_JOIN)
warn_printf("J(0x%lx)", th->join ? th->join->thread : 0);
if (th->wait_for & WAIT_PID) warn_printf("P");
if (!th->wait_for) warn_printf("-");
warn_printf(" %s - %s:%d\n",
th==main_thread ? "(main)" : "",
th->node->nd_file, nd_line(th->node));
}


--
Eric Hodel - (E-Mail Removed) - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com



 
Reply With Quote
 
 
 
 
ara.t.howard@noaa.gov
Guest
Posts: n/a
 
      11-14-2006
On Wed, 15 Nov 2006, Eric Hodel wrote:

>
> On Nov 14, 2006, at 8:35 AM, (E-Mail Removed) wrote:
>
>> can anyone interpret this
>>
>> deadlock 0xb7d8ff3c: sleep:T(1000000000000000019884624838656.000000) -
>> /usr/local/ruby-1.8.4/lib/ruby/site_ruby/slave.rb:306
>> deadlock 0xb7d90888: sleep:F(4) - /usr/local/ruby-1.8.4/lib/ruby/
>> site_ruby/drb/unix.rb:87
>> deadlock 0xb7d8fe9c: sleep:S - /usr/local/ruby-1.8.4/lib/ruby/
>> site_ruby/drb/drb.rb:127
>> ^^
>> ^^
>> ^^
>> ^^
>> the bit in question

>
> FOREACH_THREAD_FROM(curr, th) {
> warn_printf("deadlock 0x%lx: %s:",
> th->thread, thread_status_name(th->status));
> if (th->wait_for & WAIT_FD) warn_printf("F(%d)", th->fd);
> if (th->wait_for & WAIT_SELECT) warn_printf("S");
> if (th->wait_for & WAIT_TIME) warn_printf("T(%f)", th->delay);
> if (th->wait_for & WAIT_JOIN)
> warn_printf("J(0x%lx)", th->join ? th->join->thread : 0);
> if (th->wait_for & WAIT_PID) warn_printf("P");
> if (!th->wait_for) warn_printf("-");
> warn_printf(" %s - %s:%d\n",
> th==main_thread ? "(main)" : "",
> th->node->nd_file, nd_line(th->node));
> }


so, this seems like a bug. the thread in T state has made a call to 'sleep' -
if that thread is sleeping, and the other two are blocked on io/select, why
wouldn't it simply continue to sleep?

regards.

-a
--
my religion is very simple. my religion is kindness. -- the dalai lama

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deadlock - Thread Dump Included rajatag Java 6 02-21-2013 06:29 AM
deadlock and thread focode Java 1 12-05-2009 01:24 AM
deadlock when using waitOne in a STA thread Daniel Cuculescu ASP .Net 0 06-05-2008 01:15 PM
Regarding Thread deadlock Pallav singh C++ 3 01-16-2008 11:35 AM
Thread DEADLOCK problems! Help! DiscoStu Java 10 09-21-2003 01:14 PM



Advertisments