Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 00cd78e147019e0967ada2fb27c28e3e4de132f4
Ticket: 219407ffffffffffffffffffffffffffffffffff
Tcl_Finalize does not stop Tcl_Main (started in a thread)
User & Date: nobody on 2000-10-26 05:12:32
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 6324 Bug
    Version: 8.3.2
    SubmitDate: '2000-09-28'
    LastModified: '2000-10-25'
    Severity: CRIT
    Status: UnAssn
    Submitter: techsupp
    OS: Linux-Red Hat
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Name:
    Sree Oggu
    
    Extensions:
    tcl 8.3.2
    
    ReproducibleScript:
    // The folllowing c++ program does not exit
    
    #include "tcl.h"
    #include <pthread.h>
    #include <iostream.h>
    
    
    int
    Tcl_AppInit (Tcl_Interp *interp)
    {
        return Tcl_Init(interp);
    }
    
    void*
    Start (void* arg)
    {
        char* argv = "dummy";
        Tcl_Main (1, &argv, Tcl_AppInit);
        return 0;
    }
    
    
    main (int argc, char** argv)
    {
        pthread_t thr;
    
        pthread_create(&thr, 0, Start, 0);
    
        Tcl_Finalize();
    
        pthread_join (thr, 0);
    
        cout << "Terminating" << endl;
    }
    
    ObservedBehavior:
    Use the followng command to compile the above program
    
    g++ main.cc -ltcl -lpthread
    
    DesiredBehavior:
    I expect the program to terminate, since Tcl_Finalize has been invoked .
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.3.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to:
    Tcl_Finalize does not  stop Tcl_Main (started in a thread)
    
  11. type changed to: "Bug"