Skip to content
Tcl Source Code History Of Ticket 217982
Login

History Of Ticket 217982

Artifacts Associated With Ticket 217982

  1. Ticket change [2a1dedb3fb] (rid 118495) by nobody on 2000-10-26 00:47:08:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 5804 Bug
      Version: 8.3.1
      SubmitDate: '2000-06-02'
      LastModified: '2000-09-01'
      Severity: CRIT
      Status: Closed
      Submitter: techsupp
      ChangedBy: davidg
      RelatedBugIDs: 5312
      OS: Windows NT
      OSVersion: NT 4.0 SP5 and Windows 2000 Professional
      Machine: Pentium III 600Mhz with 128MB
      FixedDate: '2000-09-01'
      ClosedDate: '2000-10-25'
      
      
      Name:
      Hugh Vu
      
      Extensions:
      No extension
      
      ReproducibleScript:
      I am using embedded TCL in my application. I had no problem with 8.2.1 but when I imported 8.3.1 into my application, the following problem occurred: When I closed my application, Windows popped up an error message that reads "The instruction at 0x77f87808 referenced memory at 0x00000010. The memory could not be read."
      Using the Visual C++ debugger, I found that on closing, the TCL DLL detached by callling Tcl_Finalize() -> Tcl_FinalizeThread() -> TclFinalizeNotifier() -> Tcl_FinalizeNotifier(0). Since the parameter "clientData" passed to Tcl_FinalizeNotifier is 0, the function DeleteCriticalSection crashed with Access Violation (tsdPtr = NULL). I have no idea why "clientData" value is 0.
      Are you aware of any problem or issue resembling this problem I described above?
      I don't know if this is caused by my application or a bug in 8.3.1. Any comment from you will be greatly appreciated.
      
      
      
      *** win/tclWinNotify.c1999/07/02 22:08:281.5
      
      --- win/tclWinNotify.c2000/06/05 00:50:37
      
      ***************
      
      *** 150,155 ****
      
      --- 150,163 ----
      
        {
      
            ThreadSpecificData *tsdPtr = (ThreadSpecificData *) clientData;
      
        
      
      +     /*
      
      +      *  Should the operating system call DllMain with
      
      +      *  DLL_PROCESS_DETACH from any alternate thread path, such
      
      +      *  as Task Manager terminating the process, tsdPtr will
      
      +      *  be NULL and invalid.
      
      +      */
      
      +     if (tsdPtr == NULL) return;
      
      + 
      
            DeleteCriticalSection(&tsdPtr->crit);
      
            CloseHandle(tsdPtr->event);
      
      
      
      Try this.  I noticed the same thing with a threaded build. 
      
      -- 07/25/2000 davidg
      
      
      
      
      
      recent comments by email:
      
      
      
      To: [email protected], [email protected]
      
      Subject: RE:  TR#5804
      
      From: Gene Leache <[email protected]>
      
      Date: Thu, 03 Aug 2000 12:10:20 -0400
      
      
      
      RE bug report TR#5804:
      
      
      
      Possibly you folks have done further analysis on this bug, possibly
      
      not.  I've been wrestling with it since yesterday, and realized this
      
      morning that as NT Thread-Local-Storage (TLS) is used by tcllib, anytime
      
      that a thread other than the initiator causes tcllib to be
      
      deinitialized, the expected data in TLS will not be found, causing
      
      tcllib to initialize the TLS data to zero.  The result (as described in
      
      the bug report) is that the clientData parameter passed to
      
      Tcl_FinalizeNotifier is zero, causing the access violation.  Since the
      
      expected datum is just a pointer to an in-memory structure (whose
      
      contents appear to be correct),  I was able to use Windbg to supply the
      
      expected datum to Tcl_FinalizeNotifier, and allow program execution to
      
      proceed --  tcllib was deinitizialized correctly after doing this
      
      experiment.
      
      
      
      Hope this helps,
      
      
      
      Gene
      
      
      
      Gene, thanks for the comment.
      
       
      
      -- 08/03/2000 davidg
      
    4. foundin initialized to: "obsolete: 8.3.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: "49. Threading"
    10. title initialized to: "Exception caused by NULL pointer"
    11. type initialized to: "Bug"
  2. Ticket change [ebc32e235d] (rid 103586) by welch on 2000-10-26 08:12:10:

    1. closedate changed to: "2000-10-26T01:12:10"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [fe0aa6c404] (rid 108519) by davygrvy on 2001-05-10 09:56:13:

    1. closedate changed to: "2001-05-10T02:56:13"
    2. closer changed to: "davygrvy"
    3. icomment:
      Logged In: YES 
      user_id=7549
      
      This bug relates to 219355 as well.
      
      
    4. login: "davygrvy"
    5. mimetype: "text/plain"
    6. username: "davygrvy"
  4. Ticket change [ce09762374] (rid 95988) by davygrvy on 2001-05-10 10:02:07:

    1. icomment:
      
      
      File Added - 6156: patch.txt
      
      Logged In: YES 
      user_id=7549
      
      The patch has not been applied to the core (yet).
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "davygrvy"
  5. Add attachment "patch.txt" [e5af1b453a] (rid 104166) by davygrvy on 2001-05-10 10:02:07.

  6. Ticket change [d08a720a3a] (rid 113200) by davygrvy on 2001-05-10 10:04:47:

    1. priority changed to: "5 Medium"
  7. Ticket change [e27fba2c02] (rid 87642) by hobbs on 2001-08-07 07:40:44:

    1. assignee changed to: "davygrvy"
  8. Ticket change [ae7a1606e3] (rid 101644) by davygrvy on 2001-09-14 11:20:45:

    1. assignee changed to: "nobody"
    2. icomment:
      Logged In: YES 
      user_id=7549
      
      no time to do this.
      
      
    3. login: "davygrvy"
    4. mimetype: "text/plain"
    5. username: "davygrvy"
  9. Ticket change [e08afa8da3] (rid 115218) by dkf on 2001-09-20 02:53:18:

    1. assignee changed to: "dkf"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      Why is this still hanging around?  Should I apply the patch as it stands?
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. username: "dkf"
  10. Ticket change [af1c6ecfdf] (rid 97749) by dkf on 2001-12-14 17:33:04:

    1. closedate changed to: "2001-12-14T10:33:04"
    2. closer changed to: "dkf"
    3. status changed to: "Closed"
  11. Ticket change [3900d67126] (rid 112312) by davygrvy on 2001-12-14 17:41:36:

    1. closedate changed to: "2001-12-14T10:41:36"
    2. closer changed to: "davygrvy"
    3. icomment:
      Logged In: YES 
      user_id=7549
      
      If it's not applied, yes please apply it.
      
      
    4. login: "davygrvy"
    5. mimetype: "text/plain"
    6. username: "davygrvy"