From d3d999a116bfb908edfb4c046b4c806d59dfb10d Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Fri, 10 May 2013 20:22:56 +0400 Subject: [PATCH] Missed lock acquire/release in event_base_cancel_single_callback_() Call backtrace: ... event_queue_remove_active() event_callback_cancel_nolock_() event_base_cancel_single_callback_() event_base_free_() event_base_free() ... Fix for e9ebef83 --- event.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/event.c b/event.c index 5a577e9f..3a7cb98f 100644 --- a/event.c +++ b/event.c @@ -721,7 +721,9 @@ event_base_cancel_single_callback_(struct event_base *base, result = 1; } } else { + EVBASE_ACQUIRE_LOCK(base, th_base_lock); event_callback_cancel_nolock_(base, evcb, 1); + EVBASE_RELEASE_LOCK(base, th_base_lock); result = 1; }