Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Tcl_SetAssocData with Tcl_InterpDeleteProc segfaults on exit

Open081338a2de767f6adfa54214374f24d397e1bdefCreated 2 years agoUpdated 2 years ago
Descriptionplain2024-10-22 15:57:02
In 8.6 the associated delProc specified in Tcl_SetAssocData would be called properly to free data associated with an interpreter when the program that initialized the interpreter closed.  In 9.0 (and 9.0.1) it seems that when the program shuts down there is a memory access error. If this only occurs at shutdown, it's not catastrophic, but if interpreters are being created and deleted, it would cause the running program to crash.
oehharplain2024-10-22 16:37:01
Dear David,

thanks for this crash report. It is serious.

Even, if it crashes on shutdown, it is serious, because the shutdown may not be terminated. On MS-Windows, crash logs are written.

It would be great to have some code for reproduction. Even if this feels "trivial" for you, it might help to track-down the issue.

Thank you again,
Harald
sebreswiki2024-10-22 20:24:17

Possibly dup of [34870ab575], if so - it must be already fixed.
If not, it looks like a 2nd, 3rd ... nth after-effect of new unload-implementation.

Log in (anonymous is fine) to add a comment.