Overview
| Artifact ID: | 3b0010322e1620325e37b4fc9c8bf5ff9b007b93 |
|---|---|
| Ticket: | 1997007fffffffffffffffffffffffffffffffff
[open|] blocks when redirecting stderr to pipe (Vista) |
| User & Date: | danckaert on 2017-04-04 15:17:07 |
Changes
- closer changed to: "nobody"
- 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). - icomment:
Many years later, it appears that this issue is similar to the one reported in [http://core.tcl.tk/tcl/tktview?name=8bd13f07bde6fb06]. The patch proposed there ([http://core.tcl.tk/tcl/artifact/7db16089766c834d]) fixes this issue too.
- login: "danckaert"
- mimetype: "text/x-fossil-wiki"
- severity changed to: "Minor"