Tcl Source Code

Ticket Change Details
Login
Overview

Artifact ID: deec6f69ed3438f70795e1e43b1bc26d2afdf127
Ticket: 1a28e712043054383e458f2a54ba96ead23db699
when i call Tcl_DeleteInterp in new thread ,the program crash
User & Date: luguanhui 2016-12-05 07:15:28
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    1 . Recently ,when I upgrade the tcl/tk to 8.6.1 from 8.5.9,the program is crash in Tcl_DeleteInterp.After I debug the tcl/tk,I found that in the follow code:
    static void
    DeleteInterpProc(
        Tcl_Interp *interp)		/* Interpreter to delete. */
    {
        ........
        if (!(iPtr->flags & DELETED)) {
    	Tcl_Panic("DeleteInterpProc called on interpreter not marked deleted");
        }
    
    }
    
    2. It seems that ,Tcl_DeleteInterp and Tcl_CreateInterp should be called in the same thread? But the code work fine in 8.5.9 .Is there any change done in 8.6.1? 
    Thank you
    
  5. foundin changed to: "8.6.1"
  6. is_private changed to: "0"
  7. login: "luguanhui"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "7ea2264d7851fedd822fe9347c46ea57253fec57"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "luguanhui"
  14. subsystem changed to: "20. [interp]"
  15. title changed to:
    when i call Tcl_DeleteInterp in new thread ,the program crash
    
  16. type changed to: "Bug"