Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 23f645487c7db19f50e6d3e19549cf332e27e02a
Ticket: 2538f373ffc78d6dba9c3d973c147a84fdd9bbd8
crash in Tcl_OpenTcpServer() on Windows
User & Date: griffin on 2016-04-06 23:36:35
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Windows only:
    If Tcl_OpenTcpServer() is the very first Socket call, then the thread data is not set correctly resulting in a crash.  Found in an embedded application.  Not reproducible via tclsh.
    
    tclWinSock.c:
      2064      ThreadSpecificData *tsdPtr = TclThreadDataKeyGet(&dataKey);
      2065  
      2066      if (TclpHasSockets(interp) != TCL_OK) {
      2067  	return NULL;
      2068      }
    
    The order above, KeyGet followed by HasSocket, is backwards.
    
    that's a week of my life I'll never get back :)
    
  5. foundin changed to: "8.6.5"
  6. is_private changed to: "0"
  7. login: "griffin"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "b80f46c1123ce4c80dc91b0c46319f6a27235f6a"
  10. resolution changed to: "None"
  11. severity changed to: "Severe"
  12. status changed to: "Open"
  13. submitter changed to: "griffin"
  14. subsystem changed to: "37. File System"
  15. title changed to: "crash in Tcl_OpenTcpServer() on Windows"
  16. type changed to: "Bug"