Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-10-06
01:08 • Ticket [1038021fff] CallVarTraces: save/restore interp state status still Cl... artifact: 3d07f3ef39 user: dgp
2004-10-01
05:54 • Closed ticket [1038021fff]. artifact: 2542eefd25 user: dgp
05:46 • Ticket [1038021fff]: 6 changes artifact: 5002b5cb21 user: dgp
03:31 • Add attachment state.patch to ticket [1038021fff] artifact: e2f55bbb55 user: dgp
03:31 • Ticket [1038021fff] CallVarTraces: save/restore interp state status still Op... artifact: 3d821c90a4 user: dgp
2004-09-30
20:31 • New ticket [1038021fff]. artifact: 9a8e67c344 user: dgp

CallVarTraces: save/restore interp state

Closed / Fixed1038021fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-09-30 20:31:19
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.
dgpplain2004-10-01 03:31:21
File Added - 103373: state.patch
dgpplain2004-10-01 05:46:01
Logged In: YES 
user_id=80530

fix committed to core-8-4-branch
dgpplain2004-10-01 05:54:59
Logged In: YES 
user_id=80530

corresponding patch
(in tclTrace.c) committed
to HEAD.
dgpplain2004-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.
Log in (anonymous is fine) to add a comment.

Attachments: