Overview
| Artifact ID: | a437b024bda311d63c38cf7adcb8c359fd7beff1 |
|---|---|
| Ticket: | 462317ffffffffffffffffffffffffffffffffff
Notification when there's no data |
| User & Date: | kogorman on 2001-09-17 18:54:02 |
Changes
- assignee changed to: "andreas_kupries"
- cmimetype changed to: "text/plain"
- 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.
- foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "kogorman"
- subsystem changed to: "25. Channel System"
- title changed to: "Notification when there's no data"
- type changed to: "Bug"