Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6026fd5ce2417d16bc1d3a1d136c7e40139e4ff7
Ticket: 218530ffffffffffffffffffffffffffffffffff
dynamical linking in standalone executables
User & Date: dgp on 2001-11-02 08:20:54
Changes

  1. assignee changed to: "nijtmans"
  2. closedate changed to: "2001-11-02T01:20:54"
  3. closer changed to: "dgp"
  4. icomment:
    Logged In: YES 
    user_id=80530
    
    Moving this from Closed to Pending so I can get
    some feedback from Jan Nijtmans on it.
    
    As reported in Bug 476537
    
    http://sf.net/tracker/?func=detail&aid=476537&group_id=10894&atid=110894
    
    the patch in Bug Report 218530 has a problem (that may have
    arisen long after the patch was accepted) that when
    tclEmptyStringRep is invalid, the call to
    Tcl_AppendResult() will panic.
    
    Since I'm working on a fix for that problem anyway, I want
    to also update the comment describing the check so that
    programmers other than Jan Nijtmans and Paul Duffin can
    understand it!  Bug Report 218530 contains more detail,
    so I'm understanding it better.  I can see how two copies
    of a global variable can exist within the executable on
    a platform without backlinking support, but there are two
    things I don't understand
    
    1) What does it mean for a DLL to be "partially
    initialized"?  
    
    2) How can it be that Tcl_PkgRequireEx() is referencing the
    wrong (uninitialized) tclEmptyStringRep variable?  When
    Tcl_InitStubs(interp,version,exact) is called, the
    stubs pointer from interp is the one used to look
    up Tcl_PkgRequireEx, so both ought to be coming from 
    the original executable.  How is it that the 
    Tcl_PkgRequireEx() in the original executable is
    somehow seeing an uninitialized tclEmptyStringRep, 
    presumably from the improperly-stub-enabled shared
    library?
    
    I await enlightenment from Jan Nijtmans, or anyone
    else who wants to volunteer.
    
    
  5. login: "dgp"
  6. mimetype: "text/plain"
  7. status changed to: "Closed"
  8. username: "dgp"