Huub Eikens - 2015-03-25

Thanks for the fix. I'll take a look at it.

Op 25 mrt. 2015, om 18:27 heeft Colin McDonald cjmcdonald@users.sf.net het volgende geschreven:


[patches:#14] Fix for crash closing a udp channel on Windows

Status: open
Group: Unstable_(example)
Created: Wed Mar 25, 2015 05:27 PM UTC by Colin McDonald
Last Updated: Wed Mar 25, 2015 05:27 PM UTC
Owner: Huub Eikens

The attached patch fixes a crash closing a udp channel on Windows.

The problem is encountered when:

  • a readable fileevent is setup on the channel
  • the channel is closed
  • the program calls vwait to go back into the event loop and
    waits for some flag to be set (from a different event source).

Then a queued file readable callback for the deleted channel can be
executed from within the vwait, causing the crash. Maybe the crash
could also occur using the normal wish event loop, but I have only
seen it with a vwait following the channel close.

The attached generic/udp_tcl.c update uses Tcl_DeleteEvents to remove
queued events for a channel when it is closed.

It is based on the udp_tcl.c revision 1.48


Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/tcludp/patches/14/

To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

 

Related

Patches: #14