Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ede06393709dc8543c5f545c400a9ff0241d1592
Ticket: 7393be0be6e7f91cbb2016fa777896e3895929e3
Tcl Thread library doesn't work in Debug build on Windows_x64
User & Date: christian.nassau on 2016-04-18 12:45:34
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    There are two problems that prevent the Tcl Thread package from working in a Windows debug build:
    
    1) the pkgIndex.tcl always loads the release-version of thread27.dll
    there should be a check for tcl_platform(debug) and thread27g.dll should be loaded in the debug case
    
    2) the thread initialisation in TclWinThreadStart (file win/tclWinThrd.c) uses an illegal combination of flags in the line
        _controlfp(winThreadPtr->fpControl, fpmask);
    The flag "_MCW_PC" is not allowed on a 64-bit Windows system (see https://msdn.microsoft.com/en-us/library/e9b52ceh.aspx).
    Using "_MCW_PC" triggers an assertion on Windows 8.1 that aborts the process.
    
    On affected systems the assertion can be triggered using
       package require Thread
       thread::create -joinable { thread::wait }
    
  5. foundin changed to: "8.6.3"
  6. is_private changed to: "0"
  7. login: "christian.nassau"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "3b279cda57135cd36d2c32c66396637342913651"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "christian.nassau"
  14. subsystem changed to: "80. Thread Package"
  15. title changed to:
    Tcl Thread library doesn't work in Debug build on Windows_x64
    
  16. type changed to: "Bug"