Overview
| Artifact ID: | fb183cd4808e77678c912e5cf43f800ca80aaaae |
|---|---|
| Ticket: | f50ff6f929119c62f9994d974a69be5e8bbf52d0
memory command is not available with TCL_MEM_DEBUG enabled libraries |
| User & Date: | sakthivp on 2014-03-11 07:19:07 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
I compiled the Tcl libraries with TCL_MEM_DEBUG symbol by configuring using below command. ./configure --prefix=/scratch/sakthi/Tcl_8.4.9_debug --enable-symbols=all I found a library with name libtcl8.4g.so. Then i wrote a C program which uses the debug shared object to invoke Tcl 'memory' command. The program failed to execute the 'memory' command. C program --------- #include <stdio.h> #include <tcl.h> #include <stdio.h> #include <tcl.h> int main() { int x=0; Tcl_Interp* a; a = Tcl_CreateInterp(); Tcl_Init(a); Tcl_InitMemory(a); if (a == NULL) printf("Interpreter creation Failed \n"); x = Tcl_Eval(a,(char *)"memory info"); Tcl_DeleteInterp(a); printf("DeleteInterpreter x=%d \n",x); } --------------------- Compilation flags on solaris10 server /opt/Studio11/SUNWspro/bin/CC -L/scratch/sakthi/Tcl_8.4.9_debug/lib -ltcl8.4g -I/scratch/sakthi/Tcl_8.4.9_debug/include Tcl_inter_problem.c -o Tcl_inter_problem ---------------------- Output of the program DeleteInterpreter x=1 // Tcl_Eval function returns 1 (TCL_ERROR), unable to execute memory command. I have attached the Makefile which was generated by configure script. - foundin changed to: "8.4.9.1"
- is_private changed to: "0"
- login: "sakthivp"
- priority changed to: "5 Medium"
- private_contact changed to: "48983f525fd9076bac622c146a176422b55d1e18"
- resolution changed to: "None"
- severity changed to: "Critical"
- status changed to: "Open"
- submitter changed to: "sakthivp"
- subsystem changed to: "41. Memory Allocation"
- title changed to:
memory command is not available with TCL_MEM_DEBUG enabled libraries
- type changed to: "Bug"