Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. 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.
    
  5. foundin changed to: "8.4.9.1"
  6. is_private changed to: "0"
  7. login: "sakthivp"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "48983f525fd9076bac622c146a176422b55d1e18"
  10. resolution changed to: "None"
  11. severity changed to: "Critical"
  12. status changed to: "Open"
  13. submitter changed to: "sakthivp"
  14. subsystem changed to: "41. Memory Allocation"
  15. title changed to:
    memory command is not available with TCL_MEM_DEBUG enabled libraries
    
  16. type changed to: "Bug"