Skip to content
Tcl Source Code Artifact [6225ab7c76]
Login

Artifact [6225ab7c76]

Artifact 6225ab7c767ec3a50933227aa68b954ee949d3be:

Ticket change [6225ab7c76] - New ticket [218727ffffffffff|218727ffff] <i>Stack overflow in multi-threaded application</i>. by nobody on 2000-10-26 01:04:38.
D 2000-10-26T01:04:38
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1911\sBug\nVersion:\s8.1b3\nSubmitDate:\s'1999-04-20'\nLastModified:\s'2000-01-11'\nSeverity:\sSER\nStatus:\sReleased\nSubmitter:\spat\nChangedBy:\shobbs\nRelatedBugIDs:\s1966\nOS:\sSunOS\nOSVersion:\s2.5.1\nMachine:\sSparc\nFixedDate:\s'2000-01-11'\nFixedInVersion:\s8.3b2\nClosedDate:\s'2000-10-25'\n\n\nName:\smatt\sswift\n\nCVS:\sApril\s19,\s12:52\s+0100\n\nComments:\nThe\sregexp\sthat\sseemed\sto\scause\sthe\sproblems\swas:\n\s\s\s\s\n\s\s\s\sregexp\s{([^\s]*)[\s]*([^\s]*)([\s]*HTTP/[0-9]\\.[0-9])?}\s$value\s\sall\smethod\n\s\s\s\sfile\sprotocol\n\s\s\s\s\n\s\s\s\sWith\sa\svalue\sof\s"GET\s/\sHTTP/1.0".\n\nObservedBehavior:\nI'm\ssorry\sif\sthis\sreport\sis\sa\slittle\svague,\sI'd\sbe\shappy\sto\ssupply\syou\n\s\s\s\swith\sfurther\sinformation\sif\srequired.\n\s\s\s\s\n\s\s\s\sBasically,\swe\shave\sa\swww-to-LDAP\sgateway\sserver\sapplication\sthat\saccepts\n\s\s\s\smultiple\shttp\sconnections.\sEach\sconnection\sis\srepresented\sby\sa\ssingle\n\s\s\s\sthread\s(our\sown\sPthreads\spackage)\scontaining\sa\sTcl\sinterpreter\sfor\n\s\s\s\sprocessing\sthe\srequest\sand\sreturning\sthe\sresults\sin\sa\ssuitable\shtml\n\s\s\s\spage.\n\s\s\s\s\n\s\s\s\sThe\sserver\sused\sto\swork\sunder\sTcl8.0.\sHowever,\sit\snow\score\sdumps\n\s\s\s\ssomewhere\sdeep\sin\sthe\sbowels\sof\sthe\sTcl\sbyte\scompiler/executer\sdue\sto\n\s\s\s\sthe\sbyte-compiled\scode\sbeing\sscribbled\son\sby\ssomething.\sI\stested\sthe\n\s\s\s\sserver\sapplication\susing\sa\smemory\suse\sdiagnostic\sutility\scalled\sPurify\n\s\s\s\swhich\sshowed\sthat\sthe\sregexp\spackage\s(this\shas\srecently\sbeen\sreplaced\n\s\s\s\shasn't\sit?)\swas\sexceeding\sthe\sthread's\sallocated\sstack\sspace\sof\s128KB.\n\s\s\s\sThis\sis\salot\sof\smemory\sfor\sa\ssingle\sthread!\sEverything\sworks\sfine\sif\sI\n\s\s\s\sincrease\sthe\sper-thread\sstack\sspace\sto\s256KB.\n\s\s\s\s\n\s\s\s\sI\snoticed\sthat\sthe\scallstack\scan\sbecome\squite\slarge\sduring\n\s\s\s\sbyte-compiling\sand\swas\swondering\swhether\sthe\snew\sregexp\spackage\swas\n\s\s\s\seither\svery\srecursive\sor\sincluded\sa\slarge\snumber\sof\sbig\slocal\svariables.\n\s\s\s\s\n\s\s\s\sTo\ssummarise,\sI'm\snot\ssure\swhether\sthis\sis\sa\sbug\sor\snot.\sHowever,\sit\n\s\s\s\scaught\sme\sby\ssurprise\sand\stook\sa\slong\stime\sto\sdebug,\sso\sit\smight\sbe\n\s\s\s\sworth\smentioning\sin\sthe\srelease\snotes.\n\nDesiredBehavior:\nRegexp\snot\srequiring\ssuch\sa\slarge\sstack\sspace.\n\n\n\nThere\sis\sa\snew\sregexp\sengine\sfor\s8.3b1\sthat\suses\smuch\sless\sstack\nspace\s(currently\sin\sCVS).\s\sThis\smight\sfix\sthis\sproblem,\sbut\swe\nmight\swant\sto\sincrease\sdefault\sstack\sallocation\sfor\sthreads\son\ncertain\ssystems.\s\n--\s10/21/1999\shobbs\nA\sslight\smodification\swas\smade\sfor\ssetting\sthe\sstack\ssize\sin\s8.3b2,\nso\sthat\sthe\suser\scan\sset\sthe\svalue\sfrom\sthe\smakefile.\s\sHowever,\sthe\nuser\smust\sset\sTCL_THREAD_STACK_MIN\sto\ssomething\sto\sget\sthe\sstack\ssetting\nbehavior\s(it\sleaves\sit\sto\sthe\sdefaults\sotherwise).\n\nSee\stclUnixThrd.c\sin\s8.3b2\sfor\smore.\s\sThis\smay\sbe\sbetter\sparametrized\nin\sthe\sfuture\s(runtime\soption?).\s\s\n--\s01/11/2000\shobbs
J foundin obsolete:\s8.1b3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 49.\sThreading
J title Stack\soverflow\sin\smulti-threaded\sapplication
J type Bug
K 218727ffffffffffffffffffffffffffffffffff
U nobody
Z 90a7b36f21f087e9b707951dd93c694a