Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 049ca48f9b8d59780cf2f34fdba1e222cb6e6f75
Ticket: 0f14b45adc1932e4f9fbe0ad03777c13a09809b2
A bug in Tcl 64bit libraries
User & Date: apnadkarni on 2014-10-08 16:58:03
Changes

  1. icomment:
    I believe that you are compiling your modules with different preprocessor flags (nothing to do with Tcl).
    
    Stepping through the disassembled code (will not be visible at  C level) of TclTextInterp::TclTextInterp, the offset to argv_m member in the object is 0x68. This value is NULL and hence the crash.
    
    The initialization of argv_m happens in VMDApp::VMDApp where it is initialized at offset 0x60 (NOT 0x68). Looking at the definition of the VMDApp class, there are a couple of #defines wrapping members. My guess is one of these is not defined when you are compiling VMDApp but defined for TclTextInterp. Hence the inconsistency.
    
    Do not look at the debugger symbol values. Those assume compilation with consistent flags and hence will not show true state. Look at the actual memory dump.
    
    BTW, if you look at the contents of argcbuf[] a few lines before the crash, you will see a bogus value has been sprintf'ed into the buffer for the same reason.
    
    /Ashok
    
  2. login: "apnadkarni"
  3. mimetype: "text/plain"