.
D 2000-10-26T00:46:32
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s4005\sBug\nVersion:\s8.2\nSubmitDate:\s'2000-01-11'\nLastModified:\s'2000-05-28'\nSeverity:\sSER\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\shobbs\nRelatedBugIDs:\s4199\nOS:\sSolaris\nOSVersion:\sSolaris\s5.5.1\nMachine:\s,UltraSPARC-II\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-05-28'\n\n\nName:\nSandeep\n\nCVS:\nRCS:\s@(#)\s$Id:\stclUnixNotfy.c,v\s1.5\s1999/07/02\s06:05:34\swelch\sExp\s$\n\nReproducibleScript:\nRace\scondition\sin\sa\sthreaded\stcl\sprogram\swhich\nis\sprocessing\sthe\s"exit"\scommand.\n\nObservedBehavior:\nThe\smain\sthread\sis\sprocessing\sa\stcl\s"exit"\scommand\sand\shas\scleaned\s\nup\sthe\smutexes\sit\shas\sremembered.\s\sSee\sTclFinalizeSynchronization\s\nin\stclThread.c.\n\nAt\sthe\ssame\stime,\sthe\sthread\swhich\sis\sexecuting\sNotifierThreadProc\s\nhas\snot\syet\scompleted\sits\sexecution.\s\sBut\ssince\sthe\smutexes\swere\nalready\szeroed\sout,\sthis\sthread\sdies\swith\sa\sSEGV\swhile\strying\nto\sdo\s->\sTcl_MutexUnlock(¬ifierMutex)\s..\slast\sline\sin\sthe\sfunction.\n\nStack\strace\sfor\smain\sthread\s\n\s[1]\sIostream_init::~Iostream_init(0xac5d4,\s0x2,\s0xeeeedf9c,\s0xeeee7518,\n0xef7ed820,\s0x0),\sat\s0xeeebee54\n\s\s[2]\s__STATIC_DESTRUCTOR(),\sat\s0x213b4\n\s\s[3]\s_fini(0x0,\s0xaef38,\s0xa997c,\s0x0,\s0xd6a00,\s0xd6a00),\sat\s0x97cc8\n\s\s[4]\s_exithandle(0x0,\s0x4,\s0xefffe354,\s0xa997c,\s0xeed952c8,\s0x1),\sat\s0xeed179b4\n\s\s[5]\sexit(0x0,\s0xc84f0,\s0x2,\s0xefffe5a0,\s0xa997c,\s0xc7fc8),\sat\s0xeed74b48\n=>[6]\sEvalObjv(0xc84f0,\s0x0,\s0x0,\s0xde1f2,\s0x7,\s0x0),\sat\s0x6a44c\n\s\s[7]\sTcl_EvalEx(0xefffe5a8,\s0xde1f2,\s0x0,\s0xefffe5a0,\s0x1,\s0xdd7e8),\sat\s0x6ab4c\n\s\s[8]\sTcl_EvalFile(0xc84f0,\s0xefffece8,\s0xa997c,\s0x0,\s0xc7438,\s0x1),\sat\s0x600ac\n\s\s[9]\sTcl_Main(0xb9d7c,\s0x0,\s0x21260,\s0x0,\s0xa997c,\s0x0),\sat\s0x63690\n\s\s[10]\smain(argc\s=\s2,\sargv\s=\s0xeffff354),\sline\s127\sin\s"tclAppInit.c"\n\nStack\strace\sfor\sNotifier\sThread\n\s[1]\s_mutex_unlock_asm(0x0,\s0x1,\s0xfffeffff,\s0xc3c07,\s0xc3c06,\s0x0),\sat\n0xeedd40f0\n=>[2]\s_mutex_unlock(0x0,\s0x10416710,\s0xa997c,\s0x0,\s0xeea09b90,\s0x1),\sat\n0xeedc8064\n\s\s[3]\sNotifierThreadProc(0xbe4c8,\s0xb29e4,\s0x4,\s0xa997c,\s0x3,\s0x8),\sat\s0x88644\n\nDesiredBehavior:\nI\sdont\sknow\sthe\sexact\sfix\sbut\sI\sguess\sthe\smain\sthread\s\nshould\swait\sfor\sthe\snotifier\sthread\sto\sexit\nand\sthen\sclean\sout\sthe\smutexes/condition\swait\svariables\nwhich\swere\sregistered.\n\n\n\n
J foundin obsolete:\s8.2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 49.\sThreading
J title NotifierThreadProc\sSEGVs\son\sprocess\sexit\sin\sthreaded\stcl
J type Bug
K 217952ffffffffffffffffffffffffffffffffff
U nobody
Z 7bec0a896af63dcf14c6c910b379680e