Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 31ce0bc204f4ccc404ab4f6a27c4b7f48f758de4
Ticket: 218335ffffffffffffffffffffffffffffffffff
file delete doesn't work & issues error
User & Date: nobody on 2000-10-26 00:56:22
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 3953 Bug
    Version: 8.2.2
    SubmitDate: '1999-12-28'
    LastModified: '2000-03-30'
    Severity: MED
    Status: Closed
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Windows 95
    OSVersion: Don't know the rev. of w95 we're using
    Machine: Compaq deskpro, P2-400, 128 Mb RAM, 6.4Gb disk
    FixedDate: '2000-10-25'
    ClosedDate: '2000-03-30'
    
    
    Name: Howard Pierce
    
    Comments:
    I've dutifully searched the web and Tcl/Tk FAQs for this error, but it seems not to have occurred before.
    
    ReproducibleScript:
    file exists K:/techcom/maps/database/en/locks/944768159AB
    1
    
    file delete K:/techcom/maps/database/en/locks/944768159AB
    no such file or directory. (error returned by "catch")
    
    file exists K:/techcom/maps/database/en/locks/944768159AB
    1
    
    ObservedBehavior:
    The file is not removed and it should be.  Also, page 98 of "Practical Programming in Tcl and Tk" (second edition) states, "It is NOT an error if the files do not exist."
    
    No stack trace.
    
    Thinking this might be some timing/network issue, I put in a while loop that counted up to 50, sleeping one second each time and then trying again to delete the file.  No dice.  The file is on a server (NT probably) and made available to the PC client via a Novell network.
    
    DesiredBehavior:
    The file should be deleted.  The error message directly contradicts the (correct) results of the "file exists" command immediately preceding.
    
    Some nasty workarounds I can think of are sending email to the admin account on the server which could have an email filter (triggered by subject line) that would invoke a process on the server to delete the file.  Otherwise, the client script could zero out the file and then a daemon on the server could "watch" that directory for zero-length files and remove them.
    
    
    
    I'm having problems (read: can't) reproducing this on Windows.
    This seems to be some sort of magical lock file, that some
    server might be doing magic with.  Tcl, like other languages,
    can get fooled by odd (file) servers that do non-standard things
    with files.  Something as simple as Samba causes confusion about
    file permissions (not something that can be worked around), but
    I've not seen the above before.  It may help to know really what
    kind of server is on the other end, and what magic may be
    occuring on the "lock" files (some systems have flock'ing that
    isn't really file-based, but spoofs it). 
    -- 01/23/2000 hobbs
    The user notes that this is on a special server, where they've
    seen other weirdness.  At this point, without reproducability,
    this is getting closed. 
    -- 03/30/2000 hobbs
    
  4. foundin changed to: "obsolete: 8.2.2"
  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: "37. File System"
  10. title changed to: "file delete doesn't work & issues error"
  11. type changed to: "Bug"