[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] Race condition on event_debug_mode_too_late.



Hi,

In one of our tests, we saw a race condition on event_debug_mode_too_late. We are using 2.0.21 stable.

In the test, one thread has on top of the stack
#0 Âevent_assign
#1 Âevent_new
#2 ... omitted

and another is doing
#0 Âevent_add_internal
#1 Âevent_add
#2 Â... omitted

Setting macro _EVENT_DISABLE_DEBUG_MODE fixes the problem.Â

A google search shows this might be similar to reports here:
http://archives.seul.org/libevent/users/Nov-2010/msg00058.html
and here:
http://sourceforge.net/p/levent/bugs/182/

Thanks.

Yang