Skip to content
Tcl Source Code Artifact [6de7b3a5f1]
Login

Artifact [6de7b3a5f1]

Artifact 6de7b3a5f1ae91b84fcf78ec7a4385d874f0d8b3:

Ticket change [6de7b3a5f1] - New ticket [1379287fffffffff|1379287fff] <i>cd .. pwd segfault in NetBSD and Linux (in some cases)</i>. by georgeps on 2005-12-13 07:04:12.
D 2005-12-13T07:04:12
J assignee vincentdarley
J cmimetype text/plain
J comment I\sfound\sthis\sodd\sbehavior\sfirst\sin\san\sold\stclkit.\s\sIn\nthat\scase\sit\swas\san\s8.5a4-based\sversion\s(sometime\nbefore\sthe\sBigNum\scode\swas\sintegrated)\sand\sit\scaused\sa\nsegfault.\n\nI\sjust\stried\stoday\swith\sthe\sHEAD\sand\sit's\sbroken,\sbut\ndoesn't\ssegfault\sfor\sme.\s\sSteve\sRedler\sIV\sconfirmed\nthat\sit's\sbroken\sin\sSlackware\sLinux.\s\sSteve\swas\sable\sto\nget\sa\ssegfault\swith\sa\stclkit\sbuilt\swith\sthe\sTcl\sHEAD\sas\nof\sabout\s2\sweeks\sago\s--\susing\sthe\spatterns\sI\slist\sbelow.\n\nI\shaven't\syet\stried\stodays\sHEAD\swith\sa\stclkit,\sbut\sit\ncould\sbe\sthat\stclkit\sintroduces\sa\ssegfault\srather\sthan\njust\sthe\sstrange\sbehavior.\n\nIn\sthe\stclkit\sthe\spattern\sis:\n#\scd\s/tmp\n#\stclkit8.5\s\n%\scd\s..\n%\spwd\n%\scd\s..\n%\spwd\nMemory\sfault\s(core\sdumped)\s\n\nNote:\sI\shad\sto\sbe\sroot\sto\sget\sthe\s/tclkit8.5.core\screated.\n\nThe\sbacktrace\son\sthe\score\sindicates\sa\sloop\sof\spatterns\nthat\sgoes\son\sfor\squite\sa\swhile\s(endless\srecursion?\sor\npossibly\sthe\sdebugger\sis\sconfused).\n#0\s\s0x080811bf\sin\sTclDefaultBgErrorHandlerObjCmd\s()\n[this\sis\swhere\sit\srepeats\sfor\sthousands\sof\stimes]\n#1\s\s0x08094ca7\sin\sTcl_FSLstat\s()\n#2\s\s0x080a593e\sin\sTcl_FSLstat\s()\n#3\s\s0x080a58dc\sin\sTcl_FSLstat\s()\n#4\s\s0x080a7bfb\sin\sTcl_FSLstat\s()\n#5\s\s0x080d220f\sin\sTclpUnloadFile\s()\n#6\s\s0x080952a9\sin\sTcl_FSLstat\s()\n#7\s\s0x08094248\sin\sTcl_FSLstat\s()\n#8\s\s0x080a7c0e\sin\sTcl_FSLstat\s()\n#9\s\s0x080d220f\sin\sTclpUnloadFile\s()\n#10\s0x080952a9\sin\sTcl_FSLstat\s()\n#11\s0x08094248\sin\sTcl_FSLstat\s()\n#12\s0x080a7c0e\sin\sTcl_FSLstat\s()\n#13\s0x080d220f\sin\sTclpUnloadFile\s()\n...\n\n\nThis\sdemonstrates\sthe\sbroken\sbehavior\swith\stoday's\sHEAD:\n$\smake\sshell\nLD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH};\sexport\nLD_LIBRARY_PATH;\s\sTCL_LIBRARY="\n/gps/src/cvs/HEAD/tcl/library";\sexport\sTCL_LIBRARY;\s\n./tclsh\s\n%\scd\s/gps\n%\scd\s..\n%\spwd\n%\scd\s..\n%\spwd\n..\n%\scd\s..\n%\spwd\n..\n%\scd\s..\n%\spwd\n..\n%\scd\s..\n%\spwd\n..\n%\scd\s/\n%\spwd\n/\n%\scd\s..\n%\spwd\n%\scd\s..\n%\spwd\n..
J foundin obsolete:\s8.5a4
J priority 5\sMedium
J resolution None
J status Open
J submitter georgeps
J subsystem 36.\sPathname\sManagement
J title cd\s..\spwd\ssegfault\sin\sNetBSD\sand\sLinux\s(in\ssome\scases)
J type Bug
K 1379287fffffffffffffffffffffffffffffffff
U georgeps
Z 3ea9cf95e1eeb26e0ae291a03edae667