Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: dd72da17d25273d91e457f631c12ad939b0d7f86
Ticket: c383ebb5e414458cd386e6016e59f693e3840e81
"glob -path a" core dumps instead of argument error
User & Date: dah on 2016-06-13 15:25:57
Changes

  1. icomment:
    I can confirm the crash.
    
    I can't reproduce it compiling with mingw gcc or gcc on linux.
    
    In func Tcl_GlobObjCmd in tclFileName.c it is hitting the 
    "} else if (dir == PATH_GENERAL) {" branch and objc = 0 for Linux+Windows.
    
    Tcl_DString str isn't being initialized with MSVC. I guess gcc is doing some optimization trick where it does do the initialization (gdb shows the struct initialized.)? I don't understand assembly well enough to be able to see it myself.
    
    So it is doing a Tcl_DStringFree on a DString that was never initialized causing the crash.
    
  2. login: "dah"
  3. mimetype: "text/plain"
  4. username: "dah"