[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [Libevent-users] Assertion in event_base_free
2009/12/7 Nick Mathewson <nickm@xxxxxxxxxxxxx>:
> On Sun, Dec 06, 2009 at 01:36:27AM +0000, Matthew Wild wrote:
>> Hi all,
>>
>> I'm getting the following assertion fail when my application shuts down:
>>
>> event.c:241: event_base_free: Assertion
>> `((&base->timetree)->rbh_root == ((void *)0))' failed.
>>
>> Now from what I can gather in the source, it is trying to make sure
>> there are no timers still active?
>
> What version are you using? This issue was fixed in November of 2007,
> and should be resolved in every version of Libevent 1.4.x.
>
Ah, you are completely right. I'm using Ubuntu 8.04 for development
which ships with 1.3e.
>> If this is the case, is there a way to easily close all timers?
>
> Upgrade. In 1.4.x and later, calling event_base_free() will call
> event_del() on every pending event.
>
Upgrading worked, thanks a bunch! I'll keep an eye out for this one.
Matthew
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.