Overview
| Artifact ID: | 56c05792d1290ce54792769a17130ce85f661866 |
|---|---|
| Ticket: | 2558422fffffffffffffffffffffffffffffffff
const Tcl_ObjTypes breaking stubs contract. |
| User & Date: | patthoyts on 2009-02-02 22:01:34 |
Changes
- assignee changed to: "nijtmans"
- cmimetype changed to: "text/plain"
- comment changed to:
The change to the core Tcl_ObjTypes of 15 Oct 2008 has the return type for Tcl_GetObjType and the storage attribute for the core type structures to const. As noted in the commit comment for some (all?) compilers this will move the storage location in the binary to the TEXT segment so that the structure is truly constant. However, this change critically affects the following extensions: tcom (Windows COM support); tcljava, tclblend, nsjava (all java bridges, possibly all variations on a single code base); combat (CORBA bridge); e4graph. All these extensions use the same technique of overriding the cmdName type to add code to the freeIntRepProc member. These extensions now crash when loaded into an 8.6 interpreter. The reason these extensions do this is to provide for command-like references to things that need cleaning up automatically. I could go on with an explanation of the COM package's use of this but really the main point is that this commit has changed the stubs contract here. Extensions that were fine using stubs with 8.4 and 8.5 now crash with 8.6. Can we have this reverted: C:\opt\tcl\src\tcl.git>git bisect good 63c56af1f8be10728f09ff1d066ec899977d9e16 is first bad commit commit 63c56af1f8be10728f09ff1d066ec899977d9e16 Author: nijtmans <nijtmans> Date: Wed Oct 15 06:17:03 2008 +0000 Add "const" to many internal const tables, so those will be put by the C-compiler in the TEXT segment in stead of the DATA segment. This makes those table sharable in shared libraries. - foundin changed to: "obsolete: 8.6b1.1"
- is_private changed to: "0"
- priority changed to: "9 Immediate"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "patthoyts"
- subsystem changed to: "10. Objects"
- title changed to: "const Tcl_ObjTypes breaking stubs contract."
- type changed to: "Bug"