Skip to content
Tcl Source Code Artifact [fb183cd480]
Login

Artifact [fb183cd480]

Artifact fb183cd4808e77678c912e5cf43f800ca80aaaae:

Ticket change [fb183cd480] - New ticket [f50ff6f929119c62|f50ff6f929] <i>memory command is not available with TCL_MEM_DEBUG enabled libraries</i>. by sakthivp on 2014-03-11 07:19:07.
D 2014-03-11T07:19:07.714
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment I\scompiled\sthe\sTcl\slibraries\swith\sTCL_MEM_DEBUG\ssymbol\sby\sconfiguring\susing\sbelow\scommand.\r\n\r\n./configure\s--prefix=/scratch/sakthi/Tcl_8.4.9_debug\s--enable-symbols=all\r\n\r\nI\sfound\sa\slibrary\swith\sname\slibtcl8.4g.so.\sThen\si\swrote\sa\sC\sprogram\swhich\suses\sthe\sdebug\sshared\sobject\sto\sinvoke\sTcl\s'memory'\scommand.\sThe\sprogram\sfailed\sto\sexecute\sthe\s'memory'\scommand.\r\nC\sprogram\r\n---------\r\n#include\s<stdio.h>\r\n#include\s<tcl.h>\r\n#include\s<stdio.h>\r\n#include\s<tcl.h>\r\nint\smain()\r\n{\r\n\sint\sx=0;\r\n\sTcl_Interp*\sa;\r\n\sa\s=\s\sTcl_CreateInterp();\r\n\sTcl_Init(a);\r\n\sTcl_InitMemory(a);\r\n\sif\s(a\s==\sNULL)\r\n\sprintf("Interpreter\screation\sFailed\s\\n");\r\n\sx\s=\sTcl_Eval(a,(char\s*)"memory\sinfo");\r\n\sTcl_DeleteInterp(a);\r\n\sprintf("DeleteInterpreter\sx=%d\s\\n",x);\r\n}\r\n---------------------\r\nCompilation\sflags\son\ssolaris10\sserver\r\n\r\n/opt/Studio11/SUNWspro/bin/CC\s-L/scratch/sakthi/Tcl_8.4.9_debug/lib\s-ltcl8.4g\s-I/scratch/sakthi/Tcl_8.4.9_debug/include\s\sTcl_inter_problem.c\s-o\sTcl_inter_problem\r\n----------------------\r\nOutput\sof\sthe\sprogram\r\n\r\nDeleteInterpreter\sx=1\s\s//\sTcl_Eval\sfunction\sreturns\s1\s(TCL_ERROR),\sunable\sto\sexecute\smemory\scommand.\r\n\r\nI\shave\sattached\sthe\sMakefile\swhich\swas\sgenerated\sby\sconfigure\sscript.
J foundin 8.4.9.1
J is_private 0
J login sakthivp
J priority 5\sMedium
J private_contact 48983f525fd9076bac622c146a176422b55d1e18
J resolution None
J severity Critical
J status Open
J submitter sakthivp
J subsystem 41.\sMemory\sAllocation
J title memory\scommand\sis\snot\savailable\swith\sTCL_MEM_DEBUG\senabled\slibraries
J type Bug
K f50ff6f929119c62f9994d974a69be5e8bbf52d0
U sakthivp
Z 3008abf51ea1d3fcf9bf6c2e0f8ac093