Overview
| Artifact ID: | 2eb5a00a5ab2afbdd1e98673370738537a0ac07b |
|---|---|
| Ticket: | 219416ffffffffffffffffffffffffffffffffff
Application crashes if sarted in top level dir, e.g. K:\myAp |
| User & Date: | nobody on 2000-10-26 05:12:39 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 6364 Bug Version: 8.3.2 SubmitDate: '2000-10-16' LastModified: '2000-10-25' Severity: CRIT Status: UnAssn Submitter: techsupp OS: Windows NT OSVersion: Windown NT, 4.0 SP 5 Machine: Dual Pentium III, >500MHz FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: Jens-Achim Kessel CVS: Id: tclWinInit.c,v 1.22 2000/03/31 08:52:31 hobbs Exp Extensions: Tcl 8.3.2 / Tk 8.3.2 / Tix 8.0 CustomShell: (For easy bugfixing in our own packages i've compiled all libraries as hidden debug-version, e.g. tcl8.3.dll does contain debug information. It's better for our purposals.) ReproducibleScript: Tcl is embedded in a LabVIEW environment. The application works fine in Development environment and crashes with a RuntimeError #3 if started from the Runtime Environment. Following up the program with C++ Debugger, it crashes in Line 293 ckfree(...) of tclWinInit.c. At this point no Tcl script was executed. It's still in the basic initialization part of Tcl, inside Tcl_FindExecutable(...). ObservedBehavior: Inside TclpInitLibraryPath(), Line 279/280: if (pathc > 1) { pathv[pathc - 3] = developLib; will access element [-1] if started as 'K:\myApp.exe' => crash follows, when memory of pathv if freed. DesiredBehavior: Should better be: if (pathc > 2) { pathv[pathc - 3] = developLib; I changed the line and it works fine now without a crash! Patch: *** tclWinInit.c.old Mon Oct 16 17:59:41 2000 --- tclWinInit.c.new Mon Oct 16 16:00:12 2000 *************** *** 276,282 **** Tcl_ListObjAppendElement(NULL, pathPtr, objPtr); Tcl_DStringFree(&ds); } ! if (pathc > 1) { pathv[pathc - 3] = developLib; path = Tcl_JoinPath(pathc - 2, pathv, &ds); objPtr = Tcl_NewStringObj(path, Tcl_DStringLength(&ds)); --- 276,282 ---- Tcl_ListObjAppendElement(NULL, pathPtr, objPtr); Tcl_DStringFree(&ds); } ! if (pathc > 2) { pathv[pathc - 3] = developLib; path = Tcl_JoinPath(pathc - 2, pathv, &ds); objPtr = Tcl_NewStringObj(path, Tcl_DStringLength(&ds)); PatchFiles: tcl8.3.2/win/tclWinInit.c - foundin changed to: "obsolete: 8.3.2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to:
Application crashes if sarted in top level dir, e.g. K:\myAp
- type changed to: "Bug"