Skip to content
Tcl Source Code History Of Ticket 217984
Login

History Of Ticket 217984

Artifacts Associated With Ticket 217984

  1. Ticket change [4ff1181826] (rid 125899) by nobody on 2000-10-26 00:47:09:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 5965 Bug
      Version: 8.3.1
      SubmitDate: '2000-06-29'
      LastModified: '2000-06-30'
      Severity: SER
      Status: Closed
      Submitter: techsupp
      ChangedBy: ericm
      RelatedBugIDs: 5964
      OS: Linux
      OSVersion: linux kernel 2.2.14, TCL built with GCC (egcs-2.91.66)
      Machine: i386
      FixedDate: '2000-06-30'
      ClosedDate: '2000-10-25'
      
      
      Name:
      thomas park
      
      Extensions:
      none
      
      CustomShell:
      none
      
      Comments:
      also observed bug in TCL v. 8.0.4
      
      ReproducibleScript:
      This is a proc that creates a unique filename based on POSIX time, with a monotonic numerical extension if there was already a file created that second.  The error occurs when the script has already created a file:
      
      proc get_ref_id { } {
      
          # ns_time gives POSIX time
          set ref_no [ format %x [ ns_time ] ]
      
          set base_ref ""
          append base_ref [msg_path] $ref_no
          set ref_id $base_ref
      
          set suffix 0
      
          while [ set result [file exists $ref_id] ] {
              # DEBUG
              puts [ concat "ref_id is" $ref_id ]
              puts [ concat "exists gives" [file exists $ref_id] ]
              puts [ concat "result is" $result ]
      
              set ref_id ""
              append ref_id $base_ref "." $suffix
              set suffix [ incr suffix ]
          }
      
          return [ list $ref_id $ref_no ]
      }
      
      ObservedBehavior:
      infinite loop.  although the file DOESN'T exist, the while loops infinitely.
      
      ...
      ref_id is /usr/local/crm/395b4604.1811
      exists gives 0
      result is 1
      ref_id is /usr/local/crm/395b4604.1812
      exists gives 0
      result is 1
      ref_id is /usr/local/crm/395b4604.1813
      exists gives 0
      result is 1
      ref_id is /usr/local/crm/395b4604.1814
      exists gives 0
      result is 1
      ref_id is /usr/local/crm/395b4604.1815
      exists gives 0
      result is 1
      ref_id is /usr/local/crm/395b4604.1816
      exists gives 0
      result is 1
      ref_id is /usr/local/crm/395b4604.1817
      exists gives 0
      result is 1
      ...
      
      DesiredBehavior:
      when the while loop iterates, i would expect red_id (which was set in the while loop) to be evaluated with the new value in the while condition!
      
      
      
      
      
    4. foundin initialized to: "obsolete: 8.3.1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to:
      variable is not checked correctly in stopping condition of w
      
    11. type initialized to: "Bug"
  2. Ticket change [bbee67c6f2] (rid 129570) by welch on 2000-10-26 08:12:10:

    1. closedate changed to: "2000-10-26T01:12:10"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [78502972c2] (rid 89940) by dgp on 2001-04-14 03:19:24:

    1. closedate changed to: "2001-04-13T20:19:24"
    2. closer changed to: "dgp"
    3. resolution changed to: "Invalid"
    4. subsystem changed to: "None"