Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 461f54326d26a0d124b7488b9e14f98a4c8d95dc
Ticket: 2931244fffffffffffffffffffffffffffffffff
TCL 8.5.8 crashes on exit
User & Date: azaroo on 2010-01-13 18:31:57
Changes

  1. icomment:
    I am not good at it, but let me try!
    1. You need to compile the cpp file into a dll and modify the pkgIndex.tcl file accordingly to load the package.
    2. The tclsh was compiled without threads.
    
    The Crash Happens in the destructor
      ~TclFileHandles() {
         Tcl_UnregisterChannel(0, chann);
         Tcl_FSDeleteFile(channFileName);
         Tcl_DecrRefCount(channFileName);
        if (fp) { // hack as mentioned above
          fclose(fp); unlink(fpFileName.c_str());
        }
      }
     on Tcl_DecrRefCount(channFileName);
    
    In a debugger, I could track it down to TclFreeObj function call where this problem was manifesting itself.
    
    If you want some other info do let me know!
    
    Regards,
    
    
    
  2. login: "azaroo"
  3. mimetype: "text/plain"
  4. username: "azaroo"