thread deadlock issue

Discussion in 'Ruby' started by ara.t.howard@noaa.gov, Nov 14, 2006.

  1. Guest

    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
     
    , Nov 14, 2006
    #1
    1. Advertising

  2. Eric Hodel Guest

    On Nov 14, 2006, at 8:35 AM, 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 - - http://blog.segment7.net
    This implementation is HODEL-HASH-9600 compliant

    http://trackmap.robotcoop.com
     
    Eric Hodel, Nov 14, 2006
    #2
    1. Advertising

  3. Guest

    On Wed, 15 Nov 2006, Eric Hodel wrote:

    >
    > On Nov 14, 2006, at 8:35 AM, 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
     
    , Nov 14, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. DiscoStu

    Thread DEADLOCK problems! Help!

    DiscoStu, Sep 19, 2003, in forum: Java
    Replies:
    10
    Views:
    656
    David Zimmerman
    Sep 21, 2003
  2. rajatag
    Replies:
    6
    Views:
    4,453
  3. Pallav singh

    Regarding Thread deadlock

    Pallav singh, Jan 16, 2008, in forum: C++
    Replies:
    3
    Views:
    328
    Michael Oswald
    Jan 16, 2008
  4. Daniel Cuculescu

    deadlock when using waitOne in a STA thread

    Daniel Cuculescu, Jun 5, 2008, in forum: ASP .Net
    Replies:
    0
    Views:
    2,113
    Daniel Cuculescu
    Jun 5, 2008
  5. focode

    deadlock and thread

    focode, Dec 1, 2009, in forum: Java
    Replies:
    1
    Views:
    564
    Roedy Green
    Dec 5, 2009
Loading...

Share This Page