Skip to content
Tcl Source Code Artifact [57a8a16d4e]
Login

Artifact [57a8a16d4e]

Artifact 57a8a16d4e88fde656aacb5e78389c1fb2f61971:

Ticket change [57a8a16d4e] - New ticket [523217ffffffffff|523217ffff] <i>refcount crash in file readlink</i>. by hobbs on 2002-02-27 01:02:04.
D 2002-02-27T01:02:04
J assignee vincentdarley
J cmimetype text/plain
J comment The\sfile\sreadlink\scommand\sin\sthe\snew\sVFS\ssystem\sisn't\s\nhandling\srefcounts\sright,\sleading\sto\srepeatable\scrash\s\nsituations.\s\sThe\sfollowing\scode\swill\scrash\son\sRH6.1\sor\s\nSuSE7.3:\n\nforeach\sfile\s[lsort\s[glob\s/usr/bin/c*]]\s{\ncatch\s{\sfile\sreadlink\s$file\s}\n}\n\nThere\srelevant\sstack\strace\sinfo\sis:\n\n#0\s\s0x400bd990\sin\sfree\s()\sfrom\s/lib/libc.so.6\n#1\s\s0x080f375f\sin\sTclpFree\s(cp=0x810909c\s"")\n\s\s\s\sat\s../generic/tclAlloc.c:1639\n#2\s\s0x08072bff\sin\sTcl_Free\s(ptr=0x810909c\s"")\n\s\s\s\sat\s../generic/tclCkalloc.c:1160\n#3\s\s0x080c5856\sin\sFreeFsPathInternalRep\s\n(pathObjPtr=0x81314f8)\n\s\s\s\sat\s../generic/tclIOUtil.c:3780\n#4\s\s0x080558d4\sin\sTclFreeObj\s(objPtr=0x81314f8)\n\s\s\s\sat\s/cvs/tcl/tcl8.4/unix/../generic/tclObj.c:696\n#5\s\s0x080c82f2\sin\sFreeListInternalRep\s\n(listPtr=0x8131768)\n\s\s\s\sat\s../generic/tclListObj.c:1387\n#6\s\s0x0809ddde\sin\sTclExecuteByteCode\s\n(interp=0x810f110,\scodePtr=0x81188a8)\n\s\s\s\sat\s../generic/tclExecute.c:1375\n#7\s\s0x0809d150\sin\sTclCompEvalObj\s(interp=0x810f110,\s\nobjPtr=0x8117880,\s\n\s\s\s\sengineCall=0)\n\s\s\s\sat\s../generic/tclExecute.c:941\n#8\s\s0x0806e63d\sin\sTcl_EvalObjEx\s(interp=0x810f110,\s\nobjPtr=0x8117880,\s\n\s\s\s\sflags=131072)\sat\s../generic/tclBasic.c:3864\n\nIf\syou\sremove\sthe\sTcl_DecrRefCount\sat\stclCmdAH.c:1113\s\nthe\sbug\swill\sgo\saway,\sbut\sI'm\ssure\sthat\sit\sleaking\s\nmemory.\s\sThis\sneeds\sto\sget\saddressed\sASAP,\salong\swith\s\na\smore\srobust\stest\ssuite\son\sthe\sVFS\sstuff\s(with\sa\s\npurify\srun\sif\spossible).
J foundin obsolete:\s8.4a4
J priority 9\sImmediate
J resolution None
J status Open
J submitter hobbs
J subsystem 37.\sFile\sSystem
J title refcount\scrash\sin\sfile\sreadlink
J type Bug
K 523217ffffffffffffffffffffffffffffffffff
U hobbs
Z f737ec7479278d01d619f83d2445136e