.
D 2000-10-26T00:47:08
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s5804\sBug\nVersion:\s8.3.1\nSubmitDate:\s'2000-06-02'\nLastModified:\s'2000-09-01'\nSeverity:\sCRIT\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\sdavidg\nRelatedBugIDs:\s5312\nOS:\sWindows\sNT\nOSVersion:\sNT\s4.0\sSP5\sand\sWindows\s2000\sProfessional\nMachine:\sPentium\sIII\s600Mhz\swith\s128MB\nFixedDate:\s'2000-09-01'\nClosedDate:\s'2000-10-25'\n\n\nName:\nHugh\sVu\n\nExtensions:\nNo\sextension\n\nReproducibleScript:\nI\sam\susing\sembedded\sTCL\sin\smy\sapplication.\sI\shad\sno\sproblem\swith\s8.2.1\sbut\swhen\sI\simported\s8.3.1\sinto\smy\sapplication,\sthe\sfollowing\sproblem\soccurred:\sWhen\sI\sclosed\smy\sapplication,\sWindows\spopped\sup\san\serror\smessage\sthat\sreads\s"The\sinstruction\sat\s0x77f87808\sreferenced\smemory\sat\s0x00000010.\sThe\smemory\scould\snot\sbe\sread."\nUsing\sthe\sVisual\sC++\sdebugger,\sI\sfound\sthat\son\sclosing,\sthe\sTCL\sDLL\sdetached\sby\scallling\sTcl_Finalize()\s->\sTcl_FinalizeThread()\s->\sTclFinalizeNotifier()\s->\sTcl_FinalizeNotifier(0).\sSince\sthe\sparameter\s"clientData"\spassed\sto\sTcl_FinalizeNotifier\sis\s0,\sthe\sfunction\sDeleteCriticalSection\scrashed\swith\sAccess\sViolation\s(tsdPtr\s=\sNULL).\sI\shave\sno\sidea\swhy\s"clientData"\svalue\sis\s0.\nAre\syou\saware\sof\sany\sproblem\sor\sissue\sresembling\sthis\sproblem\sI\sdescribed\sabove?\nI\sdon't\sknow\sif\sthis\sis\scaused\sby\smy\sapplication\sor\sa\sbug\sin\s8.3.1.\sAny\scomment\sfrom\syou\swill\sbe\sgreatly\sappreciated.\n\n\n\n***\swin/tclWinNotify.c1999/07/02\s22:08:281.5\n\n---\swin/tclWinNotify.c2000/06/05\s00:50:37\n\n***************\n\n***\s150,155\s****\n\n---\s150,163\s----\n\n\s\s{\n\n\s\s\s\s\s\sThreadSpecificData\s*tsdPtr\s=\s(ThreadSpecificData\s*)\sclientData;\n\n\s\s\n\n+\s\s\s\s\s/*\n\n+\s\s\s\s\s\s*\s\sShould\sthe\soperating\ssystem\scall\sDllMain\swith\n\n+\s\s\s\s\s\s*\s\sDLL_PROCESS_DETACH\sfrom\sany\salternate\sthread\spath,\ssuch\n\n+\s\s\s\s\s\s*\s\sas\sTask\sManager\sterminating\sthe\sprocess,\stsdPtr\swill\n\n+\s\s\s\s\s\s*\s\sbe\sNULL\sand\sinvalid.\n\n+\s\s\s\s\s\s*/\n\n+\s\s\s\s\sif\s(tsdPtr\s==\sNULL)\sreturn;\n\n+\s\n\n\s\s\s\s\s\sDeleteCriticalSection(&tsdPtr->crit);\n\n\s\s\s\s\s\sCloseHandle(tsdPtr->event);\n\n\n\nTry\sthis.\s\sI\snoticed\sthe\ssame\sthing\swith\sa\sthreaded\sbuild.\s\n\n--\s07/25/2000\sdavidg\n\n\n\n\n\nrecent\scomments\sby\semail:\n\n\n\nTo:\[email protected],\[email protected]\n\nSubject:\sRE:\s\sTR#5804\n\nFrom:\sGene\sLeache\s<[email protected]>\n\nDate:\sThu,\s03\sAug\s2000\s12:10:20\s-0400\n\n\n\nRE\sbug\sreport\sTR#5804:\n\n\n\nPossibly\syou\sfolks\shave\sdone\sfurther\sanalysis\son\sthis\sbug,\spossibly\n\nnot.\s\sI've\sbeen\swrestling\swith\sit\ssince\syesterday,\sand\srealized\sthis\n\nmorning\sthat\sas\sNT\sThread-Local-Storage\s(TLS)\sis\sused\sby\stcllib,\sanytime\n\nthat\sa\sthread\sother\sthan\sthe\sinitiator\scauses\stcllib\sto\sbe\n\ndeinitialized,\sthe\sexpected\sdata\sin\sTLS\swill\snot\sbe\sfound,\scausing\n\ntcllib\sto\sinitialize\sthe\sTLS\sdata\sto\szero.\s\sThe\sresult\s(as\sdescribed\sin\n\nthe\sbug\sreport)\sis\sthat\sthe\sclientData\sparameter\spassed\sto\n\nTcl_FinalizeNotifier\sis\szero,\scausing\sthe\saccess\sviolation.\s\sSince\sthe\n\nexpected\sdatum\sis\sjust\sa\spointer\sto\san\sin-memory\sstructure\s(whose\n\ncontents\sappear\sto\sbe\scorrect),\s\sI\swas\sable\sto\suse\sWindbg\sto\ssupply\sthe\n\nexpected\sdatum\sto\sTcl_FinalizeNotifier,\sand\sallow\sprogram\sexecution\sto\n\nproceed\s--\s\stcllib\swas\sdeinitizialized\scorrectly\safter\sdoing\sthis\n\nexperiment.\n\n\n\nHope\sthis\shelps,\n\n\n\nGene\n\n\n\nGene,\sthanks\sfor\sthe\scomment.\n\n\s\n\n--\s08/03/2000\sdavidg
J foundin obsolete:\s8.3.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 49.\sThreading
J title Exception\scaused\sby\sNULL\spointer
J type Bug
K 217982ffffffffffffffffffffffffffffffffff
U nobody
Z 46011384ea5f3aa38177b774997b64d6