Artifacts Associated With Ticket 717848ffff
Ticket change [efd6b4196a] (rid 109071) by andreas_kupries on 2003-04-08 22:20:28:
- assignee initialized to: "davygrvy"
- cmimetype initialized to: "text/plain"
- comment initialized to:
When running the attached "main.tcl" script the sub process started by it ("sub.tcl") will cease processing any type of event [x]. Deactivation of the "fileevent readable" command in "sub.tcl" causes the problem to disappear. [x] The problem was initially caught in the testsuite for the pop3 module/package in tcllib. The command [info hostname] was called in the 'accept' command of a listening socket locked up and did not return. Trying to defer the offending code via [after] failed. The after was executed, but did not trigger anymore (despite the fact the application was in an eventloop). Executing [info hostname] before the 'fileevent readable' causes the lockup to disappear too. Theories: * [info hostname] is ok before [fileevent], caches the result and therefore fine afterward. * [fileevent readable] messes up the notifier so bad that not even "after" events are processed anymore. - foundin initialized to: "obsolete: 8.4.2"
- priority initialized to: "8"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "andreas_kupries"
- subsystem initialized to: "01. Notifier"
- title initialized to: "Notifier lock in sub-process on windows"
- type initialized to: "Bug"
Ticket change [7a0a2eb207] (rid 90238) by andreas_kupries on 2003-04-09 05:20:28:
- icomment:
File Added - 47167: main.tcl
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Add attachment "main.tcl" [aabe68c315] (rid 100979) by andreas_kupries on 2003-04-09 05:20:28.
Add attachment "sub.tcl" [fa40b54c6f] (rid 91837) by andreas_kupries on 2003-04-09 05:21:22.
Ticket change [fbd30eeab4] (rid 108128) by andreas_kupries on 2003-04-09 05:21:22:
- icomment:
File Added - 47169: sub.tcl
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [6cae5cd182] (rid 128559) by davygrvy on 2003-04-09 15:05:56:
- icomment:
Logged In: YES user_id=7549 Yup, happens here too. Needs investigating. It locks-up rather stiffly. One comment on the example, though. Just because [open] came back doesn't mean the server in the sub-process is up yet. I don't think there is a guarentee of that, even though it looks to be happening.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [dde235b282] (rid 114754) by andreas_kupries on 2003-04-09 23:38:58:
- icomment:
Logged In: YES user_id=75003 Good, second person to replicate this lockup, so definitely a reproducible bug (First was Jeff, after I was able to create this condensed version of the problem). Right, immediately after open the server doesn't have to be up. We could insert a delay, say one second, in main.tcl to make this race unlikely (or loop the socket command until there is no connect error). ... In the original code the port of the listening socket was written back over the pipe, telling the main process when it was up. My rewrite of the testsuite makes now use of a special microserver which uses a second socket for the control connection, and the sub process connects back to the spawning process. This works around the lock. It also means that I know exactly when the process is up (= connect back has been done), and when it is has started to listen (= port number came back over the control connection).
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [ca6f8dfb35] (rid 95348) by bsdfan3 on 2003-08-12 22:15:52:
- icomment:
Logged In: YES user_id=604556 How about sending a SIGCHLD (er, the windoze equivalent)to the parent process when the child is ready?
- login: "bsdfan3"
- mimetype: "text/plain"
- username: "bsdfan3"
- icomment:
Ticket change [61b0c4ec67] (rid 92282) by davygrvy on 2004-05-06 04:17:12:
- icomment:
Logged In: YES user_id=7549 If I change sub.tcl according to the attachment, it doesn't lock up with 8.4.6. Theory: fileevent readable stdin done, and proc done is not closing itself and tcl is forever calling [done] trying to close stdin eating all the CPU. I'll leave this bug open, as I don't know what to do next about this.
- login: "davygrvy"
- mimetype: "text/plain"
- resolution changed to: "Works For Me"
- username: "davygrvy"
- icomment:
Add attachment "sub.tcl" [7158efba65] (rid 100658) by davygrvy on 2004-05-06 04:17:13.
Ticket change [adf7614553] (rid 101548) by davygrvy on 2004-05-06 04:17:13:
- icomment:
File Added - 86203: sub.tcl
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [fabf0ebe79] (rid 91934) by davygrvy on 2004-10-27 03:49:48:
- priority changed to: "4"
Ticket change [a9fece1bbf] (rid 99248) by davygrvy on 2005-11-04 04:56:03:
- assignee changed to: "patthoyts"