Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 64addd7042e6e87fcc7c003212279bba37f04179
Ticket: 3024359fffffffffffffffffffffffffffffffff
Crash in Tcl_FSGetFileSystemForPath
User & Date: dkf on 2013-09-24 12:06:32
Changes

  1. closedate changed to: "2456560.00453934"
  2. closer changed to: "dkf"
  3. comment changed to:
    We have a multi-threaded tclkit application that runs several scripts on different threads and it crashes in Tcl_FSGetFileSystemForPath on the line "fsRecPtr = fsRecPtr->nextPtr".
    
    From investigation, it appears that 'theFilesystemEpoch' is being updated within the loop and the threads file system list is being re-cached leaving fsRecPtr pointing at freed memory.  It is very difficult to track, but it appears that Tcl_FSMountsChanged is being called from within Tcl_FSGetFileSystemForPath.  The path being accessed is the 'wrapped' init.tcl.
    
  4. login: "dkf"
  5. mimetype: "text/plain"
  6. severity changed to: "Critical"
  7. status changed to: "Closed"