Artifacts Associated With Ticket 219255
Ticket change [dbfe7c5383] (rid 108054) by nobody on 2000-10-26 05:04:13:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 5924 Bug Version: 8.3.1 SubmitDate: '2000-06-20' LastModified: '2000-09-11' Severity: CRIT Status: Assigned Submitter: lfb ChangedBy: davidg RelatedBugIDs: 710 OS: Windows NT FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Closing a pipe to a busy process blocks on Windows even after you have turned blocking off on the channel. Try running this script in a tclsh on Windows: set pipe [open "| tclsh.exe doforever.tcl" r+] fconfigure $pipe -blocking 0 close $pipe Contents of doforever.tcl: while {1} {} Expected Result: The primary process closes the pipe and does not block. Actual Result: The primary process blocks. We discovered this problem in the Ajuba2 Server process pool. If we try to close the pipe to a busy interpreter, the server blocks. -- A related bug was fixed on the Unix side, but the Windows side uses a different sort of closedown functions. Has to be further investigated. -- 09/06/2000 hobbs - foundin initialized to: "obsolete: 8.3.1"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "60. NRE and coroutines"
- title initialized to:
Closing a pipe to a busy process blocks even when -blocking
- type initialized to: "Bug"
Ticket change [840db05839] (rid 117482) by dkf on 2001-01-09 22:20:08:
- icomment:
See also Bug #119252
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [9ab8b44718] (rid 111004) by dgp on 2001-04-05 08:20:12:
- subsystem changed to: "27. Channel Types"
Ticket change [c3687f618d] (rid 111653) by andreas_kupries on 2001-09-08 06:40:48:
- assignee changed to: "andreas_kupries"
- icomment:
Logged In: YES user_id=75003 Rather bug #219252 after renumbering tango.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
Ticket change [b6b942cd36] (rid 140528) by dkf on 2014-11-03 17:44:09:
- assignee changed to: "aku"
- closer changed to: "nobody"
- comment changed to:
OriginalBugID: 5924 Bug Version: 8.3.1 SubmitDate: '2000-06-20' LastModified: '2000-09-11' Severity: CRIT Status: Assigned Submitter: lfb ChangedBy: davidg RelatedBugIDs: 710 OS: Windows NT FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Closing a pipe to a busy process blocks on Windows even after you have turned blocking off on the channel. Try running this script in a tclsh on Windows: set pipe [open "| tclsh.exe doforever.tcl" r+] fconfigure $pipe -blocking 0 close $pipe Contents of doforever.tcl: while {1} {} Expected Result: The primary process closes the pipe and does not block. Actual Result: The primary process blocks. We discovered this problem in the Ajuba2 Server process pool. If we try to close the pipe to a busy interpreter, the server blocks. -- A related bug was fixed on the Unix side, but the Windows side uses a different sort of closedown functions. Has to be further investigated. -- 09/06/2000 hobbs - icomment: "Wasn't there something done in this area recently?"
- login: "dkf"
- mimetype: "text/html"
- resolution changed to: "Remind"
- severity changed to: "Minor"
- title changed to:
Closing a pipe to a busy process blocks even when -blocking
- username: "dkf"
Ticket change [5c7af77a5c] (rid 140530) by dgp on 2014-11-03 20:45:37:
- assignee changed to: "ferrieux"
- icomment:
Looks related to TIP 398.
- login: "dgp"
- mimetype: "text/plain"
Ticket change [b31f98d982] (rid 140540) by ferrieux on 2014-11-03 23:12:16:
- assignee changed to: "jan.nijtmans"
- icomment:
Yes. Since TIP 398 was applied to core on 2012-04-28 (http://core.tcl.tk/tcl/info/efc6bbd2cb), and includes an explicit test (io-29.33b), I would assume that a Windows failure would have been reported by now. Also, the patch lies in the generic part of the IO system... Passing the ball to someone with a Windows dev environment to check: Jan.
- login: "ferrieux"
- mimetype: "text/plain"
Ticket change [3f1b72d2ca] (rid 140541) by oehhar on 2014-11-04 10:59:51:
- icomment:
I have made the tests on: * TCL 8.5.12 * TCL 8.6.3rc1 and there is no block, so the issue does not arise. Platform: WIndows Vista 32 bit, Compiled with makefilevc and vc6. Harald <verbatim> C:\test>tcl8.6.3\win\Release\tclsh86t.exe % set pipe [open "| C:/test/tcl8512/bin/tclsh85.exe doforever.tcl" r+] file6b5cc0 % fconfigure $pipe -blocking 0 % close $pipe % exit C:\test>tcl8512\bin\tclsh85.exe % set pipe [open "| C:/test/tcl8512/bin/tclsh85.exe doforever.tcl" r+] file1aa5e28 % fconfigure $pipe -blocking 0 % close $pipe % exit </verbatim>
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"
- icomment:
Ticket change [8e0a1a5785] (rid 140542) by jan.nijtmans on 2014-11-04 12:03:58:
- closedate changed to: "2456966.00276247"
- closer changed to: "jan.nijtmans"
- icomment:
Thanks, Harald, for checking this! Just to be sure, I did the same test (with MinGW-compiled tclsh), and getting the same results: Nothing blocks. Therefore closing.
- login: "jan.nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Out of Date"
- status changed to: "Closed"