Artifacts Associated With Ticket 3590287fffffffffffffffffffffffffffffffff
Ticket change [c59f962d6f] (rid 112030) by blacksqr on 2012-11-27 06:29:41:
- assignee initialized to: "nijtmans"
- cmimetype initialized to: "text/plain"
- comment initialized to:
A proc that attempts to read output from an external process hangs if the process output channel isn't closed before attempting to return. This proc runs fine with e.g. "run_cmd ls": proc run_cmd {cmd} { set channel [open "| $cmd"] chan event $channel readable "set ::ready_$channel {}" vwait ::ready_$channel set result [read $channel] close $channel return $result } Now edit the above proc by commenting out the close command. When executed it never returns. Tested on 8.5.11 and 8.6.0.0b8 on Ubuntu 10.04. ActiveState distribution. - foundin initialized to: "obsolete: 8.5.13"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "blacksqr"
- subsystem initialized to: "02. Event Loops"
- title initialized to: "Proc hangs when channel not closed"
- type initialized to: "Bug"
Ticket change [2f2dadca28] (rid 93020) by dkf on 2012-11-27 20:22:10:
- icomment:
Can't reproduce with 8.6 trunk or 8.5 tip.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [6e8b8b9a6e] (rid 100163) by dkf on 2012-11-27 20:24:10:
- icomment:
(Well, assuming that you're reporting a problem that's cross-platform; I tested on OSX…)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [dc1ca3d8e2] (rid 108076) by dgp on 2012-11-28 01:15:50:
- assignee changed to: "andreas_kupries"
- foundin changed to: "obsolete: 8.5.11"
- icomment:
Built Tcl 8.5.11 from source on a Centos 5 system. Tried both --enable-threads and --disable-threads. Cannot reproduce the reported behavior. Is ActiveTcl different in some bug-enabling way? Or can/should we blame Ubuntu?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [771d428f74] (rid 105704) by dgp on 2012-11-28 01:16:38:
- icomment:
Are you seeing the hang in [vwait] ? or something else?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [10b670998c] (rid 95008) by andreas_kupries on 2012-11-28 01:49:03:
- icomment:
Using the ActiveTcl 8.6 build from last night, based on the "core-8-6-0-rc" branch (rev 75ea3a482f0b86), on a Linux 2.6.17 system, (glibc2.3, Fedora FC4 Stentz), I am unable to reproduce the problem.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [b778f88e3e] (rid 125605) by andreas_kupries on 2012-11-28 01:52:51:
- icomment:
Installed the same build on my machine at home (Ubuntu 7.04 feisty). Does not reproduce there either. I have two more Ubuntu machines I can test on, and will. Oh, this was all 32bit so far.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [0b71c6cdcd] (rid 113986) by andreas_kupries on 2012-11-28 02:05:35:
- icomment:
Next, Ubuntu 9.10 karmic, on a 64bit machine. Tested both 32 and 64 bit builds of last night's AT 8.6. Unable to reproduce. Last, Ubuntu 11.04 natty, again a 64 bit machine. Tested only the 64 bit build. Unable to reproduce. Could not test 32bit build, does not run. Likely that I have not installed the 32bit compat libs for this machine.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [4e7ddf771d] (rid 125645) by blacksqr on 2012-11-28 10:30:01:
- icomment:
I was using Tkcon when I found and isolated the problem. Maybe there is an issue with interaction of Tkcon's event loop and the problem code.
- login: "blacksqr"
- mimetype: "text/plain"
- username: "blacksqr"
- icomment:
Ticket change [462a68e790] (rid 99476) by blacksqr on 2012-11-28 11:15:19:
- icomment:
I've confirmed that the problem occurs when running in Tkcon, but not in tclsh running in a terminal. Sorry for the confusion.
- login: "blacksqr"
- mimetype: "text/plain"
- username: "blacksqr"
- icomment:
Ticket change [c049c5c22d] (rid 257775) by serhiy.storchaka on 2026-10-12 18:04:16:
- icomment:
Does not hang in tclsh 8.6, 9.0 and 9.1. As noted below, it only happened in tkcon, which is not part of Tcl.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Works For Me"
- status changed to: "Closed"
- icomment:
Ticket change [3a49b82594] (rid 259896) by serhiy.storchaka on 2026-10-22 17:19:24:
- closedate changed to: "2461326.2529649306"
- closer changed to: "serhiy.storchaka"
- login: "serhiy.storchaka"