<i>unix: tcl.h does not include sys/stat.h</i> status still Closed with 4 other changes
by
.
D 2013-01-17T07:30:34
J icomment As\sfar\sas\sI\scan\stell,\sthe\sproblem\sis\sthat\sthere's\sa\smismatch\sin\sbetween\sthe\suse\sof\s'struct\sstat'\ssomehow\sin\sthe\scode\sand\sthe\sfact\sthat\swe're\susing\sstat64()\sand\slstat64()\son\sOSX\sLeopard.\sThis\sis\sin\sturn\soverwriting\spart\sof\sthe\sstack\sit\sshouldn't\s(again:\shypothesis)\swhich\sis\scausing\sa\spointer\sto\sa\slegit\sTcl_Obj\s(in\sthe\sencoding\ssystem\sinitialization)\sto\sget\sturned\sinto\sa\sNULL;\sfor\sobvious\sreasons,\sapplying\sa\sTcl_GetString()\sto\sNULL\s(this\sis\sinside\sthe\spath\sconcatenation\scode\sas\sit\shappens)\scauses\sa\scrash.\n\nI\semphasize\sthat\sthis\sis\sjust\ssupposition\sbased\son\sexamining\sthe\sbacktrace\sat\sthe\spoint\swhere\sthe\scrash\shappens,\stogether\swith\sthe\sobservation\sthat\sI've\sonly\sjust\srecently\sstarted\sgetting\scompile\stime\swarnings\sabout\sthe\swrong\stype\sbeing\sused\swith\sstat64\sand\slstat64.\sThe\srest\sis\sa\sguess,\sbut\scould\sso\seasily\shappen!\s(If\sthis\sis\strue,\sit\swould\sexplain\swhy\sother\sdevelopers\saren't\sseeing\sthe\sproblem:\sthey're\snot\sgetting\sthe\stype\smismatch\sin\sthe\sfirst\splace.)\n
J login dkf
J mimetype text/plain
J username dkf
K 3598300fffffffffffffffffffffffffffffffff
U dkf
Z 9addf3ff0c282174395e9d2b6e3a435f