Skip to content
Tcl Source Code History Of Ticket 3590287fffffffff
Login

History Of Ticket 3590287fffffffff

Artifacts Associated With Ticket 3590287fffffffff

  1. Ticket change [c59f962d6f] (rid 112030) by blacksqr on 2012-11-27 06:29:41:

    1. assignee initialized to: "nijtmans"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
    4. foundin initialized to: "obsolete: 8.5.13"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "blacksqr"
    10. subsystem initialized to: "02. Event Loops"
    11. title initialized to: "Proc hangs when channel not closed"
    12. type initialized to: "Bug"
  2. Ticket change [2f2dadca28] (rid 93020) by dkf on 2012-11-27 20:22:10:

    1. icomment:
      Can't reproduce with 8.6 trunk or 8.5 tip.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [6e8b8b9a6e] (rid 100163) by dkf on 2012-11-27 20:24:10:

    1. icomment:
      (Well, assuming that you're reporting a problem that's cross-platform; I tested on OSX…)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  4. Ticket change [dc1ca3d8e2] (rid 108076) by dgp on 2012-11-28 01:15:50:

    1. assignee changed to: "andreas_kupries"
    2. foundin changed to: "obsolete: 8.5.11"
    3. 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?
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. username: "dgp"
  5. Ticket change [771d428f74] (rid 105704) by dgp on 2012-11-28 01:16:38:

    1. icomment:
      Are you seeing the hang in [vwait] ?
      or something else?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [10b670998c] (rid 95008) by andreas_kupries on 2012-11-28 01:49:03:

    1. 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.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  7. Ticket change [b778f88e3e] (rid 125605) by andreas_kupries on 2012-11-28 01:52:51:

    1. 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.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  8. Ticket change [0b71c6cdcd] (rid 113986) by andreas_kupries on 2012-11-28 02:05:35:

    1. 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.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  9. Ticket change [4e7ddf771d] (rid 125645) by blacksqr on 2012-11-28 10:30:01:

    1. 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.
      
      
    2. login: "blacksqr"
    3. mimetype: "text/plain"
    4. username: "blacksqr"
  10. Ticket change [462a68e790] (rid 99476) by blacksqr on 2012-11-28 11:15:19:

    1. icomment:
      I've confirmed that the problem occurs when running in Tkcon, but not in tclsh running in a terminal.  Sorry for the confusion.
      
      
    2. login: "blacksqr"
    3. mimetype: "text/plain"
    4. username: "blacksqr"
  11. Ticket change [c049c5c22d] (rid 257775) by serhiy.storchaka on 2026-10-12 18:04:16:

    1. 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.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "Works For Me"
    5. status changed to: "Closed"
  12. Ticket change [3a49b82594] (rid 259896) by serhiy.storchaka on 2026-10-22 17:19:24:

    1. closedate changed to: "2461326.2529649306"
    2. closer changed to: "serhiy.storchaka"
    3. login: "serhiy.storchaka"