.
D 2005-03-10T20:50:37
J assignee vincentdarley
J cmimetype text/plain
J comment The\stclUnixFile.c\sfile\shas\sa\sfunction\nTclNativeCreateNativeRep().\n\nline\s977\s->\s979\shas\sa\sproblem.\n\n\s\s\s\s\s\s\s\s/*\sMake\ssure\sthe\snormalized\spath\sis\sset\s*/\n\s\s\s\s\s\s\s\svalidPathPtr\s=\sTcl_FSGetNormalizedPath(NULL,\npathPtr);\n\s\s\s\s\s\s\s\sTcl_IncrRefCount(validPathPtr);\n\nIt\sis\spossible\sto\sconstruct\sa\ssituation\swhere\nvalidPathPtr\sis\sreturned\sas\sNULL,\sand\nTcl_IncrRefCount(NULL);\scauses\sa\score\sdump.\n\n\nThe\ssituation\sleading\sto\sthis\sis\scomplicated.\n\nFirst\sa\sdirectory\sis\screated.\n/var/cores/programname\nThis\sdirectory\sis\smode\s0700\sand\sowned\sby\sroot.\n\nA\s'C'\sprogram\sstarts\sas\sroot,\s\nchanges\sdirectory\sto\s/var/cores/programname.\ndrops\s'root'\spermission\sto\sa\suser\spermision.\nOpens\sa\stcl\sinterpreter.\nTcl_EvalFiles\ssome\stcl\sfile\sthat\sincludes\sa\s[clock\nformat]\scommand\n\nCore\sdump\soccurs.\n\nThis\scode\shas\sworked\sin\sall\sversions\sof\sTcl\s8.3,\s8.4\nand\s8.5\suntil\srecently.\n\nI\shave\sa\srelatively\ssmall\stest\sfile\savailable,\sbut\sI\sdo\nnot\swish\sto\spost\sit\sto\sthe\sweb.\s\sI\swill\semail\sit\sto\nthose\sinterested.
J foundin obsolete:\s8.5a3
J priority 5\sMedium
J resolution None
J status Open
J submitter tmh
J subsystem 37.\sFile\sSystem
J title core\sdump\soccurs\swhen\s'getcwd()'\sreturns\snull.
J type Bug
K 1160906fffffffffffffffffffffffffffffffff
U tmh
Z 3dc32f1d08ac01b2ca5e680f32932785