Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a437b024bda311d63c38cf7adcb8c359fd7beff1
Ticket: 462317ffffffffffffffffffffffffffffffffff
Notification when there's no data
User & Date: kogorman on 2001-09-17 18:54:02
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Using expect5.32 with Tcl8.4a3, my expect script
    wedges.
    I have used strace(1) and printfs to find that
    ChannelTimerProc
    is calling TclNotifyChannel, which causes expect to
    perform
    a blocking read.  This is usually okay, but sometimes
    there's
    no data, and the read blocks forever, because the
    channel
    corresponds to a child which is waiting for a command. 
    Deadlock.
    
    I can tell from the system call trace that the program
    does NOT
    have enough information to know whether the read will
    block,
    but it could guess that it would because the previous
    read
    returned a short reply.  However, the file descriptor
    has not
    been tested by select(), so the issuance of the notify
    is probably
    bogus.
    
    My guess is that there should be something cancelling
    the
    timer, since it was started before the last successful
    read,
    and has just been running since then.
    
    I have hundreds of megabytes of trace, but don't
    understand
    the internals well enough to make much more sense out
    of them
    than the above, though I'm working on it.  I can boil
    the traces
    down quite a bit if anyone can work with me on this.
    
    Sorry I can't give a concise code sample, because I
    don't know
    how to provoke the error without my 1GB Oracle
    database.
    I have, however, included a boiled-down tail of one of
    the
    traces.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "kogorman"
  9. subsystem changed to: "25. Channel System"
  10. title changed to: "Notification when there's no data"
  11. type changed to: "Bug"