.
D 2000-10-26T01:06:23
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s2324\sBug\nVersion:\s8.1.1\nSubmitDate:\s'1999-07-06'\nLastModified:\s'1999-10-21'\nSeverity:\sSER\nStatus:\sReleased\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sSolaris\nOSVersion:\s5.6\swith\sSun\sWorkshop\sCompiler\sC\s4.2\nMachine:\sOther\nFixedDate:\s'1999-10-21'\nFixedInVersion:\s8.2.2\nClosedDate:\s'2000-10-25'\n\n\nName:\nPrasad\sA.\sChodavarapu\n\nExtensions:\nnone\n\nCustomShell:\nnone\n\nReproducibleScript:\nWe\shave\srun\spurify\son\sour\smulti-thread\sapplication\sthat\scontains\n\s\s\s\sembedded\sTcl\sInterpreters.\sI\sam\sattaching\srelevant\sporyions\sof\spurify\n\s\s\s\slog\sthat\stalk\sabout\smemory\sleaks\sin\sTcl.\n\nObservedBehavior:\nMLK:\s800\sbytes\sleaked\sat\s0x2dfc78\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetThreadData\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_DeleteFileHandler\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_ReadChars\s\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_EvalFile\s\s\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclExecuteByteCode\s[tclLoadDl.c]\n\s\s\s\s\n\s\s\s\sMLK:\s364\sbytes\sleaked\sat\s0x2b3360\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetThreadData\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sCompileRegexp\s\s[tclRegexp.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetRegExpFromObj\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_RegexpObjCmd\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclExecuteByteCode\s[tclLoadDl.c]\n\s\s\s\s\n\s\s\s\sMLK:\s240\sbytes\sleaked\sin\s2\sblocks\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_CreateChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_MakeFileChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclpGetDefaultStdChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetStdChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s*\sBlock\sof\s120\sbytes\s(2\stimes);\slast\sblock\sat\s0x4cb528\n\s\s\s\s\n\s\s\s\sMLK:\s120\sbytes\sleaked\sat\s0x2b1298\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_CreateChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_MakeFileChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclpGetDefaultStdChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetStdChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sGetChannelTable\s[tclIO.c]\n\s\s\s\s\n\s\s\s\sMLK:\s4\sbytes\sleaked\sat\s0x2e10f8\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetThreadData\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclExecuteByteCode\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_EvalObjEx\s\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclObjInterpProc\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclExecuteByteCode\s[tclLoadDl.c]\n\s\s\s\s\n\s\s\s\sMLK:\s4\sbytes\sleaked\sat\s0xc2a98\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetThreadData\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclpOpenFileChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_OpenFileChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sOpenEncodingFile\s[tclEncoding.c]\n\s\s\s\s\s\s\s\s\s\s\s\sLoadEncodingFile\s[tclEncoding.c]\n\s\s\s\s\n\s\s\s\sPLK:\s4704\sbytes\spotentially\sleaked\sin\s2\sblocks\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sTclReComp\s\s\s\s\s\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sCompileRegexp\s\s[tclRegexp.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetRegExpFromObj\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_RegexpObjCmd\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclExecuteByteCode\s[tclLoadDl.c]\n\s\s\s\s\s\s*\sBlock\sof\s2352\sbytes\s(2\stimes);\slast\sblock\sat\s0x2c1d98\n\s\s\s\s\n\s\s\s\sMLK:\s88\sbytes\sleaked\sin\s2\sblocks\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sCompileRegexp\s\s[tclRegexp.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetRegExpFromObj\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_RegexpObjCmd\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclExecuteByteCode\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_EvalObjEx\s\s[tclLoadDl.c]\n\s\s\s\s\s\s*\sBlock\sof\s44\sbytes\s(2\stimes);\slast\sblock\sat\s0x2b35b0\n\s\s\s\s\n\s\s\s\sMLK:\s84\sbytes\sleaked\sin\s3\sblocks\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetThreadData\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sInitTimer\s\s\s\s\s\s[tclTimer.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_DeleteTimerHandler\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sCloseChannel\s\s\s[tclIO.c]\n\s\s\s\s\s\s\s\s\s\s\s\sFlushChannel\s\s\s[tclIO.c]\n\s\s\s\s\s\s*\sBlock\sof\s28\sbytes\s(3\stimes);\slast\sblock\sat\s0x2c9a48\n\s\s\s\s\n\s\s\s\sMLK:\s64\sbytes\sleaked\sin\s2\sblocks\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetThreadData\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_CreateChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclpOpenFileChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_OpenFileChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_EvalFile\s\s\s[tclLoadDl.c]\n\s\s\s\s\s\s*\sBlock\sof\s32\sbytes\s(2\stimes);\slast\sblock\sat\s0x2c8ce0\n\s\s\s\s\n\s\s\s\sMLK:\s36\sbytes\sleaked\sin\s3\sblocks\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_CreateThreadExitHandler\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sInitTimer\s\s\s\s\s\s[tclTimer.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_DeleteTimerHandler\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sCloseChannel\s\s\s[tclIO.c]\n\s\s\s\s\s\s\s\s\s\s\s\sFlushChannel\s\s\s[tclIO.c]\n\s\s\s\s\s\s*\sBlock\sof\s12\sbytes\s(3\stimes);\slast\sblock\sat\s0x2b0458\n\s\s\s\s\n\s\s\s\sMLK:\s32\sbytes\sleaked\sat\s0x60b8c0\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetThreadData\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetStdChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_PutsObjCmd\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclExecuteByteCode\s[tclLoadDl.c]\n\s\s\s\s\n\s\s\s\sMLK:\s32\sbytes\sleaked\sin\s2\sblocks\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_MakeFileChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclpGetDefaultStdChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetStdChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_PutsObjCmd\s[tclLoadDl.c]\n\s\s\s\s\s\s*\sBlock\sof\s16\sbytes\s(2\stimes);\slast\sblock\sat\s0x53d2d8\n\s\s\s\s\n\s\s\s\sMLK:\s32\sbytes\sleaked\sat\s0xc14d0\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\s_alloc_attr\s\s\s\s[libthread.so.1]\n\s\s\s\s\s\s\s\s\s\s\s\spthread_attr_init\s[libthread.so.1]\n\s\s\s\s\s\s\s\s\s\s\s\sTclpThreadCreate\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_InitNotifier\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclInitNotifier\s[tclLoadDl.c]\n\s\s\s\s\n\s\s\s\sMLK:\s32\sbytes\sleaked\sat\s0xc0838\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetThreadData\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclInitSubsystems\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_FindExecutable\s[tclLoadDl.c]\n\s\s\s\s\n\s\s\s\sMLK:\s16\sbytes\sleaked\sat\s0x2b10f8\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_MakeFileChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclpGetDefaultStdChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetStdChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sGetChannelTable\s[tclIO.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_RegisterChannel\s[tclLoadDl.c]\n\s\s\s\s\n\s\s\s\sMLK:\s12\sbytes\sleaked\sat\s0x230120\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_CreateThreadExitHandler\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sCompileRegexp\s\s[tclRegexp.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetRegExpFromObj\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_RegexpObjCmd\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclExecuteByteCode\s[tclLoadDl.c]\n\s\s\s\s\n\s\s\s\sMLK:\s8\sbytes\sleaked\sat\s0x261c98\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetThreadData\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclInitSubsystems\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_CreateInterp\s[tclLoadDl.c]\n\s\s\s\s\n\s\s\s\sMLK:\s8\sbytes\sleaked\sat\s0x2c8c70\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetThreadData\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclInExit\s\s\s\s\s\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sFileCloseProc\s\s[tclUnixChan.c]\n\s\s\s\s\s\s\s\s\s\s\s\sCloseChannel\s\s\s[tclIO.c]\n\s\s\s\s\s\s\s\s\s\s\s\sFlushChannel\s\s\s[tclIO.c]\n\s\s\s\s\n\s\s\s\sMLK:\s8\sbytes\sleaked\sin\s2\sblocks\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetThreadData\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclpOpenFileChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_OpenFileChannel\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_EvalFile\s\s\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclExecuteByteCode\s[tclLoadDl.c]\n\s\s\s\s\s\s*\sBlock\sof\s4\sbytes\s(2\stimes);\slast\sblock\sat\s0x2ad238\n\s\s\s\s\n\s\s\s\sPLK:\s4144\sbytes\spotentially\sleaked\sat\s0x2e1430\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sAllocChannelBuffer\s[tclIO.c]\n\s\s\s\s\s\s\s\s\s\s\s\sWriteChars\s\s\s\s\s[tclIO.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_WriteObj\s\s\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_PutsObjCmd\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTclExecuteByteCode\s[tclLoadDl.c]\n\s\s\s\s\n\s\s\s\sPLK:\s52\sbytes\spotentially\sleaked\sat\s0x2dfff0\n\s\s\s\s\s\s*\sThis\smemory\swas\sallocated\sfrom:\n\s\s\s\s\s\s\s\s\s\s\s\smalloc\s\s\s\s\s\s\s\s\s[rtlib.o]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_GetThreadData\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_CreateEventSource\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sInitTimer\s\s\s\s\s\s[tclTimer.c]\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_DeleteTimerHandler\s[tclLoadDl.c]\n\s\s\s\s\s\s\s\s\s\s\s\sCloseChannel\s\s\s[tclIO.c]\n\nDesiredBehavior:\nSome\sof\sthese\sleaks\smight\sbe\sOK,\sin\sthat\sthey\smight\sbe\sone\stime\sthings.\n\s\s\s\sOthers\smight\snot\sbe\sso.\sAlso,\ssince\sTcl\smanages\sits\sown\smemory\spool,\sif\n\s\s\s\sany\stricks\sar\sebeing\sused,\spurify\smight\sbe\sflustered\swith\sthose.\sstill,\n\s\s\s\sthese\sare\sworth\slooking\sinto.\n\n\n\nI\shave\sjust\sfinished\spurifying\sTcl\son\sSolaris,\sand\sit\scan\snow\nrun\sthrough\sthe\stest\ssuite,\sthreaded\sor\snon-threaded,\swithout\na\ssingle\sleak.\s\n--\s10/21/1999\shobbs
J foundin final:\s8.1.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Memory\sleaks\sin\sTcl8.1.1
J type Bug
K 218837ffffffffffffffffffffffffffffffffff
U nobody
Z 16009476c52d87d1448c1e3a22152db0