ev.c fix

Marc Lehmann schmorp at schmorp.de
Fri Sep 9 10:48:33 CEST 2011

On Wed, Sep 07, 2011 at 01:35:00PM +0800, Auxten wpc <auxtenwpc at gmail.com> wrote:
> as my trace there a possiblity "w == (ev_io *)((WL)w)->next", the next point
> to itself
> this cause one of my threads infi loop here, so the simple fix is

Reinforcing what others already said, this sounds more like a bug in the
code using libev, as in starting a watcher twice with the help of some
ev_init call in between.

You can compile libev with EV_VERIFY set to 2, then it will instantly
"fail" (either with an assert or an endless loop in ev_verify) inside a
call to ev_io_start that is buggy.

                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\

More information about the libev mailing list