Skip to content
Tcl Source Code History Of Ticket 620735ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 620735ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 620735ffffffffffffffffffffffffffffffffff

  1. Ticket change [7925580cb2] (rid 90076) by nobody on 2002-10-09 12:30:28:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      This bug took quite a while to track down.
      
      It seems that during the initialization of the Tcl 
      subsystems, a thread is created.  The threadProc 
      for this thread is the CalibrationThread routine.
      
      This thread enters an infinite loop at priority 11 
      and continues to run AFTER the Tcl DLL has been 
      unloaded.  This causes the process to crash.
      
      My suggestion on a fix is that at some point during 
      the finalization of Tcl, TerminateThread be called 
      on the saved thread handle for this thread.  No ill 
      effects should occur due to this thread being 
      terminated.  I believe it's in the 
      variable "timeInfo.calibrationThread" in 
      file "win/tclWinTime.c".
      
      JJM
      
      
    4. foundin initialized to: "obsolete: 8.4.0"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "None"
    10. title initialized to: "Tcl crash after unload on Windows 2000"
    11. type initialized to: "Bug"
  2. Ticket change [c8fc246f31] (rid 122205) by dkf on 2002-10-09 19:39:48:

    1. assignee changed to: "kennykb"
    2. subsystem changed to: "06. Time Measurement"
  3. Ticket change [2263eaf410] (rid 130741) by nobody on 2002-10-09 19:51:28:

    1. icomment:
      Logged In: NO 
      
      
      After some thought, I believe a much cleaner solution 
      would be to use SleepEx in the CalibrationThread 
      routine (with the bAlertable flag set to TRUE) and then to 
      send the thread a "deadly" APC via QueueUserAPC 
      (portable to Win 95+ and Win NT4+).  The APC routine 
      should simply call ExitThread.  The handle to pass to 
      QueueUserAPC can be had from the 
      variable "timeInfo.calibrationThread" 
      in "win/tclWinTime.c".
      
      JJM
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  4. Ticket change [022bb15b83] (rid 119602) by kennykb on 2002-10-10 06:59:32:

    1. closedate changed to: "2002-10-09T23:59:32"
    2. closer changed to: "kennykb"
    3. icomment:
      Logged In: YES 
      user_id=99768
      
      Better still is to set an event to 
      ask the thread politely to exit,
      and let it do so.  That's what 
      the committed fix does.
      
      
    4. login: "kennykb"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "kennykb"