Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 06ff5c7363b854ca1f31029c39b6a4c162947df4
Ticket: 1072136fffffffffffffffffffffffffffffffff
change to tcl_findLibrary breaks freewrap
User & Date: freewrapmgr on 2004-11-29 07:13:07
Changes

  1. icomment:
    Logged In: YES 
    user_id=110848
    
    I'm afraid this bug notice was closed out too soon. There appears to be a 
    bug in the C code that supports the [file normalize] command. It looks like 
    TCL's C code has a side effect that improperly overwrites memory pointed 
    to by a TCL variable. 
     
    The "reasons" put forth so far to explain the bug notice are incorrect. Here 
    are the reasons for my conclusion: 
     
    1) The TCLSH only version of freeWrap still builds and runs fine under 
    Windows. 
     
    2) The posted problem does not occur until the TCL/TK version of 
    freeWrap is built. 
     
    3) Although removing the call to [file normalize] in the auto.tcl file does 
    "fix" the problem, placing the following line after the offending line should 
    also provide a fix...But it doesn't! 
     
          set norm $i 
     
    Replacing the offending line with: 
     
          file normalize $i 
          set norm $i 
     
    still produces the problem. This means that [file normalize $i] is producing 
    an unwanted side-effect that is preventing proper TK initilization. 
    Comments in the TCL C code seems to indicate that the normalization 
    process extends the path string by using the memory pointed to by a 
    pointer. The intermittent "failure" of the code is consistent with the 
    accidental overwriting of memory (Sometimes the memory overwritten is 
    important, sometimes it is not). 
     
    
    
  2. login: "freewrapmgr"
  3. mimetype: "text/plain"
  4. username: "freewrapmgr"