Menu

#491 Tcl core dumps if Tcl API called before creating interpreter

obsolete: 8.2.1
closed-invalid
nobody
2
2001-04-18
2000-10-26
Anonymous
No

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

Discussion

  • Brent B. Welch

    Brent B. Welch - 2000-10-26
    • priority: 5 --> 2
    • status: open --> closed-fixed
     
  • Don Porter

    Don Porter - 2001-04-18
    • labels: 104246 --> 38. Init - Library - Autoload
    • status: closed-fixed --> closed-invalid