|
2004-03-30
| ||
| 23:34 | • Closed ticket [495830ffff]: execution in deleted interpreter plus 8 other ch... artifact: 040a3d0498 user: msofer | |
|
2003-11-17
| ||
| 23:10 | • Ticket [495830ffff]: 5 changes artifact: 6f6c63f036 user: dgp | |
|
2003-11-16
| ||
| 20:59 | • Ticket [495830ffff]: 4 changes artifact: 567d9f5c4b user: msofer | |
| 20:59 | • Add attachment interpDeleted.patch to ticket [495830ffffffffff|495830ff... artifact: d9625b3029 user: msofer | |
| 19:21 | • Ticket [495830ffff] execution in deleted interpreter status still Open with ... artifact: a97e892046 user: msofer | |
|
2003-11-13
| ||
| 08:39 | • Ticket [495830ffff]: 1 change artifact: 810c3b76e0 user: dgp | |
| 08:38 | • Ticket [495830ffff]: 1 change artifact: cb5efe275c user: dgp | |
|
2003-06-11
| ||
| 02:48 | • Ticket [495830ffff]: 4 changes artifact: d33e06a111 user: msofer | |
| 01:01 | • Ticket [495830ffff]: 4 changes artifact: ed5ff935fc user: msofer | |
|
2003-06-10
| ||
| 22:54 | • Ticket [495830ffff]: 4 changes artifact: fb5a773ba4 user: dgp | |
| 06:09 | • Ticket [495830ffff]: 4 changes artifact: e541733b3b user: jyljyljyl | |
|
2002-06-21
| ||
| 01:40 | • Ticket [495830ffff]: 5 changes artifact: 6e0d487c93 user: msofer | |
|
2001-12-21
| ||
| 12:26 | • New ticket [495830ffff]. artifact: 117d35941c user: msofer | |
execution in deleted interpreter
Closed / Fixed495830ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 23 years ago
Descriptionplain2001-12-21 12:26:36
The following script
interp create tst
interp alias tst suicide {} interp delete tst
tst eval {proc bug {} {suicide; set a 5}}
tst eval bug
returns 5, the bytecode runs to the end without
noticing the dead
interp!
msoferplain2002-06-21 01:40:10
Logged In: YES user_id=148712 This is actually not *that* bad, as not much can happen in the deleted interpreter: no non-compiled cmds can be run, no variable can be saved, ... The only real problem is that we get a TCL_OK return
jyljyljylplain2003-06-10 06:09:27
Logged In: YES user_id=63723 I want to understand, is this a problem only in compiled bytecodes? If the code runs interpreted (I don't know how to create an equivalent interpreted example..) does execution terminate with an error (as expected) after "suicide"? --JYL
dgpplain2003-06-10 22:54:54
Logged In: YES
user_id=80530
jyl, try this alternative:
interp create tst
interp alias tst suicide {} interp delete tst
tst eval {proc bug {} {set set set; suicide; $set a 5}}
tst eval bug
msoferplain2003-06-11 01:01:58
Logged In: YES user_id=148712 The original bug exists in 8.3 too. dgp's version is OK in 8.3, buggy in 8.4. This probably has to do with the overall reorganization in the different execution paths.
msoferplain2003-06-11 02:48:05
Logged In: YES user_id=148712 The new bug is now fixed in 8.4-branch and 8.5
dgp Ticket [495830ffff]: 1 change
[History diff]2003-11-13 08:38:00
dgp Ticket [495830ffff]: 1 change
[History diff]2003-11-13 08:39:19
msoferplain2003-11-16 19:21:23
File Added - 67667: interpDeleted.patch
Logged In: YES
user_id=148712
The attached patch solves this particular issue and passes
the complete testsuite. I am however worried about it being
too strict: is it true that the only bc instruction to be
allowed in a deleted interpreter is INST_DONE? In principle,
invoking new commands is what should be forbidden.
Ie, what should happen with
tst eval {proc bug {} {catch {suicide} m}
tst eval bug
This patch returns an error, which may be right or not ...
in principle, 'catch' was called before the interp deletion,
and it is not clear tome if it should run to the end or not.
Requesting comments.
msoferplain2003-11-16 20:59:25
File Deleted - 67667: File Added - 67671: interpDeleted.patch Logged In: YES user_id=148712 Added two tests to the patch, although I'm not sure what the correct returns should be (see previous remark).
dgpplain2003-11-17 23:10:03
Logged In: YES user_id=80530 We need documentation on what operations should be permitted in a deleted interp, and why. If such documentation doesn't already exist somewhere, we need to create it, by divining intent from the source code as best we can, I guess. This will take some time (or intervention by someone wiser).
msoferplain2004-03-30 23:34:57
Logged In: YES user_id=148712 Fixed in 8.5a2 together with bug #729692
Log in (anonymous is fine) to add a comment.
Attachments:
- interpDeleted.patch [download] added by msofer on 2003-11-16 20:59:25. [details]