Skip to content
Tcl Source Code History Of Ticket 219324
Login

History Of Ticket 219324

Artifacts Associated With Ticket 219324

  1. Ticket change [5cd2100413] (rid 115367) by nobody on 2000-10-26 05:10:45:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 3957 Bug
      Version: 8.2.3
      SubmitDate: '1999-12-29'
      LastModified: '2000-10-25'
      Severity: MED
      Status: UnAssn
      Submitter: techsupp
      OS: SunOS
      OSVersion: 5.6
      Machine: Sun Ultra
      FixedDate: '2000-10-25'
      ClosedDate: '2000-10-25'
      
      
      Name:
      
      Peter Silsbee
      
      
      Extensions:
      
      With tcltest, none. Separately, Expect, Tk, tix.
      
      
      CustomShell:
      
      N/A
      
      
      Comments:
      
      Patch is tentative. I'm totally unfamiliar with Tcl source, and have basically no idea what side effects it might cause!
      
      
      ReproducibleScript:
      
      Command line: tcltest script.tcl
      
      
      script.tcl:
      
      
      set errorthread [testthread create]
      
      
      set cmd "proc errorHandler \{id ei\} \{\
      
      puts \"This is my error procedure.\";\
      
      puts \"The thread is \$id\";\
      
      puts \"The errorInfo is <\$ei>\";\
      
      }"
      
      
      testthread send $errorthread $cmd
      
      testthread send $errorthread "testthread errorproc errorHandler"
      
      
      puts "About to commit an error in non-waiting thread"
      
      testthread create "set nonexistent"
      
      
      set thread2 [testthread create]
      
      
      puts "About to commit an error in the thread that is waiting"
      
      testthread send $thread2 "set nonexistent"
      
      
      after 2000
      
      
      puts "I survived to the end of the script"
      
      puts "The remaining threads are [testthread names]"
      
      
      ObservedBehavior:
      
      The procedure "errorHandler" is only called when an error occurs during "testthread create" script evaluation. When an error occurs during "testthread send" evaluation, ThreadErrorProc is never called.
      
      
      DesiredBehavior:
      
      ThreadErrorProc, hence errorHandler if registered, should be called on any thread error?
      
      
      Patch:
      
      *** generic/tclThreadTest.c.oldSat Oct 30 05:06:01 1999
      
      --- generic/tclThreadTest.c.newWed Dec 29 10:27:35 1999
      
      ***************
      
      *** 817,822 ****
      
      --- 817,830 ----
      
        if (code != TCL_OK) {
      
            errorCode = Tcl_GetVar(interp, "errorCode", TCL_GLOBAL_ONLY);
      
            errorInfo = Tcl_GetVar(interp, "errorInfo", TCL_GLOBAL_ONLY);
      
      +     ThreadErrorProc(interp);
      
      +     if (errorProcString != NULL) {
      
      +       /*
      
      +        * assume registered error handler can take care of things
      
      +        */
      
      +       code = TCL_OK;
      
      +       errorCode = errorInfo = NULL;
      
      +     }
      
        } else {
      
            errorCode = errorInfo = NULL;
      
        }
      
      
      PatchFiles:
      
      tclThreadTest.c
      
      
      
      
      
      
    4. foundin initialized to: "final: 8.2.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "49. Threading"
    10. title initialized to: "(tcltest) ThreadErrorProc not always called"
    11. type initialized to: "Bug"
  2. Ticket change [68cc8c5343] (rid 103129) by davygrvy on 2001-04-26 04:41:41:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      please change catagory to the thread package.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  3. Ticket change [3bd5e5ffb0] (rid 112815) by davygrvy on 2001-04-26 07:35:27:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      This is also a thread package issue, too, so I'll group it 
      there.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. subsystem changed to: "80. Thread Package"
    5. username: "davygrvy"
  4. Ticket change [5a41aa6055] (rid 118113) by davygrvy on 2001-04-26 14:43:02:

    1. assignee changed to: "davygrvy"
    2. priority changed to: "8"
  5. Ticket change [2ba9b1eef4] (rid 118779) by davygrvy on 2001-04-26 15:29:07:

    1. closedate changed to: "2001-04-26T08:29:07"
    2. closer changed to: "davygrvy"
    3. icomment:
      Logged In: YES 
      user_id=7549
      
      All fixed.  Thanks for the new feature.
      
      NOTICE: this has been adopted into the thread extension 
      rather than the testthread extension of the test suite.
      
      
    4. login: "davygrvy"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "davygrvy"