On Wed, Sep 07, 2011 at 01:35:00PM +0800, Auxten wpc <[email protected]> 
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
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\

_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to