Artifacts Associated With Ticket 219324
Ticket change [5cd2100413] (rid 115367) by nobody on 2000-10-26 05:10:45:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "final: 8.2.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "49. Threading"
- title initialized to: "(tcltest) ThreadErrorProc not always called"
- type initialized to: "Bug"
Ticket change [68cc8c5343] (rid 103129) by davygrvy on 2001-04-26 04:41:41:
- icomment:
Logged In: YES user_id=7549 please change catagory to the thread package.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [3bd5e5ffb0] (rid 112815) by davygrvy on 2001-04-26 07:35:27:
- icomment:
Logged In: YES user_id=7549 This is also a thread package issue, too, so I'll group it there.
- login: "davygrvy"
- mimetype: "text/plain"
- subsystem changed to: "80. Thread Package"
- username: "davygrvy"
- icomment:
Ticket change [5a41aa6055] (rid 118113) by davygrvy on 2001-04-26 14:43:02:
- assignee changed to: "davygrvy"
- priority changed to: "8"
Ticket change [2ba9b1eef4] (rid 118779) by davygrvy on 2001-04-26 15:29:07:
- closedate changed to: "2001-04-26T08:29:07"
- closer changed to: "davygrvy"
- 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.
- login: "davygrvy"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "davygrvy"