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

[Libevent-users] Signals and priority queues



Hi folks

I'm trying to use libevent 2.0.13 with priorities, and am having a problem when signal events are defined. Basically, this is what I do:

1. create an event base

2. call event_base_priority_init(base, 8)

3. event_assign(&event, base, SIGTERM, EV_SIGNAL|EV_PERSIST, cbfunc, &event)

4. event_priority_set(&event, 1)

5. event_add(&event, NULL)

This is accepted just fine. However, when I subsequently call event_base_free(base), libevent crashes:

729			struct event *next = TAILQ_NEXT(ev, ev_next);
(gdb) where
#0  0x0000000100157be2 in event_base_free (base=0x1003046f0) at event.c:729


Any ideas on what might be happening? My program works fine (all other events cause no problem) so long as I remove these signal events. Do signal events not work with priority queues, at least in 2.0.13?

Thanks
Ralph

***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.