ev_timer_again() causing segmentation fault

utku genç utkugenc at gmail.com
Tue Oct 29 23:21:52 CET 2013


Thank you so much Marc, you were right, an EV_DEFAULT_ instead of
EV_A_ (in ev_timer_again(EV_A_
&communication_timeout_watcher); ) solved it for me.

Thank you,
Utku


On Tue, Oct 29, 2013 at 11:31 PM, Marc Lehmann <schmorp at schmorp.de> wrote:

> On Tue, Oct 29, 2013 at 10:30:20PM +0200, utku genç <utkugenc at gmail.com>
> wrote:
> > But if I move the ev_timer_again() one call deeper, as in:
>
> I see now, you are probably passing in an illegal loop pointer.
>
> > void do_something() {
> > ev_timer_again(EV_A_ &communication_timeout_watcher);
>
> Where do you declare the loop, and what value does it have? You are
> probably passing in an unrelated or uninitialised loop variable here.
>
> --
>                 The choice of a       Deliantra, the free code+content
> MORPG
>       -----==-     _GNU_              http://www.deliantra.net
>       ----==-- _       generation
>       ---==---(_)__  __ ____  __      Marc Lehmann
>       --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
>       -=====/_/_//_/\_,_/ /_/\_\
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20131030/33f51cd9/attachment-0001.html>


More information about the libev mailing list