Skip to content
Tcl Source Code History Of Ticket 1844789fffffffff
Login

History Of Ticket 1844789fffffffff

Artifacts Associated With Ticket 1844789fffffffff

  1. Ticket change [1500e4b810] (rid 124492) by thippler on 2007-12-05 12:42:33:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      "lsearch" crashes under certain circumstances:
      
      Condition 1:
      The list and the query object share the same Tcl_Obj.
      
      Condition 2:
      Options used for lsearch are "-exact" and "-integer" or "-real"
      
      crash example1:
        set x 0
        set y $x
        lsearch -exact -integer $x $y
      
      
      crash example2:
        set x 0.2
        set y $x
        lsearch -exact -real $x $y
      
      does not crash (example1 without -exact):
        set x 0
        set y $x
        lsearch -integer $x $y
      
      I tested this with tcl8.5b3 (windows) and tcl8.5b1 (linux)
      
    4. foundin initialized to: "obsolete: 8.5b3"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "thippler"
    10. subsystem initialized to: "10. Objects"
    11. title initialized to: ""lsearch -exact -integer ..." crashes"
    12. type initialized to: "Bug"
  2. Ticket change [fd1d1b22fe] (rid 108356) by dkf on 2007-12-05 20:15:58:

    1. assignee changed to: "dkf"
    2. priority changed to: "9 Immediate"
    3. subsystem changed to: "18. Commands M-Z"
  3. Ticket change [5a536e0244] (rid 118124) by msofer on 2007-12-05 20:29:54:

    1. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      Verified also in 8.4 - ie, this is not due to the new List intrep.
      
      Stack trace of the first example shows that itemPtr at line 3162 in tclCmdIl.c has both bytes and typePtr NULL, and refCount 0. This is not a valid state for a Tcl_Obj
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  4. Ticket change [7c33e21dcd] (rid 97037) by dkf on 2007-12-05 20:31:11:

    1. subsystem changed to: "17. Commands I-L"
  5. Ticket change [8318c859d5] (rid 117339) by dkf on 2007-12-05 20:45:55:

    1. closedate changed to: "2007-12-05T13:45:55"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      Originator: NO
      
      Was a shimmering smash.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"