Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2020-07-15
05:23 • Ticket [3d768414de] Use of the thread package prevents interp from being fully d... artifact: 48438fca37 user: jan.nijtmans
2020-07-14
22:25 • Add attachment PATCH-threadCmd.txt to ticket [3d768414de12dcd1|3d768414... artifact: 71043a7f4b user: sbron
15:28 • Add attachment onexit.c to ticket [3d768414de] artifact: 003aafc683 user: sbron
15:27 • Add attachment demo.tcl to ticket [3d768414de] artifact: 7a17c87305 user: sbron
15:25 • New ticket [3d768414de] Use of the thread package prevents interp from being ful... artifact: c923388ac5 user: sbron

Use of the thread package prevents interp from being fully deleted

Open3d768414de12dcd10aa7af36cdaca3fcdd821c4dCreated 6 years agoUpdated 6 years ago
Descriptionwiki2020-07-14 15:25:02
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.

jan.nijtmans Ticket [3d768414de]: 3 changes [History diff]2020-07-15 05:23:16
Log in (anonymous is fine) to add a comment.