Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 01d27686159cf9fd451dea5daa4d7dc759a62b4e
Ticket: 593810ffffffffffffffffffffffffffffffffff
Channel Transfer crashes
User & Date: andreas_kupries on 2002-08-21 02:13:42
Changes

  1. icomment:
    Logged In: YES 
    user_id=75003
    
    New datapoint:
    Start thread-enabled tclsh (in MSVC++ debugger), set a 
    breakpoint in file tclWinSock, line 1776. This is where the 
    core retrieves the tsdPtr for the SendMessage stuff later.
    
    Source non-crashing script, step into the tsd retrieval. The 
    ultimate routine is TlsGetValue, presumably provided by 
    Windows. I can't step into it. Here things are ok.
    
    Now source the crashing script, do not change interpreters. 
    Step into the retrieval again. All arguments etc. are the same 
    as before, but now TlsGetValue returns NULL.. The reason is 
    unknown. It is suspected that somewhere some memory 
    went haywire. Couldn't prove this however. 'memory validate 
    on' does not trigger anything before we hit the crash (Yes, I 
    used tcl/threads compiled with TCL_MEM_DEBUG).
    
    I declare this a windows specific bug for now, because of 
    TlsGetValue, and the info by Don Porter that the attached 
    crashing script is running ok on his Linux/Alpha.
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"