Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ab74c6db1f05f1d6ee07cc4ac34fda69e7cfc9ad8b1cee6fa44ad22484a132d3
Ticket: d2c2baac2f0494f02dd343569aff2f21ef21ff06
Tcl 9 32-bit build exits immediately with stack overflow on Windows
User & Date: apnadkarni on 2022-11-02 15:18:01
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    A 32-bit build on Windows (tried gcc and vc++) exits immediately on start up with a stack overflow exception. 64-bit builds do not have a problem. I do not have a 32-bit Linux box to see if the issue exists there as well. My guess would be yes.
    
    The stack trace shows recursive calls to TclListObjLength. I believe this is due to these macro definitions: https://core.tcl-lang.org/tcl/file?ci=tip&name=generic/tclDecls.h&ln=4502
    
    Essentially when `sizeof(*lengthPtr) == sizeof(int)` Tcl_ListObjLength expands to `TclListObjLength()`. That in turn calls `Tcl_ListObjLength` resulting in recursion. I believe this comes from the macro changes for TIP 616 and perhaps 628  and will affect not just this function but others defined in that TIP as well (Tcl_DictObjLength for example).
    
    Tcl 8.7 32-bit builds do not have this problem.
    
  5. foundin changed to: "9.0"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Critical"
  11. status changed to: "Open"
  12. submitter changed to: "apnadkarni"
  13. subsystem changed to: "41. Memory Allocation"
  14. title changed to:
    Tcl 9 32-bit build exits immediately with stack overflow on Windows
    
  15. type changed to: "Bug"