Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-09-17
09:23 • Ticket [2114165fff] eval after script cancellation does not work status stil... artifact: 141872cba1 user: mistachkin
07:33 • Ticket [2114165fff]: 7 changes artifact: eea8b6975c user: msofer
2008-09-16
22:57 • Ticket [2114165fff]: 1 change artifact: 34710c80d4 user: msofer
22:57 • Ticket [2114165fff]: 4 changes artifact: 33468cc0bf user: msofer
13:18 • New ticket [2114165fff]. artifact: 0faee8aa0e user: mistachkin

eval after script cancellation does not work

Open2114165fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-09-16 13:18:58
Using Tcl_EvalObjEx after a previous to Tcl_CancelEval is no longer working (it always returns "eval canceled").

I believe this is due to a lack of a TclResetCancellation call in that code path (which also used to manage iPtr->numLevels).

There may be other code paths that suffer from this problem also?
msoferplain2008-09-16 22:57:21
The testsuite seems to be happy enough (on linux). Could you please post sample code? It will help tracing the code path that is misbehaving.
msofer Ticket [2114165fff]: 1 change [History diff]2008-09-16 22:57:22
msoferplain2008-09-17 07:33:56
Fixed in HEAD; leaving open as reminder to add tests
mistachkinplain2008-09-17 09:23:51
There was another small issue (unrelated to the NRE).  The TclResetCancellation call in tclParse.c needs to be after the numLevels is reduced (on the way out) so that it follows the TIP and matches what is done in Tcl_EvalObjEx, et al.
Log in (anonymous is fine) to add a comment.