node: src/uv-common.c:105: uv_err_name: Assertion `0' failed.

463 views
Skip to first unread message

Dave Clements

unread,
Nov 5, 2011, 1:14:41 PM11/5/11
to nodejs
Hey,

This error keeps crashing node,

node: src/uv-common.c:105: uv_err_name: Assertion `0' failed.

but it's unpredictable. I've looked it up on the github issues, but
there's not much info about what to actually to do about it, some
think its to do with socket.io etc, but I'm not using socket.io, this
would be the culprit code:

var s=fs.createReadStream(f).once('open',function() {
response.writeHead(200,contentType);
this.pipe(response);
}).once('error',function(e) {
console.log(e);
response.writeHead(500);
response.end();
});

And I tend to be able to create the error using larger files (25mb +),
it can happen on first request or after 5 or 6, or whatever.

Any one got any ideas of how to handle this?

Best,
Dave

Dave Clements

unread,
Nov 6, 2011, 1:38:20 PM11/6/11
to nodejs

anyone?

Paddy Byers

unread,
Nov 6, 2011, 1:50:18 PM11/6/11
to nod...@googlegroups.com
Hi,

anyone?

Can anyone else reproduce it?

Are you able to rebuild or debug node to investigate?

The assertion failure indicates that something resulted in an unexpected error code, but without further information it will be hard to identify the root cause. If you could get a stack trace at the point the assertion fails, by building node with symbols and running it under gdb, then that would definitely be a start.

Unless, of course, someone else has seen the problem and looked into it.

Thanks - Paddy 

Jann Horn

unread,
Nov 6, 2011, 2:19:00 PM11/6/11
to nod...@googlegroups.com

Several people posted backtraces.



--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mai...

Paddy Byers

unread,
Nov 6, 2011, 2:34:00 PM11/6/11
to nod...@googlegroups.com
Hi,

Several people posted backtraces.

OK, my mistake, I hadn't seen the issue (https://github.com/joyent/libuv/issues/206)

Paddy

Dave Clements

unread,
Nov 6, 2011, 6:49:27 PM11/6/11
to nodejs
Hi guys

thanks for your responses, like Jann explained stack traces are
already available, though it would have been helpful if i'd have
linked to the issue, there seems to be a lot of silence on this
topic. I updated to node 0.6.0, and the problem prevails. its only a
guess, but I think its something to do with pipe,

If anyone could shed more light on this I'd be very grateful, Even if
it is a bug, is there a way to catch and handke this type of error?


Dave

Ben Noordhuis

unread,
Nov 7, 2011, 2:00:17 AM11/7/11
to nod...@googlegroups.com

It's a bug in libuv. Expect it to be fixed in the next few days.

Dave Clements

unread,
Nov 7, 2011, 7:08:23 PM11/7/11
to nodejs

excellent, thanks Ben!

On Nov 7, 7:00 am, Ben Noordhuis <i...@bnoordhuis.nl> wrote:

Alexandro David Campos

unread,
Nov 23, 2011, 12:01:30 PM11/23/11
to nodejs
any news regarding this fix I am also seeing this issue and making my
cluster workers crash, can you please help me figure out a soution?

On 7 nov, 01:00, Ben Noordhuis <i...@bnoordhuis.nl> wrote:

Ben Noordhuis

unread,
Nov 24, 2011, 7:17:23 AM11/24/11
to nod...@googlegroups.com
On Wed, Nov 23, 2011 at 18:01, Alexandro David Campos
<medw...@gmail.com> wrote:
> any news regarding this fix I am also seeing this issue and making my
> cluster workers crash, can you please help me figure out a soution?

It should be fixed in 0.6.2. Can you open an issue if you still run into it?

Make sure to test with a clean build (`make distclean`) and please
include all relevant details in the bug report, including the output
of `node -v`. A test case is much appreciated too.

Reply all
Reply to author
Forward
0 new messages