Skip to content
Tcl Source Code Artifact [0f7c73d325]
Login

Artifact [0f7c73d325]

Artifact 0f7c73d325988939158de714c43e8f95fdfdba9e:

Ticket change [0f7c73d325] - New ticket [3205320fffffffff|3205320fff] <i>stack space detection defeated by inlining</i>. by msofer on 2011-03-10 11:06:46.
D 2011-03-10T11:06:46
J assignee stwo
J cmimetype text/plain
J comment --------\sOriginal\sMessage\s--------\nSubject:\s[Pkg-tcltk-devel]\sBug#617628:\stcl8.5:\sTcl/Tk\sapplications\son\spowerpc\scrash\son\sstartup\swith\sout\sof\sstack\sspace\smessage\nDate:\sWed,\s9\sMar\s2011\s21:47:51\s-0500\nFrom:\sPaul\sMackerras\s<[email protected]>\nReply-To:\sPaul\sMackerras\s<[email protected]>,\s"[email protected]"\s<[email protected]>\nTo:\[email protected]\s<[email protected]>\n\nSubject:\stcl8.5:\sTcl/Tk\sapplications\son\spowerpc\scrash\son\sstartup\swith\sout\sof\sstack\sspace\smessage\nPackage:\stcl8.5\nVersion:\s8.5.9-2\nJustification:\srenders\spackage\sunusable\nSeverity:\sgrave\nTags:\supstream\n\n***\sPlease\stype\syour\sreport\sbelow\sthis\sline\s***\n\nThe\stcl\slibraries\snow\send\sup\sbeing\sbuilt\swith\s-DTCL_STACK_GROWS_UP=1\non\sthe\scc\scommand\sline,\swhich\scauses\sthe\scheck\sfor\sstack\soverflow\sto\nhave\sthe\swrong\spolarity.\s\sConsequently,\severy\sTcl\sand\sTcl/Tk\sapplication\nexits\simmediately\son\sstartup\swith\sa\smessage\sabout\sbeing\sout\sof\sstack\nspace.\n\nThe\sconfigure\stest\sthat\scauses\sthis\sflag\sto\sbe\sset\sworks\sby\srunning\na\ssmall\sprogram\sthat\slooks\slike\sthis:\n\n\s\s\s\s\s\s\s\sint\sStackGrowsUp(int\s*parent)\s{\n\s\s\s\s\s\s\s\s\s\s\s\sint\shere;\n\s\s\s\s\s\s\s\s\s\s\s\sreturn\s(&here\s<\sparent);\n\s\s\s\s\s\s\s\s}\n\s\s\s\s\s\s\s\sint\smain\s(int\sargc,\schar\s*argv[])\s{\n\s\s\s\s\s\s\s\s\s\s\s\sint\sfoo;\n\s\s\s\s\s\s\s\s\s\s\s\sreturn\sStackGrowsUp(&foo);\n\s\s\s\s\s\s\s\s}\n\nWhat\shappens\sis\sthat\sgcc\snow\sinlines\sthe\sStackGrowsUp\sfunction,\smeaning\nthat\sthe\sresult\sof\sthe\sprogram\sdepends\sonly\son\show\sgcc's\salgorithm\sfor\nassigning\sstack\sslots\sfor\slocal\svariables\shappens\sto\slay\sout\sthe\sstack.\nOn\spowerpc\swith\sgcc-4.5.2\s(Debian\sversion\s4:4.5.2-1),\sgcc\sallocates\n`here'\sabove\s`foo',\swhich\smakes\sit\slook\slike\sthe\sstack\sgrows\sup\swhen\nin\sfact\sit\sgrows\sdown.\n\nThis\scould\shappen\son\sany\sarchitecture\swhere\sgcc\sautomatically\sinlines\nfunctions.\s\sIt\sso\shappens\sthat\sit\sdoesn't\son\sx86\sat\sthe\smoment\sand\sdoes\non\spowerpc.\n\n--\sSystem\sInformation:\nDebian\sRelease:\swheezy/sid\n\s\sAPT\sprefers\sunstable\n\s\sAPT\spolicy:\s(990,\s'unstable')\nArchitecture:\spowerpc\s(ppc64)\n\nKernel:\sLinux\s2.6.36-rc4+\s(SMP\sw/4\sCPU\scores)\nLocale:\sLANG=en_AU.UTF-8,\sLC_CTYPE=en_AU.UTF-8\s(charmap=UTF-8)\nShell:\s/bin/sh\slinked\sto\s/bin/bash\n\nVersions\sof\spackages\stcl8.5\sdepends\son:\nii\s\slibc6\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s2.11.2-11\s\sEmbedded\sGNU\sC\sLibrary:\sShared\slib\n
J foundin obsolete:\s8.5.9
J is_private 0
J priority 8
J resolution None
J status Open
J submitter msofer
J subsystem 53.\sConfiguration\sand\sBuild\sTools
J title stack\sspace\sdetection\sdefeated\sby\sinlining
J type Bug
K 3205320fffffffffffffffffffffffffffffffff
U msofer
Z ff129057ae77cc3f002379515e300195