Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Tcl core dumps if Tcl API called before creating interpreter

Closed / Invalid218338ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:56:24
OriginalBugID: 3981 Bug
Version: 8.2.1
SubmitDate: '2000-01-06'
LastModified: '2000-01-07'
Severity: MED
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: SunOS
FixedDate: '2000-10-25'
ClosedDate: '2000-01-07'


Name:
Michal Prussak

Comments:
This probably happens on any Tcl API call that deals with strings if the string subsystem has not been initialized. 
Workaround is to call     TclInitSubsystems(NULL);

ReproducibleScript:
main ()
{
    /* declarations */
    ....

    consoleChannel = Tcl_CreateChannel(&consoleChannelType, "console0",
    (ClientData) TCL_STDIN, TCL_READABLE);
    interp = Tcl_CreateInterp();
}

ObservedBehavior:
Core dump

DesiredBehavior:
No core dump



I belive what the user really wants to call is the public:
    Tcl_FindExecutable(argv[0]) 
-- 01/07/2000 hobbs
welch Closed ticket [218338ffff]. [History diff]2000-10-26 08:20:07
dgp Ticket [218338ffff]: 4 changes [History diff]2001-04-19 04:13:53
Log in (anonymous is fine) to add a comment.