Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bae5fe7204e73adf3e3ac63eead0cff9583c158ee3fe6c43d4ee8fc4fa7c66a4
Ticket: a8e4f76ce498ad648134e0b6867c359949055388
load library (dll) from zipfs-library causes a leak in temporary folder
User & Date: apnadkarni on 2024-11-26 17:30:50
Changes

  1. icomment:
    It is difficult for me to accept the premise that because MemoryModule works for one particular use case, it will work in all cases across all versions of Windows. Sure I could build a DLL using SEH and demonstrate it loads from memory. That does not give me confidence it can handle all exception records. Likewise, a declspec(thread) may work for a native type in a single DLL loaded in a single thread but will it work for multiple declspec(thread) for non-native types that have constructors across multiple DLL's under a heavy thread load?
    
    I'm afraid I am very skeptical of emulating the Windows loader. A few experiments of specific cases will not convince me MemoryModule gets everything right and I'm not in favour of code that works "most of the time". Perhaps it's my ignorance of the area that makes me hesitant.
    
    In any case, I've added a branch apn-bug-a8e4f76ce4 that simply spawns cmd to delete the directory on process exit. Less elegant but far less risky imo.
    
    As an aside, my TEMP directory has 5000+ directories at the top level *after* deleting all TCL directories. Clearly Tcl does not need to be singled out in this respect.
    
  2. login: "apnadkarni"
  3. mimetype: "text/x-markdown"