Artifacts Associated With Ticket 9dfae3413d
Ticket change [0e22c8c927] (rid 241983) by sbron on 2025-06-25 20:47:02:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized to:
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!
- foundin initialized to: "54eb90319d"
- is_private initialized to: "0"
- login: "sbron"
- priority initialized to: "5 Medium"
- private_contact initialized to: "8475f421649231f1e116ac602bea4537d2b027b4"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "sbron"
- subsystem initialized to: "20. [interp]"
- title initialized to: "interp limit commands still seems to be 32 bits"
- type initialized to: "Bug"
Ticket change [d1218db60a] (rid 241984) by oehhar on 2025-06-26 05:42:58:
- icomment:
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
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"
- icomment:
Ticket change [0a496e5307] (rid 242005) by jan.nijtmans on 2025-06-26 08:04:22:
- icomment:
Does [https://core.tcl-lang.org/tcl/timeline?r=bug-9dfae3413d|this] work better?
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [93b2bae366] (rid 242123) by jan.nijtmans on 2025-06-27 15:34:06:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2460854.1486866"
- closer changed to: "jan.nijtmans"
- icomment: "Fixed [9e759845da6d8235|here]"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"