Tcl Source Code

View Ticket
Login
Ticket UUID: 3d768414de12dcd10aa7af36cdaca3fcdd821c4d
Title: Use of the thread package prevents interp from being fully deleted
Type: Bug Version: 8.6.10
Submitter: sbron Created on: 2020-07-14 15:25:02
Subsystem: 49. Threading Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Important
Status: Open Last Modified: 2020-07-15 05:23:16
Resolution: None Closed By: nobody
    Closed on:
Description:

When an interp uses the thread package, it does not get fully deleted by a [interp delete] command. I noticed this because the function registered with Tcl_CallWhenDeleted() in my extension never runs under these conditions.

There seems to be a call to Tcl_Preserve(interp) happening somewhere, without a matching call to Tcl_Release(interp). I haven't yet pinpointed where.

The problem was found on linux x86_64.


Attachments: