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...

@sh1mmer
Copy link

sh1mmer commented Jul 15, 2014

These are all of the node_modules in the tree with a build folder.

bignum@0.6.1
bignum@0.6.2
dtrace-provider@0.2.8
ffi@1.2.6
hiredis@0.1.15
isarray@0.0.1
libxmljs@10.8.1
libxmljs@10.9.0
nan@1.2.0
ref@20.3.2
sinon@1.4.0
source-map@0.1.37
toobusy@0.2.4
zookeeper@3.4.5-1
zookeeper@3.4.5-2

@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" notifications@github.com 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" notifications@github.com 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