Nodejs crashing [Resolved]


#1

Hi,

I have a very normal setup of aerospike nodejs client, and sometimes I get this error backtrace:

node: ../deps/uv/src/unix/core.c:171: uv__finish_close: Assertion `handle->flags & UV_CLOSING' failed.

Program received signal SIGABRT, Aborted.
0x00000030eee32925 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64        return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
(gdb) backtrace
#0  0x00000030eee32925 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00000030eee34105 in abort () at abort.c:92
#2  0x00000030eee2ba4e in __assert_fail_base (fmt=<value optimized out>, assertion=0xb37538 "handle->flags & UV_CLOSING", file=0xb374a8 "../deps/uv/src/unix/core.c", line=<value optimized out>, function=<value optimized out>)
    at assert.c:96
#3  0x00000030eee2bb10 in __assert_fail (assertion=0xb37538 "handle->flags & UV_CLOSING", file=0xb374a8 "../deps/uv/src/unix/core.c", line=171, function=0xb37690 "uv__finish_close") at assert.c:105
#4  0x0000000000994bb4 in uv__finish_close (loop=0xe6d840, mode=<value optimized out>) at ../deps/uv/src/unix/core.c:171
#5  uv__run_closing_handles (loop=0xe6d840, mode=<value optimized out>) at ../deps/uv/src/unix/core.c:221
#6  uv_run (loop=0xe6d840, mode=<value optimized out>) at ../deps/uv/src/unix/core.c:319
#7  0x0000000000942132 in node::Start(int, char**) ()
#8  0x00000030eee1ed1d in __libc_start_main (main=0x599710 <main>, argc=2, ubp_av=0x7fffffffdec8, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fffffffdeb8)
    at libc-start.c:226
#9  0x00000000005999f1 in _start ()

To reproduce it:

> gdb --args node /bin/www

> run // until error occurs

> backtrace full

#2

Hi Daniel,

Thanks for reporting the issue. We’re trying to reproduce it on our end and will get back to you as soon as we have an update.

Thanks for your patience.

Dash


#3

Hi,

I could not reproduce this inhouse. Could you please give more details or steps to reproduce this problem, that will help me a great deal in solving this crash.

Thanks Gayathri.K


#4

We also recently pushed a new version that has a memory leak fix that you might have hit. Memory leaks can show some pretty bizzare behavior. I’d suggest a quick retest, if you can.


#5

Hi Daniel,

We made a official release to NPM 1.0.38 yesterday, which fixes this UV assertion segfault when running query in nodejs API. Please look at it and kindly inform us back, if it solves your problem.

Thanks

Gayathri.K


#6

Hi Gayahtri,

Seems like it is fixed now,

Thanks


#7

This question was cross-posted on Stackoverflow issue here