Tcl Source Code

View Ticket
Login
Ticket UUID: 1063707
Title: error in proc ::unknown
Type: Bug Version: obsolete: 8.4.7
Submitter: nobody Created on: 2004-11-10 10:21:38
Subsystem: 38. Init - Library - Autoload Assigned To: dgp
Priority: 9 Immediate Severity:
Status: Closed Last Modified: 2004-11-13 07:41:57
Resolution: Fixed Closed By: dgp
    Closed on: 2004-11-13 00:41:57
Description:
Hi everyone,

we installed the latest tcl package provided by suse 9.2 
these days.

a problem we run into these days was some kind of 
strange errors concerning proc ::unknown
this proc was called sometimes (we could not tell why 
and when) without the existence of an error
=> so errorInfo and errorCode were not set.
we did not get out why we ran into it and did not have 
the time for further investigations.
=> so we slightly changed the code in init.tcl to handle 
this....

cheers,
Christoph
User Comments: dgp added on 2004-11-13 07:41:57:
Logged In: YES 
user_id=80530


[unknown] updated for Tcl 8.4.8
so that it can tolerate an unset
::errorInfo or ::errorCode

dgp added on 2004-11-11 01:55:28:
Logged In: YES 
user_id=80530


any progress you can make on
the "why and when" question would
help.  As you can see, the errorInfo
and errorCode variables are set
in lines 136 and 137 of init.tcl, so
it would appear that some code
somewhere is explicitly unsetting
them and then ending up in
[unknown].

Your mods are probably worthwhile
for 8.4.8 as a safety measure, but
I'd say the real bug here is whatever
code is unsetting errorInfo and errorCode.

For Tcl 8.5, [unknown] no longer references
the errorInfo and errorCode variables, so
this will no longer be a problem.

Thanks for the report and any followup.

nobody added on 2004-11-10 17:21:38:

File Added - 108264: init.tcl

Attachments: