Skip to content
Tcl Source Code History Of Ticket 219255
Login

History Of Ticket 219255

Artifacts Associated With Ticket 219255

  1. Ticket change [dbfe7c5383] (rid 108054) by nobody on 2000-10-26 05:04:13:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
      
      
    4. foundin initialized to: "obsolete: 8.3.1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "60. NRE and coroutines"
    10. title initialized to:
      Closing a pipe to a busy process blocks even when -blocking 
      
    11. type initialized to: "Bug"
  2. Ticket change [840db05839] (rid 117482) by dkf on 2001-01-09 22:20:08:

    1. icomment:
      See also Bug #119252
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [9ab8b44718] (rid 111004) by dgp on 2001-04-05 08:20:12:

    1. subsystem changed to: "27. Channel Types"
  4. Ticket change [c3687f618d] (rid 111653) by andreas_kupries on 2001-09-08 06:40:48:

    1. assignee changed to: "andreas_kupries"
    2. icomment:
      Logged In: YES 
      user_id=75003
      
      Rather bug #219252 after renumbering tango.
      
      
    3. login: "andreas_kupries"
    4. mimetype: "text/plain"
    5. username: "andreas_kupries"
  5. Ticket change [b6b942cd36] (rid 140528) by dkf on 2014-11-03 17:44:09:

    1. assignee changed to: "aku"
    2. closer changed to: "nobody"
    3. 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
      
    4. icomment: "Wasn't there something done in this area recently?"
    5. login: "dkf"
    6. mimetype: "text/html"
    7. resolution changed to: "Remind"
    8. severity changed to: "Minor"
    9. title changed to:
      Closing a pipe to a busy process blocks even when -blocking
      
    10. username: "dkf"
  6. Ticket change [5c7af77a5c] (rid 140530) by dgp on 2014-11-03 20:45:37:

    1. assignee changed to: "ferrieux"
    2. icomment:
      
      Looks related to TIP 398.
      
    3. login: "dgp"
    4. mimetype: "text/plain"
  7. Ticket change [b31f98d982] (rid 140540) by ferrieux on 2014-11-03 23:12:16:

    1. assignee changed to: "jan.nijtmans"
    2. 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.
      
    3. login: "ferrieux"
    4. mimetype: "text/plain"
  8. Ticket change [3f1b72d2ca] (rid 140541) by oehhar on 2014-11-04 10:59:51:

    1. 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>
      
    2. login: "oehhar"
    3. mimetype: "text/x-fossil-wiki"
    4. username: "oehhar"
  9. Ticket change [8e0a1a5785] (rid 140542) by jan.nijtmans on 2014-11-04 12:03:58:

    1. closedate changed to: "2456966.00276247"
    2. closer changed to: "jan.nijtmans"
    3. 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.
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/plain"
    6. resolution changed to: "Out of Date"
    7. status changed to: "Closed"