.
D 2000-10-26T05:02:12
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s607\sBug\nVersion:\s8.1a2\nSubmitDate:\s'1998-05-21'\nLastModified:\s'2000-03-31'\nSeverity:\sSER\nStatus:\sAssigned\nSubmitter:\shershey\nChangedBy:\shobbs\nRelatedBugIDs:\s1653\nOS:\sAIX\nFixedDate:\s'2000-01-11'\nClosedDate:\s'2000-10-25'\n\n\nI've\shad\sa\squick\slook\sat\sthe\sthread\ssupport\sin\sTcl8.1a2,\s\n>and\sI'm\sposting\ssome\sobservations\sand\sproblems.\n>My\splatform\sis\sAIX\s4.1.5\son\sa\s4-processor\sRS/6000,\scompiling\n>with\sthe\scc_r\scompiler\sfrom\sIBM's\sC-Set++\spackage.\n>\n>I\shave\sbeen\susing\sRichard\sHipp\sand\sMike\sCruse's\sPtTcl\sso\sfar\n>and\sI\srecognise\sa\slot\sof\sits\scode\s(updated\sand\srestructured)\n>in\sTcl8.1a2.\s\sThis\sincludes\ssome\sof\sthe\sproblems\swhich\sI\n>have\spreviously\sfound\sand\sreported\sto\sthe\sPtTcl\sauthors,\n>together\swith\sfixes.\n>\n>I\sdon't\shave\stime\sfor\sa\svery\sdetailed\sreport\sright\snow,\n>but\shere's\sa\squick\ssummary.\n>\n>1)\sRunning\sconfigure\sfor\sAIX\sneeds\sCC=cc_r.\s\slibpthread\sdoesn't\sexist\s-\s\n>libpthreads\sdoes\sexist\sbut\sdoesn't\sneed\sto\sbe\sspecified\swhen\syou\suse\scc_r.\s\n>\s\s\s\n>2)\sthe\sURL\sin\sthe\sREADME\sfor\sporting\sinfo:\n>\s\s\shttp://www.sunlabs.com/cgi-bin/tcl/info.8.1\n>\s\s\sdoesn't\swork.\s\sThe\ssame\swith\sinfo.8.0\sdoes\sexist.\n>\n>3)\sRunning\s"make\stest"\sI\sget\sa\shang\sin\sio.test\sbut\sdidn't\shave\stime\sto\n>\s\s\strack\sdown\swhy\syet.\n>\n>4)\sThere\sseems\sto\sbe\sno\sattempt\sto\suse\sthread-safe\sversions\sof\sunsafe\n>\s\s\slibrary\sroutines,\seg.\sto\suse\slocaltime_r\sinstead\sof\slocaltime.\n>\s\s\sThis\sis\sodd\sbecause\sPtTcl\sdid\stry\sto\sdo\sthis,\sthough\sthere\sis\sa\slack\n>\s\s\sof\sstandardisation\sof\sthe\s*_r\svariants\sbetween\sdifferent\sunixes.\n>\n>5)\sThere\sis\sa\srace\sbug\sinherited\sfrom\sPtTcl\swhich\scan\scause\sdeadlock\n>\s\s\sin\s"testthread\ssend".\s\sDoing\sa\slot\sof\ssends\sin\ssuccession\swill\n>\s\s\strigger\sthis\sreliably\son\smy\splatform\s-\seg.\n>\n>$\s./tcltest\n>%\stestthread\screate\n>537107728\n>%\stestthread\ssend\s537107728\s{set\sa\sA}\n>A\n>%\stestthread\ssend\s537107728\s{set\sa}\n>A\n>%\stime\s{testthread\ssend\s537107728\s{set\sa}}\s10000\n>\n>-\shangs.\s\sI'll\ssend\smore\sdetails\snext\sweek\sbut\sthe\sbasic\sproblem\sis\sthat\n>if\sthe\ssending\sthread\ssignals\sthe\sreceiving\sthread\sbetween\sthe\scall\sto\n>Tcl_ServiceEvent\sin\sTcl_DoOneEvent\sand\sthe\slater\scall\sto\sTclpConditionWait\n>from\sTcl_WaitForEvent\sthe\smessage\sgets\slost.\n>\n>6)\sCode\sfrom\sPtTcl\sin\stclCkalloc.c\swhich\sI\shave\sfound\sin\sthe\spast\sto\scause\s\n>\s\s\sa\sfalse\serror\sreport\swhen\srunning\smultithreaded\swith\sTCL_MEM_DEBUG\sand\s\n>\s\s\susing\s"memory\svalidate\son"\sexists\sunchanged,\sbut\sI\shaven't\shad\stime\sto\n>\s\s\sretest\sit.\n>\n>\n>Thanks\sa\slot\sto\sthe\sSun\s(or\sScriptics)\steam\sfor\stheir\sefforts\sso\sfar.\n>\n>Colin.\n>--\n><<<<<<<<<<<^^^^^^^>>>>>>>>vvvvvvv<<<<<<<<<<<^^^^^^^>>>>>>>>vvvvvvv\n>Colin\sMacleod,\ssoftware\sengineer,\sIntrasoft\sSA,\sAthens,\sGreece\n>email\s(remove\sadded\sspaces\sto\suse)\s:\s\smacleod\s@\sintrasoft\s.\sgr\n\nitems\s3,\s5,\sand\s6\sare\sfixed\sin\s8.1a3\nthe\sremainder\sare\sstill\soutstanding\n--\nissues\s1\s&&\s2\swere\sresolved\sby\s8.2.3.\s\s4\sremains\sopen.\n--\s01/11/2000\shobbs\s\n--\s01/11/2000\shobbs
J foundin obsolete:\s8.1a2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 49.\sThreading
J title Tcl8.1a2\sthread\sconfig\sproblems\s(use\sreentrant\scalls)
J type Bug
K 219136ffffffffffffffffffffffffffffffffff
U nobody
Z 9c6e963c746c1f44c0545d58dd116d21