|
2022-11-02
| ||
| 16:04 | • Closed ticket [d2c2baac2f]: Tcl 9 32-bit build exits immediately with stack over... artifact: 153eda9771 user: jan.nijtmans | |
| 16:02 | Fix [d2c2baac2]: Tcl 9 32-bit build exits immediately with stack overflow on Windows check-in: ab45fca085 user: jan.nijtmans tags: trunk, main | |
| 15:26 | • Ticket [d2c2baac2f] Tcl 9 32-bit build exits immediately with stack overflow on ... artifact: 4a76824dc4 user: apnadkarni | |
| 15:26 | • Ticket [d2c2baac2f]: 3 changes artifact: 26cb7fee2b user: jan.nijtmans | |
| 15:18 | • New ticket [d2c2baac2f]. artifact: ab74c6db1f user: apnadkarni | |
Tcl 9 32-bit build exits immediately with stack overflow on Windows
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.
Fixed [here]
Thanks for the report!