Skip to content
Tcl Source Code History Of Ticket 219416
Login

History Of Ticket 219416

Artifacts Associated With Ticket 219416

  1. Ticket change [2eb5a00a5a] (rid 92936) by nobody on 2000-10-26 05:12:39:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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
      
      
      
      
      
      
    4. foundin initialized to: "obsolete: 8.3.2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to:
      Application crashes if sarted in top level dir, e.g. K:\myAp
      
    11. type initialized to: "Bug"
  2. Ticket change [17ed1505db] (rid 122579) by dkf on 2000-11-19 18:43:02:

    1. icomment:
      Seems to work for me in 8.3.0; strange...
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. subsystem changed to: "90. FAQs"
    5. username: "dkf"
  3. Ticket change [d028e83201] (rid 113117) by dgp on 2000-12-21 05:34:16:

    1. icomment:
      Confirmed.  The buggy code may attempt to access pathv[-1].
      
      The same bug is also present in the Unix initialization.
      To demonstrate it there:
      
      $ configure --disable-shared
      $ make
      $ cp ./tclsh /
      $ /tclsh
      Segmentation fault
      
      Patch 102972 contains a fix.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. username: "dgp"
  4. Ticket change [1e1790296c] (rid 90918) by dgp on 2000-12-21 05:40:51:

    1. assignee changed to: "dgp"
    2. foundin changed to: "obsolete: 8.4a2"
    3. subsystem changed to: "69. Other"
  5. Ticket change [7139b5b364] (rid 100634) by dgp on 2001-01-05 04:33:06:

    1. closedate changed to: "2001-01-04T21:33:06"
    2. closer changed to: "dgp"
    3. icomment:
      Fixed by integration of Patch 102972.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"
  6. Ticket change [d033333a43] (rid 113129) by dgp on 2001-04-20 02:58:03:

    1. closedate changed to: "2001-04-19T19:58:03"
    2. closer changed to: "dgp"
    3. subsystem changed to: "38. Init - Library - Autoload"