Tcl Source Code

View Ticket
Login
Ticket UUID: 1038021
Title: CallVarTraces: save/restore interp state
Type: Bug Version: obsolete: 8.4.7
Submitter: dgp Created on: 2004-09-30 20:31:19
Subsystem: 07. Variables Assigned To: dgp
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2004-10-06 01:08:09
Resolution: Fixed Closed By: dgp
    Closed on: 2004-09-30 22:54:59
Description:
This test demos the problem.

test var-16.1 {CallVarTraces: save/restore interp error
state} {
    trace add variable errorCode write { ;#}
    catch {error foo bar baz}
    trace remove variable errorCode write { ;#}
    set errorInfo
} bar

Attached patch includes the test and
the bug fix.
User Comments: dgp added on 2004-10-06 01:08:09:
Logged In: YES 
user_id=80530


Note that fixing this bug
allows the ERR_IN_PROGRESS
"hack" in Tcl_PopCallFrame
to be removed.  It was a workaround
for this bug.

dgp added on 2004-10-01 05:54:59:
Logged In: YES 
user_id=80530

corresponding patch
(in tclTrace.c) committed
to HEAD.

dgp added on 2004-10-01 05:46:01:
Logged In: YES 
user_id=80530

fix committed to core-8-4-branch

dgp added on 2004-10-01 03:31:21:

File Added - 103373: state.patch

Attachments: