Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6687e5a169aedaf7ed2177a335c02a1084e77ab40730c298f9b1ae9d8537524c
Ticket: a8e4f76ce498ad648134e0b6867c359949055388
load library (dll) from zipfs-library causes a leak in temporary folder
User & Date: sebres on 2019-04-11 11:14:29
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    8.7 seems to "leak" loaded from zipfs libraries in temp-directory (at least on windows), e. g. each invocation of shell like below creates a new temp-directory with "tclreg13.dll" inside and which is still remained after exit.
    <code><pre style="padding-left:10pt">
    echo package require registry; puts [glob -directory $env(TEMP) TCL*] | tclsh
    </pre></code>
    
    Is it missing an exit-handler (to delete this)? Could the library not be loaded directly from memory? (I know several ways to do this on win/linux).
    
    BTW. It causes several warnings in tcltest-suite like <code>Warning: files left behind: ... cmdMZ.test: TCL00002f50</code><br/>
    So test like this produces a warning:
    <code><pre style="padding-left:10pt">
    tcltest -singleproc 1 -file cmdMZ.test
    </pre></code>
    And setting of a TCL_LIBRARY to local library-directory (like <code>`TCL_LIBRARY="$tcl/library"`</code>) would of course prevent this.
    
  5. foundin changed to: ">=8.7"
  6. is_private changed to: "0"
  7. login: "sebres"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Severe"
  11. status changed to: "Open"
  12. submitter changed to: "sebres"
  13. subsystem changed to: "38. Init - Library - Autoload"
  14. title changed to:
    load library (dll) from zipfs-library causes a leak in temporary folder
    
  15. type changed to: "Bug"