|
2009-03-18
| ||
| 23:52 | • Closed ticket [2689307fff]: errorCode no longer set correctly in interactive mod... artifact: e415ed8fd8 user: dgp | |
| 23:42 | • Ticket [2689307fff]: 4 changes artifact: 5735a2e706 user: dgp | |
| 23:42 | • Add attachment 2689307.patch to ticket [2689307fff] artifact: 8628c3271c user: dgp | |
| 20:16 | • Ticket [2689307fff] errorCode no longer set correctly in interactive mode st... artifact: f7a336f55c user: dgp | |
| 20:11 | • Ticket [2689307fff]: 4 changes artifact: e448554242 user: dgp | |
| 20:06 | • Ticket [2689307fff]: 4 changes artifact: 341bbb0f4e user: dgp | |
| 20:04 | • Ticket [2689307fff]: 4 changes artifact: 9d2027c6a0 user: dgp | |
| 03:38 | • Ticket [2689307fff]: 5 changes artifact: 2b21cfee8b user: dgp | |
|
2009-03-17
| ||
| 20:41 | • Ticket [2689307fff]: 4 changes artifact: 857e85dd37 user: tallniel | |
| 20:25 | • Ticket [2689307fff]: 4 changes artifact: 69487f163d user: dgp | |
| 20:24 | • Ticket [2689307fff]: 2 changes artifact: 4c247593c0 user: dgp | |
|
2009-03-16
| ||
| 22:51 | • New ticket [2689307fff]. artifact: 6725ffe36f user: tallniel | |
errorCode no longer set correctly in interactive mode
Closed / Fixed2689307fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2009-03-16 22:51:46
Current CVS HEAD Tcl no longer seems to set the errorCode global variable correctly when operating in interactive mode:
% info patch
8.6b1.1
% expr {1/0}
divide by zero
% set errorCode
TCL LOOKUP VARNAME
The correct errorCode (ARITH DIVZERO...) is produced when using [catch] or when placing the above code in a script. This seems to
happen for all errors, including those created with throw/error or thrown from within procedures.
dgp Ticket [2689307fff]: 2 changes
[History diff]2009-03-17 20:24:47
dgpplain2009-03-17 20:25:20
Is this also true for the 8.6b1 release, or is this a regression since then?
tallnielplain2009-03-17 20:41:58
Seems to be a regression since then. 8.6b1 produces the correct ARITH DIVZERO errorCode.
dgpplain2009-03-18 03:38:17
dkf's 2009-01-08 commit appears to be the trigger.
dgpplain2009-03-18 20:04:47
Appears to be droppings from (in effect) the [catch $::tcl_prompt1] use to support interactive prompt customization.
dgpplain2009-03-18 20:06:45
still mysterious is why errorCode gets an overwrite, but errorInfo is unmolested.
dgpplain2009-03-18 20:11:56
errorCode is overwritten during the Tcl_GetVar2Ex() call at line 776 of tclMain.c. The TCL_LEAVE_ERR_MSG flag is not set.
dgpplain2009-03-18 20:16:29
ok, can't reach final solution on this attempt, but it's looking like the issue to chase down is whether all the machinery in tclVar.c is resepecting the TCL_LEAVE_ERR_MSG flag when present and when absent.
dgpplain2009-03-18 23:42:10
File Added - 318396: 2689307.patch Attached patch takes the errorCode setting out of TclLookupSimpleVar() and pushes the burden up onto its callers. File Added: 2689307.patch
dgpplain2009-03-18 23:52:25
allow_comments - 1 committed.
Log in (anonymous is fine) to add a comment.
Attachments:
- 2689307.patch [download] added by dgp on 2009-03-18 23:42:10. [details]