Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c7bb0eff2f64b6ca65850fb088dbc20fb0e025a99fc2255a30aad44c21ae893e
Ticket: a8e4f76ce498ad648134e0b6867c359949055388
load library (dll) from zipfs-library causes a leak in temporary folder
User & Date: dkf on 2024-12-02 13:50:31
Changes

  1. icomment:
    Theoretically we could keep a list of known temporary DLLs and attempt to delete them on exit. Practically, I don't think that will work because the files will probably still be memory mapped into the process at that point, and I'm not at all convinced that it would be safe to undo that.
    
    Also, AV systems may "modify" (break) the semantics of system calls in this area (mostly by adding quite a long delay from an operation being requested to it actually completing). Boo.
    
    An application could fix this (or at least work around it by post-exit and on-reboot scripts) especially if we give an option to put the temporaries in a nominated subdirectory, but the Tcl library really can't do the whole of it itself.
    
    Loading from memory would dodge much of this mess.
    
  2. login: "dkf"
  3. mimetype: "text/x-markdown"