Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b674670af3c774a00138ccb3064ea42659be0635
Ticket: 1997007fffffffffffffffffffffffffffffffff
[open|] blocks when redirecting stderr to pipe (Vista)
User & Date: danckaert on 2008-06-18 16:11:19
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    This report refers to the standalone [pipe] command which is currently part of TclX, but proposed for inclusion in the core in TIP304.
    
    When using the [open|] command in combination with [pipe] to redirect a process' stderr, the [open|] command sometimes blocks on Vista:
      pipe pr pw
      open |[list {*}$command 2>@ $pr]
    
    This happens both with Tcl 8.5.2 and 8.6.
    
    The application goes into "not responding" state, and doesn't wake up again. It's difficult to reproduce (only happens between 1/100 ... 1/1000 times on average), but it never happens when using "2@>1" instead. It doesn't happen either when redirecting to a fake pipe created by another open command.
    
    Further investigation learnt that it actually blocks during the "CreateProcess" system call, which should not block according to Microsoft's documentation (it should either fail or succeed). The launched process is visible in the Task manager, but it is in "suspended" state and has a very low memory footprint (about 56K).
    
    
  4. foundin changed to: "obsolete: 8.5.2"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "danckaert"
  10. subsystem changed to: "24. Channel Commands"
  11. title changed to:
    [open|] blocks when redirecting stderr to pipe (Vista)
    
  12. type changed to: "Bug"