Tcl Source Code

Ticket Change Details
Login
Overview

Artifact ID: 72bed0d1cbc3dc3233517d2c133693182078111f
Ticket: 21000b5d407f330efaf8e6207fe8d025b0633ebb
Problem with Tcl_DeleteInterp() in 8.4.9.1_Activetcl
User & Date: dgp 2014-02-25 13:43:23
Changes

  1. icomment:
    I found a Solaris system.
    
    $ uname -a
    SunOS <<REDACTED>> 5.10 Generic_148888-05 sun4u sparc SUNW,Sun-Blade-1000
    
    On it I built and installed a thread-enabled Tcl 8.4.9 from sources.
    I used the "Forte Developer 7 C 5.4 2002/03/09" compiler.
    
    The small program you submitted doesn't produce a working executable
    of course.  Here's the modified source I used:
    
    $ cat hang.c
    #include <tcl.h>
    int main()
    {
     int x=0;
     Tcl_Interp* a;
     a =  Tcl_CreateInterp();
     if (a == NULL)
     printf("Interpreter creation Failed \n");
     Tcl_Init(a);
     Tcl_Eval(a, "puts \"Tcl [info patchlevel] thread:$tcl_platform(threaded)\"");
     Tcl_DeleteInterp(a);
     printf("DeleteInterpreter \n");
    }
    
    $ cc -I/path/to/installed/Tcl/include -L/path/to/installed/Tcl/lib -ltcl8.4 hang.c
    
    $ a.out
    Tcl 8.4.9 thread:1
    DeleteInterpreter
    
    It does not hang.  It returns quickly, with no delay that I can
    perceive.
    
    In short, I cannot reproduce the problem you report from the
    description you've offered.  dkf may have different thoughts,
    but I'm not interested in seeing logs, I'm interested in the
    ability to demonstrate the problem.
    
    If I cannot demonstrate the problem, I see no hope that I can
    offer any help.
    
  2. login: "dgp"
  3. mimetype: "text/plain"