Skip to content
Tcl Source Code History Of Ticket 9dfae3413d
Login

History Of Ticket 9dfae3413d

Artifacts Associated With Ticket 9dfae3413d

  1. Ticket change [0e22c8c927] (rid 241983) by sbron on 2025-06-25 20:47:02:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. 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!
      
    5. foundin initialized to: "54eb90319d"
    6. is_private initialized to: "0"
    7. login: "sbron"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "8475f421649231f1e116ac602bea4537d2b027b4"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "sbron"
    14. subsystem initialized to: "20. [interp]"
    15. title initialized to: "interp limit commands still seems to be 32 bits"
    16. type initialized to: "Bug"
  2. Ticket change [d1218db60a] (rid 241984) by oehhar on 2025-06-26 05:42:58:

    1. 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
      
    2. login: "oehhar"
    3. mimetype: "text/x-fossil-wiki"
    4. username: "oehhar"
  3. Ticket change [0a496e5307] (rid 242005) by jan.nijtmans on 2025-06-26 08:04:22:

    1. icomment:
      Does [https://core.tcl-lang.org/tcl/timeline?r=bug-9dfae3413d|this] work better?
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  4. Ticket change [93b2bae366] (rid 242123) by jan.nijtmans on 2025-06-27 15:34:06:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2460854.1486866"
    3. closer changed to: "jan.nijtmans"
    4. icomment: "Fixed [9e759845da6d8235|here]"
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"