Skip to content
Tcl Source Code History Of Ticket b24becc2
Login

History Of Ticket b24becc2

Artifacts Associated With Ticket b24becc2

  1. Ticket change [19f6091a8b] (rid 260407) by apnadkarni on 2026-10-25 03:16:59:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. comment initialized to:
      ```
      % package req Tcl
      9.0.4
      % set x [lseq 1]; lindex $x $x
      -> NULL pointer access crash
      ```
      
    5. foundin initialized to: "9.0"
    6. is_private initialized to: "0"
    7. login: "apnadkarni"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
    10. resolution initialized to: "None"
    11. severity initialized to: "Severe"
    12. status initialized to: "Open"
    13. submitter initialized to: "apnadkarni"
    14. subsystem initialized to: "- New Builtin Commands"
    15. title initialized to: "Crash on indexing into abstract lists"
    16. type initialized to: "Bug"
  2. Ticket change [d1f5cb614e] (rid 260409) by apnadkarni on 2026-10-25 04:14:24:

    1. icomment:
      ```
      % set x [lseq 1]; [subst lindex] $x $x
      0
      ```
      
      so crash only occurs on compiled path where the code does not guard against shimmering. A general pattern that the whole code base needs to be examined for is
      
      ```
      if (TclObjTypeHasProc(objPtr, XXX)) {
         ...some code...
         TclObjTypeXXX(objPtr...)
      }
      ```
      
      where "some code" shimmers objPtr so the TclObjTypeXXX call is no longer valid.
      
    2. login: "apnadkarni"
    3. mimetype: "text/x-markdown"
  3. Ticket change [a71fd2488a] (rid 260416) by apnadkarni on 2026-10-25 05:59:59:

    1. icomment:
      Proposed fix is in place in [b24becc2ab] as part of the bug-0c82728f85 branch that is dealing with various shimmering issues. Leaving open as similar occurrences need to be hunted down.
      
    2. login: "apnadkarni"
    3. mimetype: "text/x-fossil-plain"
  4. Ticket change [95acd80b96] (rid 260417) by apnadkarni on 2026-10-25 06:02:29:

    1. icomment:
      As an aside, it may be worth optimizing the Tcl_GetIndexFromObj/Tcl_GetNumberFromObj/ParseNumber call tree to not shimmer single element lists but instead parse the first element instead.
      
    2. login: "apnadkarni"
    3. mimetype: "text/plain"
  5. Ticket change [0000c5d29e] (rid 260658) by apnadkarni on 2026-10-27 10:16:07:

    1. icomment:
      Another shimmering crash for the record. This one happens when the abstract list does not define the (optional) `indexProc` method.
      
      ```
      % set l [lstring -not INDEX 0]
      0
      % lindex $l $l
      -> crash
      ```
      
    2. login: "apnadkarni"
    3. mimetype: "text/x-markdown"
  6. Ticket change [9babffd7b3] (rid 260789) by apnadkarni on 2026-10-29 11:56:44:

    1. closedate changed to: "2461342.997742882"
    2. closer changed to: "apnadkarni"
    3. icomment:
      Fixed for 9.1 in [54a03368ce] and 9.0 in [d27dbcd1b3].
      
    4. login: "apnadkarni"
    5. mimetype: "text/x-fossil-plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"