Skip to content
Tcl Source Code History Of Ticket 3439599fffffffffffffffffffffffffffffffff
Login

History Of Ticket 3439599fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 3439599fffffffffffffffffffffffffffffffff

  1. Ticket change [4c3acc0e47] (rid 126846) by dgp on 2011-11-17 21:37:38:

    1. assignee initialized to: "mistachkin"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      $ cat demo2.tcl
      package require Thread 2.7
      
      set ::bar "NO ERROR THROWN"
      proc ::foo {id info} {
          set ::bar "Thread $id stack:\n$info"
      }
      thread::errorproc ::foo
      
      set one [thread::create -joinable {while 1 {}}]
      thread::cancel $one
      thread::join $one
      puts stderr "SAVED ERROR: $::bar"
      
      
      $ make shell SCRIPT=demo2.tcl
      ...
      SAVED ERROR: NO ERROR THROWN
      
      
    4. foundin initialized to: "obsolete: 8.6b2"
    5. is_private initialized to: "0"
    6. priority initialized to: "9 Immediate"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "80. Thread Package"
    11. title initialized to: "thread::cancel not reporting error"
    12. type initialized to: "Bug"
  2. Ticket change [872d47094a] (rid 131647) by mistachkin on 2011-11-18 06:22:24:

    1. icomment:
      From the code snippet you included above, it seems like you are expecting to have the sending interpreter receive an error when it cancels the interpreter in the other thread?  The sending interpreter does not encounter any error condition by canceling the other thread and the fact that your script completes indicates that the target (receiving) thread is being canceled properly.
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  3. Ticket change [d8a679227a] (rid 107477) by dgp on 2011-12-01 23:30:23:

    1. icomment:
      I thought a cancellation got converted into
      a (un-[catch]able?) TCL_ERROR status unwinding
      up through the call stack in the cancelled thread?
      Is the issue really with [thread::create] maybe?
      Not (yet) in an event loop, so don't have thread::errorproc
      handling engaged?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"