Hi Mat, On 03/17/2016 01:15 PM, Mat Martineau wrote: > The race condition test in test-main exposed a case where the events > array returned by epoll_wait could have a stale watch_data > pointer. This triggered a use-after-free error that was reported by > the address sanitizer (./configure --enable-asan). > > When the event loop is running, watch_data structures with events > being dispatched are flagged. If watch_remove is called on a flagged > structure, the l_free() is deferred until after all events are > dispatched and the callback for that event is skipped. > --- > ell/main.c | 31 +++++++++++++++++++++++++++++-- > 1 file changed, 29 insertions(+), 2 deletions(-) > Patches 3-5 applied. Thanks. Regards, -Denis