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

History Of Ticket 650353ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 650353ffffffffffffffffffffffffffffffffff

  1. Ticket change [4622d840a6] (rid 99472) by nobody on 2002-12-08 06:58:10:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      This is a bug that started appearing very recently.  
      During Tcl_Finalize, the socket exit handler is 
      trying to fetch data from a thread local storage 
      index (line 562).  The actual fetch succeeds.  
      However, the return value is NULL, the 
      SocketThreadExitHandler immediately tries to 
      dereference this pointer (line 564) without checking 
      for NULL.  Checking these pointers for NULL would 
      be nice...  However, I believe this is just a symptom 
      of a bigger problem which needs to be uncovered.  
      Based on the diagnostic messages I added to the 
      thread local storage functions, I believe that the 
      data for this particular thread local storage index is 
      NEVER set to a non-NULL value.
      
      SocketThreadExitHandler(void * 0x00000000) line 
      562 + 10 bytes
      SocketExitHandler(void * 0x00000000) line 528 + 9 
      bytes
      Tcl_Finalize() line 840 + 12 bytes
      
      I'm wondering if this code has been recently 
      changed.
      
      --
      
      JJM
      
      
    4. foundin initialized to: "obsolete: 8.4.1"
    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: "crash in SocketThreadExitHandler"
    11. type initialized to: "Bug"
  2. Ticket change [e94fa171d1] (rid 104800) by nobody on 2002-12-08 14:10:39:

    1. icomment:
      Logged In: NO 
      
      
      A search for "SocketThreadExitHandler(clientData);" in 
      the various CVS revisions reveals that this is/was 
      broken as of CVS revision 1.28 (Wed Nov 27 00:58:01 
      2002 UTC (11 days, 6 hours ago)).
      
      JJM
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  3. Ticket change [567ed93b37] (rid 94330) by hobbs on 2002-12-08 14:45:42:

    1. assignee changed to: "davygrvy"
    2. priority changed to: "6"
  4. Ticket change [e057869502] (rid 115173) by andreas_kupries on 2002-12-08 14:50:05:

    1. priority changed to: "8"
  5. Ticket change [b2aa9323da] (rid 98377) by nobody on 2002-12-08 15:27:43:

    1. icomment:
      Logged In: NO 
      
      
      I have a potential fix for this bug (file win/tclWinSock.c).
      
      static void
      SocketExitHandler(clientData)
          ClientData clientData;              /* Not used. */
      {
          ThreadSpecificData *tsdPtr = 
      (ThreadSpecificData *)TclThreadDataKeyGet
      (&dataKey); /* NEW: checked below */
      
          Tcl_MutexLock(&socketMutex);
          if (winSock.hModule) {
      /*
       * Make sure the socket event handling 
      window is cleaned-up
       * for, at most, this thread.
       */
       
        if (tsdPtr != NULL) /* ONLY call thread exit handler 
      when the thread has been previously initialized by 
      InitSockets */   
      SocketThreadExitHandler(clientData);
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  6. Ticket change [7b8b460744] (rid 96928) by davygrvy on 2002-12-08 22:39:30:

    1. closedate changed to: "2002-12-08T15:39:30"
    2. closer changed to: "davygrvy"
    3. icomment:
      Logged In: YES 
      user_id=7549
      
      Fixed, thanks for the report.
      
      
    4. login: "davygrvy"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. subsystem changed to: "27. Channel Types"
    9. username: "davygrvy"
  7. Ticket change [0e62ecaaa6] (rid 94610) by nobody on 2004-06-16 18:32:38:

    1. icomment:
      Logged In: NO 
      
      In SocketThreadExitHandler
      -----
      WaitForSingleObject(tsdPtr->socketThread, INFINITE);
      it will cause SocketThreadExitHandler hang..forever.
      if change timeout into some number,
      could clean the garbage by OS?
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"