Tcl Source Code

Ticket Change Details
Login
Overview

Artifact ID: 321adcdc1d4891fed92f379cceefd41037227258
Ticket: 21000b5d407f330efaf8e6207fe8d025b0633ebb
Problem with Tcl_DeleteInterp() in 8.4.9.1_Activetcl
User & Date: sakthivp 2014-02-17 09:31:05
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    I have some problem with Tcl_DeleteInterp() API (on solaris). I have used this Tcl_DeleteInterp() in my application to delete interpreter. The strange thing i found is the process which uses this API hangs about 20 minutes. I attached the process with truss command and found that the process continuously executing the below functions for almost 20 min for almost 13000(~) times.
    
    15.6541  0.0002 -> libtcl8.4:Tcl_DeleteInterp(0x41748, 0x0, 0x0, 0x0)
    15.6580  0.0039   -> libc:free(0x288f8, 0x0, 0x0, 0x0)
    15.6583  0.0003   -> libc:mutex_unlock(0xff0424e8, 0x0, 0x0, 0x0)
    15.6584  0.0001   <- libc:free() = 0
    15.6588  0.0004   -> libc:free(0x474b0, 0x0, 0x0, 0x0)*
    ...
    ...
    I have also attached the process with truss command when creating the Tcl Interpreter, but there were only about 800 times malloc() function has been called from Tcl_CreateInterp().
    
    Can someone help me on this why the function Tcl_DeleteInterp calling these functions? I have also checked the implementation done for Tcl_DeleteInterp() , but didn't find any clue.
    
    Thanks
    
  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: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "sakthivp"
  14. subsystem changed to: "20. [interp]"
  15. title changed to:
    Problem with Tcl_DeleteInterp() in 8.4.9.1_Activetcl
    
  16. type changed to: "Bug"