Skip to content
Tcl Source Code View Ticket
Login

View Ticket

reflected channels fail thread finalization

Closed / Out of Date3411310fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 12 years ago
Descriptionplain2011-09-18 21:56:57
The management of the list of ForwardingResult's headed
by forwardList lacks the robustness needed for multi-thread
access.  When testing with valgrind, and Thread with full
finalization enabled (like seeking mem leaks), there are 
crashes on NULL pointers and aborts from free() for 
various reasons.  Note that the for loop iterations

resultPtr = resultPtr->nextPtr

make no allowance for having resultPtr freed out
from under us by its creating thread.

This ticket a reminder to come back and attempt
to drain this swamp later.
dgpplain2011-09-19 04:59:13
Tests iocmd.tf-24.15 and iocmd.tf-24.16 are good
ones to demo the issues, when run alone.
dgpplain2011-09-21 00:42:27
Those tests are ok now on the trunk after
some other reforms.

Leaving this open as a marker for remaining
code cleanliness issues, but I no longer have
demo scripts for any troubles.
dgp Closed ticket [3411310fff]. [History diff]2014-10-09 16:17:06
Log in (anonymous is fine) to add a comment.