On Sun, Sep 8, 2013 at 5:26 AM, Austin Moran <
mora...@gmail.com> wrote:
> Sorry for the delay in getting back to you on this. I wanted an example
> without all the noise of the original project. I also moved to version
> 0.11.13, which didn't change things very much.
> As far as I can tell, the trouble starts in read_work, and eventually the
> event loop gets corrupted. It doesn't always happen after the same number of
> "rounds". Here's a typical example from a run on OS X.
>
> Round 69678 finished. Incremented round to 69679
> Assertion failed: (uv__has_active_reqs(stream->loop)), function
> uv__write_callbacks, file src/unix/stream.c, line 883.
> Abort trap: 6
>
> Hopefully it's something simple I'm missing. In any case, suggestions are
> greatly appreciated.
> Thanks,
> Austin
You're calling libuv functions from inside the work callback. Don't
do that, it's unsafe. The work callback runs in another thread and