joyent/node — Issue #2439: nodejs v0.6.6 segfault if out of sockets
Author: exi
Created: 2011-12-30 05:39:56+00:00
State: open

If if have >100 open connections within one nodejs process, node segfaults:

this is probably because i reach the connection limit for my kernel, but it should be handled by an exception when trying to open a new connection.

system: debian 6.0 64bit
node tag v0.6.6 from git

compiled under user prefix with ./configure --prefix=/home/exi/node --gdb --debug

backtrace:

#0 0x000000000081559f in clear_pending (loop=0xc58460, w=0x7fffe8368738) at src/unix/ev/ev.c:2609
No locals.
#1 0x000000000081679c in ev_child_stop (loop=0xc58460, w=0x7fffe8368738) at src/unix/ev/ev.c:3001
No locals.
#2 0x0000000000804baa in uv_close (handle=0x7fffe83686e0, closconnectionse_cb=0x559710 ) at src/unix/core.c:141
udp = 0x193ef6f91319
async = 0x0
timer = 0x58b5b9
stream = 0x7fffffffcf28
process = 0x7fffe83686e0
__PRETTY_FUNCTION__ = "uv_close"
#3 0x0000000000559c1f in node::HandleWrap::Close (args=...) at ../src/handle_wrap.cc:103
scope = {isolate_ = 0xc6a1a0, prev_next_ = 0xca2c50, prev_limit_ = 0xca4880, is_closed_ = false}
__PRETTY_FUNCTION__ = "static v8::Handle node::HandleWrap::Close(const v8::Arguments&)"
#4 0x00000000005b1887 in v8::internal::Builtin_HandleApiCall(v8::internal::(anonymous namespace)::BuiltinArguments<(v8::internal::BuiltinExtraArguments)1>, v8::internal::Isolate*) ()