|
2025-06-27
| ||
| 15:34 | • Closed ticket [9dfae3413d]: interp limit commands still seems to be 32 bits ... artifact: 93b2bae366 user: jan.nijtmans | |
| 15:28 | Fix [9dfae3413d]: interp limit commands still seems to be 32 bits check-in: 9e759845da user: jan.nijtmans tags: core-9-0-branch | |
|
2025-06-26
| ||
| 08:04 | • Ticket [9dfae3413d] interp limit commands still seems to be 32 bits status s... artifact: 0a496e5307 user: jan.nijtmans | |
| 07:59 | Fix [9dfae3413d]: interp limit commands still seems to be 32 bits check-in: 17482fa361 user: jan.nijtmans tags: bug-9dfae3413d | |
| 05:42 | • Ticket [9dfae3413d] interp limit commands still seems to be 32 bits status s... artifact: d1218db60a user: oehhar | |
|
2025-06-25
| ||
| 20:47 | • New ticket [9dfae3413d]. artifact: 0e22c8c927 user: sbron | |
interp limit commands still seems to be 32 bits
After running for quite some time, some interp in my program has executed 2147000000. As the interp doesn't seem to be misbehaving, I would like to increase its command limit by another 1000000. That results in an error: "command limit value must be at least 0" This happened on Tcl 8.6.14, so I thought to test in the latest 9.0 as that changed "everything" to 64 bits. But to my dismay I could still easily reproduce the error:
% [interp create] limit commands -value 2148000000
command limit value must be at least 0
The manual page for Tcl_LimitSetCommands() does indicate that commandLimit is of type Tcl_Size. But the reverse function, Tcl_LimitGetCommands() is still documented to return an int.
Diving into the source code, I see that Tcl_LimitGetCommands() actually returns a Tcl_Size, as I would have expected. However, I also find that ChildCommandLimitCmd() calls Tcl_LimitSetCommands() with variable limit, which is still an int!
9e759845daFix [9dfae3413d]: interp limit commands still seems to be 32 bits check-in2025-06-27 15:28:0117482fa361Fix [9dfae3413d]: interp limit commands still seems to be 32 bits check-in2025-06-26 07:59:27
Schelte, great catch. May I motivate you to work on a patch? Even if you refuse to write C code, it may be a start ;-)
Or what about a branch with a test case?
Thanks for all, Harald
Does this work better?
Fixed [here]