Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 13730bf6403cb6b9ea0cc7ae7ac3eb8d25c1a09d
Ticket: 786674ffffffffffffffffffffffffffffffffff
Endless loop in matrix search -nocase option
User & Date: nobody on 2003-08-11 14:06:17
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The matrix search command has a bug in the detection 
    of "-nocase" option.
    Due to the lack of a line of code, this otpion let the 
    interpreter enter into a endless loop in the serach code 
    of the matrix.tcl, in struct package. See comments in 
    the attached matrix.tcl file to catch the problem, 
    proc ::struct::matrix::_search {name args} {
        set mode   exact
        set nocase 0
        while {1} {
    ......................
    ...................
    
    In this way, typing <matrixid> search -nocase 
    anyoption will hang hup the Tcl console.
    
    Adding the marked line solve fixes the mentioned bug.
    
    Regards
    [email protected]
    
  4. foundin changed to: "obsolete: 8.4.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "None"
  10. title changed to: "Endless loop in matrix search -nocase option"
  11. type changed to: "Bug"