.
D 2000-10-26T01:00:51
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s637\sBug\nVersion:\s8.1a2\nSubmitDate:\s'1998-05-25'\nLastModified:\s'1999-09-20'\nSeverity:\sMED\nStatus:\sReleased\nSubmitter:\shershey\nChangedBy:\shobbs\nOS:\sSunOS\nOSVersion:\s5.5.1\nMachine:\sOther\nFixedDate:\s'1999-09-20'\nFixedInVersion:\s8.2\nClosedDate:\s'2000-10-25'\n\n\nNow\s*MY*\sproblem.\sWhen\sone\sof\smy\sspecial\sprocs\screates\san\sHTML\spage\sthat\nis\s"large",\sonly\s\nthe\sbeginning\sof\sthe\spage\sgets\sto\sthe\sbrowser;\sit\sthen\shangs.\s\sThe\ssize\nseems\sto\svary\sbut\s\nis\saround\s30K.\s\sMore\sthan\sthis\sand\sit\shangs;\s\sless\sand\sall\sis\swell.\s\nI've\stried\sthis\swith\s\nTcl\s8.0,\s8.0p2\sand\s8.1a2;\swith\stclhttpd\s2.1.0,\s2.1.1\sand\s2.1.2.\s\sAll\nbehave\sthe\ssame\sfor\nme.\s\sBrowsers\sseem\snot\sto\saffect\sit;\sI've\stried\sNetscape\s3\sand\s4\son\nSolaris,\sand\sNetscape\s\n4\sand\sIE\s3\son\sNT.\s\sAll\sthe\ssame.\n\nBut\swait,\sthere's\smore!\s\sI\screated\sa\sspecial\sversion\sof\sthis,\swith\sa\nreally\sstupid\slittle\s\nC\sprogram.\s\sEssentially\sit's\sjust\sthe\sone\sI\sshowed\sas\san\sexample\sabove.\s\nI\sthen\sput\sifdefs\s\naround\sthe\spthread\sstuff\sso\sthat\sI\scould\sturn\sit\soff.\s\sIf\sit's\soff,\sthe\nprogram\sacts\sas\s\na\ssimple\ssingle\sthreaded\sC\sprogram\swith\san\sembedded\sTcl\sinterpreter.\s\nThat\sruns\sFINE!\s\nBig\sfiles,\shuge\sfiles,\sentire\sLinux\sdistributions,\sraw\scdroms,\sit\sserves\nit\sall\sup\sfine.\nIf\sI\scompile\sthe\ssame\sprogram\nwith\spthreads,\sit\sfails\sas\sdescribed\sabove.\n\nInteresting.\s\sIncidentally,\sat\sthis\spoint\sI\sgave\sthe\stclhttpd\sthread\san\nenormous\sstack;\sno\schange.\n\nI\slooked\sat\sthe\spacket\sexchanges\swith\stcpdump.\s\sAll\slooks\snormal\sexcept\nafter\s30K\sdata\sjust\sstops\nflowing.\s\sI\swent\sinto\sthe\sguts\sof\sTcl\sand\shad\sit\sprint\sout\swhat\sit\swas\ndoing\sright\swhere\sit\swrites\s\ninto\sthe\ssocket,\sin\sthe\sbowels\sof\sthe\ssocket\soutput\smethod\n(TcpOutputProc,\sI\sthink\sis\sthe\sC\sfunction,\s\nin\sTclIO.c).\s\sOddly,\sALL\sTHE\sDATA\sSEEM\sTO\sBE\sBEING\sWRITTEN\sTO\sTHE\nSOCKET!!\s\sThe\sloop\nto\swrite\sthis\slarge\schunk\sof\sdata\sworks\sfine\son\sthe\suser-space\sside\sof\nthe\ssocket.\n\nSo\smy\squestion\sis:\sdoes\sanyone\shave\san\sidea\swhy\srunning\sthe\sexact\ssame\ncode\sworks\swhen\sit's\s\nsingle\sthreaded\sand\sdoesn't\swhen\sit's\sin\sa\spthread?\s\sI'm\snot\seven\strying\nfor\sconcurrency\s\nany\smore\sin\smy\stests;\sI'll\ssettle\sfor\sjust\sgetting\sall\sthe\sdata\sto\sthe\ndestination.\n\n\s\s--berry\n\n==\[email protected]\n\nWe\sneed\sa\stest\sfile\sto\sproceed\swith\sthis\sbug.\s\sWhat\sOS\sis\sthis\soccurring\son?\s\sAny\sextensions?\s\sWhich\sversion\sof\sTcl?\s\s03/23/1999\s17:52\s-\ssurles\s-\n--\nProper\sthread-safety\swas\sadded\sto\s8.1,\sand\sthreading\swas\simproved\nin\s8.2.\s\sWithout\sa\smore\sspecific\sexample,\swe\scan\sonly\sassume\sthat\nwould\sfix\sit.\s\sIt\sis\spossible\sthat\sit\sis\scaused\sby\sstack\soverflow\nin\spthreads,\sor\sthat\sit\sisn't\shanging,\sbut\sstopping\sin\sone\sof\sthe\nworst\scase\sregexp\sscenarios\sthat\stake\sforever.\s\n--\s09/20/1999\shobbs\n\n
J foundin obsolete:\s8.1a2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 49.\sThreading
J title threading\sproblem\swith\shttp
J type Bug
K 218471ffffffffffffffffffffffffffffffffff
U nobody
Z a2466e50dd98202f853678cb7cec6da5