Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1500e4b810cd2c44d267cc1276c2e1daa5a274ce
Ticket: 1844789fffffffffffffffffffffffffffffffff
"lsearch -exact -integer ..." crashes
User & Date: thippler on 2007-12-05 12:42:33
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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 changed to: "obsolete: 8.5b3"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "thippler"
  10. subsystem changed to: "10. Objects"
  11. title changed to: ""lsearch -exact -integer ..." crashes"
  12. type changed to: "Bug"