Tcl Source Code

View Ticket
Login
Ticket UUID: a8e4f76ce498ad648134e0b6867c359949055388
Title: load library (dll) from zipfs-library causes a leak in temporary folder
Type: Bug Version: >=8.7
Submitter: sebres Created on: 2019-04-11 11:14:29
Subsystem: 38. Init - Library - Autoload Assigned To: nobody
Priority: 5 Medium Severity: Severe
Status: Open Last Modified: 2024-10-08 13:36:50
Resolution: None Closed By: nobody
    Closed on:
Description:

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.

echo package require registry; puts [glob -directory $env(TEMP) TCL*] | tclsh

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 Warning: files left behind: ... cmdMZ.test: TCL00002f50
So test like this produces a warning:

tcltest -singleproc 1 -file cmdMZ.test
And setting of a TCL_LIBRARY to local library-directory (like `TCL_LIBRARY="$tcl/library"`) would of course prevent this.

User Comments: jan.nijtmans added on 2024-10-08 13:36:50:

Dup of [6ce3c0de9d]