Overview
| Artifact ID: | 6026fd5ce2417d16bc1d3a1d136c7e40139e4ff7 |
|---|---|
| Ticket: | 218530ffffffffffffffffffffffffffffffffff
dynamical linking in standalone executables |
| User & Date: | dgp on 2001-11-02 08:20:54 |
Changes
- assignee changed to: "nijtmans"
- closedate changed to: "2001-11-02T01:20:54"
- closer changed to: "dgp"
- 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.
- login: "dgp"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "dgp"