Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

../deps/uv/src/unix/core.c:701: uv__io_stop: Assertion `loop->watchers[w->fd] == w' failed. #1348

Closed
jwolski opened this issue Jul 2, 2014 · 14 comments

Comments

@jwolski
Copy link

jwolski commented Jul 2, 2014

We are seeing intermittent failures with node v0.10.26 on Ubuntu 12.04.4 with the following error:

../deps/uv/src/unix/core.c:701: uv__io_stop: Assertion `loop->watchers[w->fd] == w' failed.

node-ldap is not in use in this application as referenced in #838.

@saghul
Copy link
Contributor

saghul commented Jul 2, 2014

Can you provide a reduced (ie, no dependencies) test case? Are you using any binary addons?

@saghul
Copy link
Contributor

saghul commented Jul 6, 2014

Ping.

@jwolski
Copy link
Author

jwolski commented Jul 15, 2014

@saghul It's going to take us some time before we can have a test case because as of now we have very little information about why it's occurring. We are using some binary addons. I'll provide a list shortly...

@saghul
Copy link
Contributor

saghul commented Jul 15, 2014

Sorry, but I can't possibly debug the issue like this :-S If you can make a node core-only test case I might be able to, best would be a libuv C test case.

FWIW, you could begin by looking into binary addons that use uv handles, specially uv_poll_t handles.

@sh1mmer
Copy link

sh1mmer commented Jul 16, 2014

I just did a quick check. None of these modules use uv_poll_t

@saghul
Copy link
Contributor

saghul commented Jul 16, 2014

That will make it even harder to find :-(
On Jul 16, 2014 4:40 AM, "Tom Croucher" [email protected] wrote:

I just did a quick check. None of these modules use uv_poll_t


Reply to this email directly or view it on GitHub
#1348 (comment).

@saghul
Copy link
Contributor

saghul commented Aug 9, 2014

Closing, please feel free to reopen if you find a way to reproduce it.

@saghul saghul closed this as completed Aug 9, 2014
@tkelman
Copy link
Contributor

tkelman commented Aug 9, 2014

We've been seeing this same assertion failure with the Julia fork (see JuliaLang/julia#7840), but it's intermittent and we haven't pinned it down yet. Will be sure to report if we ever do figure out what's causing it.

@saghul
Copy link
Contributor

saghul commented Aug 9, 2014

That would be great!
On Aug 9, 2014 4:40 PM, "Tony Kelman" [email protected] wrote:

We've been seeing this same assertion failure with the Julia fork (see
JuliaLang/julia#7840 JuliaLang/julia#7840),
but it's intermittent and we haven't pinned it down yet. Will be sure to
report if we ever do figure out what's causing it.


Reply to this email directly or view it on GitHub
#1348 (comment).

@Tharit
Copy link

Tharit commented Aug 21, 2014

I'm seeing the same error with node v0.10.30; appears very infrequently and I have not been able to reproduce it. affected application is an http server that makes heavy use of canvas and mariasql modules, everything else is js.

@mdlavin
Copy link

mdlavin commented Oct 16, 2014

For what it's worth, I've seen the same failure when I use ZooKeeper in certain situations. Your list of dependencies includes zookeeper which should include the same problem I'm seeing. I'm not sure if you are seeing the exact same problem as me, but I've submitted a pull request that addresses my issues: yfinkelstein/node-zookeeper#101

@saghul
Copy link
Contributor

saghul commented Oct 16, 2014

@mdlavin I haven't looked in the node-zookeeper code, but your reasoning in the issue is correct! 🍰

@rafahoro
Copy link

I have the same issue in my code. It solved after commenting the a line to create a pipe with child's stdin (the code below was in my code, not in a library, but may help you finding the problematic line):

var cp = spawn(SPAWN_BIN, SPAWN_ARGS, {"env": env});
cp.stdout.pipe(process.stdout);
cp.stderr.pipe(process.stderr);
// https://github.com/Unitech/PM2/issues/659
// process.stdin.pipe is causing the following error when using PM2
//node: ../deps/uv/src/unix/core.c:701: uv__io_stop: Assertion `loop->watchers[w->fd] == w' failed.
//process.stdin.pipe(cp.stdin);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants