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
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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 . - foundin changed to: "obsolete: 8.3.2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to:
Tcl_Finalize does not stop Tcl_Main (started in a thread)
- type changed to: "Bug"