var net = require('net')
var tls = require('tls')
var v2 = setTimeout(function () { }, 0)
try { net.Server.prototype.listen(v2.after) } catch ($) { }
tls.Server.prototype.listen(0)
Backtrace:
iotjs: iotjs/deps/libtuv/src/unix/stream.c:461: void uv__stream_destroy(uv_stream_t *): Assertion `!uv__io_active(&stream->io_watcher, POLLIN | POLLOUT)' failed.
Program received signal SIGABRT, Aborted.
0xf7fd3939 in __kernel_vsyscall ()
(gdb) bt
#0 0xf7fd3939 in __kernel_vsyscall ()
#1 0xf7c90182 in raise () from /lib/i386-linux-gnu/libc.so.6
#2 0xf7c7a2b6 in abort () from /lib/i386-linux-gnu/libc.so.6
#3 0xf7c7a1c1 in ?? () from /lib/i386-linux-gnu/libc.so.6
#4 0xf7c87fd9 in __assert_fail () from /lib/i386-linux-gnu/libc.so.6
#5 0x082bf664 in uv__stream_destroy (stream=0xf4d19f00) at iotjs/deps/libtuv/src/unix/stream.c:461
#6 0x082a9c30 in uv__finish_close (handle=0xf4d19f00) at iotjs/deps/libtuv/src/unix/core.c:230
#7 0x082a577a in uv__run_closing_handles (loop=0x88ce6e0 <default_loop_struct>)
at iotjs/deps/libtuv/src/unix/core.c:260
#8 0x082a48d9 in uv_run (loop=0x88ce6e0 <default_loop_struct>, mode=UV_RUN_ONCE)
at iotjs/deps/libtuv/src/unix/core.c:328
#9 0x08155328 in iotjs_start (env=<optimized out>) at iotjs/src/iotjs.c:233
#10 iotjs_entry (argc=2, argv=0xffffcfa4) at iotjs/src/iotjs.c:312
#11 0xf7c7b751 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
#12 0x08080872 in _start ()
IoT.js version:
OS:
Test case:
Backtrace:
Found by Fuzzinator with JsProFuzz.