Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ef1b9708e8f81dae8048940620422e27cd1d872ceb3e3f86fb98f4177466ae2d
Ticket: 5c3679820afa2aca58ef3bb2041181669fab5ac7
64-Bit Extensions Do Not Work With Old Tcl Applications
User & Date: anonymous on 2025-02-26 18:08:24
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    Tcl extensions created as shared library via stubs interface do not work with old 64-bit tcl applications (version < 9).
    
    Reason: Function / Macro Tcl_InitStubs:
    
    In case of 64-bit application, the application calls Tcl_InitStubs with interface pointer containing a TclStubs pointer with field magic = 0xFCA3BACF.
    Unfortunately, since Tcl_InitStubs is a macro, parameter magic becomes 0xFCA3BAD3 and exact becomes (exact|0xff0900). The result is that TclStubs field magic does not equals parameter magic, therefore the function fails always.
    
    Correct behaviour should be: If parameter version specifies any version < 9, the function should not fail if TclStubs field magic equals either magic or 0xFCA3BACF.
    
  5. foundin changed to: "9.0.1"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "69b1135a4a90e8ec1d2d432575b9891953328cb4"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "38. Init - Library - Autoload"
  15. title changed to:
    64-Bit Extensions Do Not Work With Old Tcl Applications
    
  16. type changed to: "Bug"