Skip to content
Tcl Source Code Artifact [70598cb541]
Login

Artifact [70598cb541]

Artifact 70598cb541edd989039ac6b036010ef1e0a2f19c:

Ticket change [70598cb541] - New ticket [1789767fffffffff|1789767fff] <i>Invalid free in Tcl core</i>. by simps05192 on 2007-09-06 23:18:31.
D 2007-09-06T23:18:31
J assignee hobbs
J cmimetype text/plain
J comment I\schecked\sout\sthe\slatest\sTcl\sout\sof\sCVS\sas\sof\s2007-09-06\sand\sthen\slinked\sthe\sfollowing\sprogram\sagainst\sit:\n\n#include\s<tcl.h>\n\nint\sTcl_AppInit(Tcl_Interp*\sinterp)\n{\n\s\s\s\sif\s(Tcl_Init(interp)\s==\sTCL_ERROR)\s{\n\s\s\s\s\s\s\s\sreturn\sTCL_ERROR;\n\s\s\s\s}\n\n\s\s\s\sreturn\sTCL_OK;\n}\n\nint\smain(int\sargc,\schar*\sargv[])\n{\n\s\s\s\sTcl_Main(argc,\sargv,\sTcl_AppInit);\n\s\s\s\sreturn\s0;\n}\n\nI\sthen\sran\s"valgrind\s--leak-check=full\smytclsh"\sagainst\sit\sand\sI\sget\sthe\sfollowing\sspurious\sfree:\n\n==32498==\sInvalid\sfree()\s/\sdelete\s/\sdelete[]\n==32498==\s\s\s\sat\s0x43CF338:\sfree\s(vg_replace_malloc.c:233)\n==32498==\s\s\s\sby\s0x636A7BB:\sfree_mem\s(in\s/lib/tls/libc-2.3.4.so)\n==32498==\s\s\s\sby\s0x636A1E1:\s__libc_freeres\s(in\s/lib/tls/libc-2.3.4.so)\n==32498==\s\s\s\sby\s0x43C6355:\s_vgnU_freeres\s(vg_preloaded.c:60)\n==32498==\s\s\s\sby\s0x62EE903:\s_Exit\s(in\s/lib/tls/libc-2.3.4.so)\n==32498==\s\s\s\sby\s0x4430661:\sTcl_Exit\s(in\s/home/simpsons/tcl/unix/libtcl8.5.so)\n==32498==\s\s\s\sby\s0x43FEC21:\sTcl_ExitObjCmd\s(in\s/home/simpsons/tcl/unix/libtcl8.5.so)\n==32498==\s\s\s\sby\s0x43F7233:\sTclEvalObjvInternal\s(in\s/home/simpsons/tcl/unix/libtcl8.5.so)\n==32498==\s\s\s\sby\s0x4434C50:\sTclExecuteByteCode\s(in\s/home/simpsons/tcl/unix/libtcl8.5.so)\n==32498==\s\s\s\sby\s0x443B6FE:\sTclCompEvalObj\s(in\s/home/simpsons/tcl/unix/libtcl8.5.so)\n==32498==\s\s\s\sby\s0x43F873A:\sTclEvalObjEx\s(in\s/home/simpsons/tcl/unix/libtcl8.5.so)\n==32498==\s\s\s\sby\s0x43F8A64:\sTcl_EvalObjEx\s(in\s/home/simpsons/tcl/unix/libtcl8.5.so)\n==32498==\s\sAddress\s0x45C7008\sis\snot\sstack'd,\smalloc'd\sor\s(recently)\sfree'd\n
J foundin obsolete:\s8.5a7
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter simps05192
J subsystem 41.\sMemory\sAllocation
J title Invalid\sfree\sin\sTcl\score
J type Bug
K 1789767fffffffffffffffffffffffffffffffff
U simps05192
Z 69e5483a5595db8f21bb961384189c6f