Skip to content

Instantly share code, notes, and snippets.

@3rd-Eden
Created April 7, 2013 19:29
Show Gist options
  • Save 3rd-Eden/5332108 to your computer and use it in GitHub Desktop.
Save 3rd-Eden/5332108 to your computer and use it in GitHub Desktop.
broke node
[root@093a7deb-f52a-41a1-ae29-bd8ec925e8c7 ~/thor]# thor --amount 50000 --concurrent 250 ws://>
Thor: version: 1.0.0
God of Thunder, son of Odin and smasher of WebSockets!
Thou shall:
- Spawn 24 workers.
- Create 250 concurrent/parallel connections.
- Smash 50000 connections with the mighty Mjölnir.
The answers you seek shall be yours, once I claim what is mine.
Connecting to ws://10.112.1.62:8080
Opened 100 connections
Opened 200 connections
Opened 300 connections
Opened 400 connections
Opened 500 connections
Opened 600 connections
Opened 700 connections
Opened 800 connections
Opened 900 connections
Opened 1000 connections
Opened 1100 connections
Opened 1200 connections
Opened 1300 connections
Opened 1400 connections
Opened 1500 connections
Opened 1600 connections
Opened 1700 connections
Opened 1800 connections
Opened 1900 connections
Opened 2000 connections
Opened 2100 connections
Opened 2200 connections
Opened 2300 connections
Opened 2400 connections
Opened 2500 connections
Opened 2600 connections
Opened 2700 connections
Opened 2800 connections
Opened 2900 connections
Opened 3000 connections
Opened 3100 connections
Opened 3200 connections
Opened 3300 connections
Opened 3400 connections
Opened 3500 connections
Opened 3600 connections
Opened 3700 connections
Opened 3800 connections
Opened 3900 connections
Opened 4000 connections
Opened 4100 connections
Opened 4200 connections
Opened 4300 connections
Opened 4400 connections
Opened 4500 connections
Opened 4600 connections
Opened 4700 connections
Opened 4800 connections
Opened 4900 connections
Opened 5000 connections
Opened 5100 connections
Opened 5200 connections
Opened 5300 connections
Opened 5400 connections
Opened 5500 connections
Opened 5600 connections
Opened 5700 connections
Opened 5800 connections
Opened 5900 connections
Opened 6000 connections
Opened 6100 connections
Opened 6200 connections
Opened 6300 connections
Opened 6400 connections
Opened 6500 connections
Opened 6600 connections
Opened 6700 connections
Opened 6800 connections
Opened 6900 connections
Opened 7000 connections
Opened 7100 connections
Opened 7200 connections
Opened 7300 connections
Opened 7400 connections
Opened 7500 connections
Opened 7600 connections
Opened 7700 connections
Opened 7800 connections
Opened 7900 connections
Opened 8000 connections
Opened 8100 connections
Opened 8200 connections
Opened 8300 connections
Opened 8400 connections
Opened 8500 connections
Opened 8600 connections
Opened 8700 connections
Opened 8800 connections
Opened 8900 connections
Opened 9000 connections
Opened 9100 connections
Opened 9200 connections
Opened 9300 connections
Opened 9400 connections
Opened 9500 connections
Opened 9600 connections
Opened 9700 connections
Opened 9800 connections
Opened 9900 connections
Opened 10000 connections
Opened 10100 connections
Opened 10200 connections
Opened 10300 connections
Opened 10400 connections
Opened 10500 connections
Opened 10600 connections
Opened 10700 connections
Opened 10800 connections
Opened 10900 connections
Opened 11000 connections
Opened 11100 connections
Opened 11200 connections
Opened 11300 connections
Opened 11400 connections
Opened 11500 connections
Opened 11600 connections
Opened 11700 connections
Opened 11800 connections
Opened 11900 connections
Opened 12000 connections
Opened 12100 connections
Opened 12200 connections
Opened 12300 connections
Opened 12400 connections
Opened 12500 connections
Opened 12600 connections
Opened 12700 connections
Opened 12800 connections
Opened 12900 connections
Opened 13000 connections
#
# Fatal error in ../deps/v8/src/incremental-marking.cc, line 462
# CHECK(success) failed
#
#
# Fatal error in ../deps/v8/src/incremental-marking.cc, line 462
# CHECK(success) failed
#
==== Stack trace ============================================
Security context: 8cf09201 <JS Object>#0#
1: BuildResultFromMatchInfo(aka BuildResultFromMatchInfo) [native regexp.js:~130] (this=8cf08091 <undefined>,a=a743a1e5 <JS Array[14]>#1#,b=b3f08081 <String[16]: 10.112.1.62:8080>)
2: exec [native regexp.js:~171] (this=a7445e09 <JS RegExp>#2#,a=b3f08081 <String[16]: 10.112.1.62:8080>)
3: parse(aka urlParse) [url.js:~92] (this=a743aa39 <an Object>#3#,url=b3f080bd <String[21]: ws://10.112.1.62:8080>,parseQueryString=8cf08091 <undefined>,slashesDenoteHost=8cf08091 <undefined>)
4: arguments adaptor frame: 1->3
5: initAsClient [/root/thor/node_modules/ws/lib/WebSocket.js:426] (this=b3f08115 <a WebSocket>#4#,address=b3f080bd <String[21]: ws://10.112.1.62:8080>,options=b3f08109 <an Options>#5#)
6: new constructor(aka WebSocket) [/root/thor/node_modules/ws/lib/WebSocket.js:~42] (this=b3f08115 <a WebSocket>#4#,address=b3f080bd <String[21]: ws://10.112.1.62:8080>,options=b3f08161 <an Object>#6#)
8: message [/root/thor/mjolnir.js:42] (this=a7489565 <a process>#7#,task=b3f08195 <an Object>#8#)
9: arguments adaptor frame: 2->1
11: emit [events.js:123] (this=a7489565 <a process>#7#)
12: arguments adaptor frame: 3->0
13: handleMessage [child_process.js:~262] (this=8cf092a1 <JS Global Object>#9#,target=a7489565 <a process>#7#,message=b3f08195 <an Object>#8#,handle=8cf08091 <undefined>)
14: onread [child_process.js:293] (this=a748aa15 <a Pipe>#10#,pool=a74aed71 <a SlowBuffer>#11#,offset=714064,length=93,recvHandle=8cf08091 <undefined>)
15: arguments adaptor frame: 3->4
==== Details ================================================
[1]: BuildResultFromMatchInfo(aka BuildResultFromMatchInfo) [native regexp.js:~130] (this=8cf08091 <undefined>,a=a743a1e5 <JS Array[14]>#1#,b=b3f08081 <String[16]: 10.112.1.62:8080>) {
// optimized frame
}
[2]: exec [native regexp.js:~171] (this=a7445e09 <JS RegExp>#2#,a=b3f08081 <String[16]: 10.112.1.62:8080>) {
// optimized frame
}
[3]: parse(aka urlParse) [url.js:~92] (this=a743aa39 <an Object>#3#,url=b3f080bd <String[21]: ws://10.112.1.62:8080>,parseQueryString=8cf08091 <undefined>,slashesDenoteHost=8cf08091 <undefined>) {
// optimized frame
}
[4]: arguments adaptor frame: 1->3 {
// actual arguments
[00] : b3f080bd <String[21]: ws://10.112.1.62:8080>
}
[5]: initAsClient [/root/thor/node_modules/ws/lib/WebSocket.js:426] (this=b3f08115 <a WebSocket>#4#,address=b3f080bd <String[21]: ws://10.112.1.62:8080>,options=b3f08109 <an Options>#5#) {
// stack-allocated locals
var httpObj = 8cf08091 <undefined>
var key = 8cf08091 <undefined>
var isSecure = 8cf08091 <undefined>
var requestOptions = 8cf08091 <undefined>
var serverUrl = 8cf08091 <undefined>
var isUnixSocket = 8cf08091 <undefined>
var shasum = 8cf08091 <undefined>
// heap-allocated locals
var self = 8cf08091 <undefined>
var req = 8cf08091 <undefined>
var expectedServerKey = 8cf08091 <undefined>
var agent = 8cf08091 <undefined>
// expression stack (top to bottom)
[08] : b3f080bd <String[21]: ws://10.112.1.62:8080>
[07] : a743aa39 <an Object>#3#
--------- s o u r c e c o d e ---------
function initAsClient(address, options) {? options = new Options({? origin: null,? protocolVersion: protocolVersion,? host: null,? protocol: null,?? // ssl-related options? pfx: null,? key: null,? passphrase: null,? cert: null,? ca: null,? ciphers: null,? rejectUnauthorized: null? }...
-----------------------------------------
}
[6]: new constructor(aka WebSocket) [/root/thor/node_modules/ws/lib/WebSocket.js:~42] (this=b3f08115 <a WebSocket>#4#,address=b3f080bd <String[21]: ws://10.112.1.62:8080>,options=b3f08161 <an Object>#6#) {
// optimized frame
}
[8]: message [/root/thor/mjolnir.js:42] (this=a7489565 <a process>#7#,task=b3f08195 <an Object>#8#) {
// heap-allocated locals
var task = b3f08195 <an Object>#8#
var now = b3f71f71 <Number: 1365362923178>
var socket = 8cf08091 <undefined>
// expression stack (top to bottom)
[03] : b3f08161 <an Object>#6#
[02] : b3f080bd <String[21]: ws://10.112.1.62:8080>
[01] : a743ad89 <JS Function WebSocket>#12#
[00] : a74aecc1 <JS Function message>#13#
--------- s o u r c e c o d e ---------
function message(task) {? var now = Date.now();?? //? // Write a new message to the socket. The message should have a size of x? //? if ('write' in task) {? Object.keys(connections).forEach(function write(id) {? write(connections[id], task, id);? });? }?? //? // Shut down every single socket.? /...
-----------------------------------------
}
[9]: arguments adaptor frame: 2->1 {
// actual arguments
[00] : b3f08195 <an Object>#8#
[01] : 8cf08091 <undefined> // not passed to callee
}
[11]: emit [events.js:123] (this=a7489565 <a process>#7#) {
// stack-allocated locals
var listeners = b3f081c5 <JS Array[2]>#14#
var args = b3f081a1 <JS Array[2]>#15#
var i = 1
var l = 2
var handler = a74aecf5 <JS Array[2]>#16#
var type = ba615075 <String[7]: message>
var er = 8cf08091 <undefined>
var arguments = b3f081b1 <an Arguments>#17#
// expression stack (top to bottom)
[10] : b3f081a1 <JS Array[2]>#15#
[09] : a7489565 <a process>#7#
[08] : a74aecc1 <JS Function message>#13#
--------- s o u r c e c o d e ---------
function () {? var type = arguments[0];? // If there is no 'error' event listener then throw.? if (type === 'error') {? if (!this._events || !this._events.error ||? (isArray(this._events.error) && !this._events.error.length))? {? if (this.domain) {? var er = arguments[1];? ...
-----------------------------------------
}
[12]: arguments adaptor frame: 3->0 {
// actual arguments
[00] : ba615075 <String[7]: message> // not passed to callee
[01] : b3f08195 <an Object>#8# // not passed to callee
[02] : 8cf08091 <undefined> // not passed to callee
}
[13]: handleMessage [child_process.js:~262] (this=8cf092a1 <JS Global Object>#9#,target=a7489565 <a process>#7#,message=b3f08195 <an Object>#8#,handle=8cf08091 <undefined>) {
// optimized frame
}
[14]: onread [child_process.js:293] (this=a748aa15 <a Pipe>#10#,pool=a74aed71 <a SlowBuffer>#11#,offset=714064,length=93,recvHandle=8cf08091 <undefined>) {
// stack-allocated locals
var message = b3f08195 <an Object>#8#
var i = 92
var json = b3f081d5 <String[92]: {"url":"ws://10.112.1.62:8080","size":1024,"messages":1,"id":"ws://10.112.1.62:8080::36765"}>
var start = 0
// expression stack (top to bottom)
[08] : 8cf08091 <undefined>
[07] : b3f08195 <an Object>#8#
[06] : a7489565 <a process>#7#
[05] : 8cf092a1 <JS Global Object>#9#
[04] : a743e585 <JS Function handleMessage>#18#
--------- s o u r c e c o d e ---------
function (pool, offset, length, recvHandle) {? if (pool) {? jsonBuffer += pool.toString('ascii', offset, offset + length);?? var i, start = 0;?? //Linebreak is used as a message end sign? while ((i = jsonBuffer.indexOf('\n', start)) >= 0) {? var json = jsonBuffer.slice(start, i)...
-----------------------------------------
}
[15]: arguments adaptor frame: 3->4 {
// actual arguments
[00] : a74aed71 <a SlowBuffer>#11#
[01] : 714064
[02] : 93
}
==== Key ============================================
==== Stack trace ============================================
Security context: 94409201 <JS Object>#0#
1: getHeader [http.js:~655] (this=8bf08081 <a ClientRequest>#1#,name=8de26aa1 <String[4]: host>)
2: createSocket [http.js:1088] (this=868a2a99 <an Agent>#2#,name=8bf08125 <String[16]: 10.112.1.62:8080>,host=8bf0810d <String[11]: 10.112.1.62>,port=8bf080fd <String[4]: 8080>,localAddress=94408091 <undefined>,req=8bf08081 <a ClientRequest>#1#)
3: addRequest [http.js:1070] (this=868a2a99 <an Agent>#2#,req=8bf08081 <a ClientRequest>#1#,host=8bf0810d <String[11]: 10.112.1.62>,port=8bf080fd <String[4]: 8080>,localAddress=94408091 <undefined>)
4: new constructor(aka ClientRequest) [http.js:1215] (this=8bf08081 <a ClientRequest>#1#,options=8bf08181 <an Object>#3#,cb=94408091 <undefined>)
6: request [http.js:~1597] (this=86889175 <an Object>#4#,options=8bf08181 <an Object>#3#,cb=94408091 <undefined>)
7: arguments adaptor frame: 1->2
8: initAsClient [/root/thor/node_modules/ws/lib/WebSocket.js:506] (this=8bf08231 <a WebSocket>#5#,address=8bf0820d <String[21]: ws://10.112.1.62:8080>,options=8bf08201 <an Options>#6#)
9: new constructor(aka WebSocket) [/root/thor/node_modules/ws/lib/WebSocket.js:~42] (this=8bf08231 <a WebSocket>#5#,address=8bf0820d <String[21]: ws://10.112.1.62:8080>,options=8bf0827d <an Object>#7#)
11: message [/root/thor/mjolnir.js:42] (this=86889565 <a process>#8#,task=8bf082b1 <an Object>#9#)
12: arguments adaptor frame: 2->1
14: emit [events.js:123] (this=86889565 <a process>#8#)
15: arguments adaptor frame: 3->0
16: handleMessage [child_process.js:~262] (this=944092a1 <JS Global Object>#10#,target=86889565 <a process>#8#,message=8bf082b1 <an Object>#9#,handle=94408091 <undefined>)
17: onread [child_process.js:293] (this=8688aa15 <a Pipe>#11#,pool=868aed71 <a SlowBuffer>#12#,offset=714064,length=93,recvHandle=94408091 <undefined>)
18: arguments adaptor frame: 3->4
#
# Fatal error in
#
# Fatal error in
#
# Fatal error in ==== Details ================================================
../deps/v8/src/incremental-marking.cc[1]: getHeader [http.js:~655] (this=8bf08081 <a ClientRequest>#1#,name=8de26aa1 <String[4]: host>) {
../deps/v8/src/incremental-marking.cc// optimized frame
, line }
../deps/v8/src/incremental-marking.cc462[2]: createSocket [http.js:1088] (this=868a2a99 <an Agent>#2#,name=8bf08125 <String[16]: 10.112.1.62:8080>,host=8bf0810d <String[11]: 10.112.1.62>,port=8bf080fd <String[4]: 8080>,localAddress=94408091 <undefined>,req=8bf08081 <a ClientRequest>#1#) {
, line
# // stack-allocated locals
462 var hostHeader = 94408091 <undefined>
var options = 8bf080b5 <an Object>#13#
CHECK( // heap-allocated locals
# var localAddress = 94408091 <undefined>
var port = 8bf080fd <String[4]: 8080>
CHECK( var host = 8bf0810d <String[11]: 10.112.1.62>
success var name = 8bf08125 <String[16]: 10.112.1.62:8080>
) failed var onClose = 94408091 <undefined>
#
success var onRemove = 94408091 <undefined>
var onFree = 94408091 <undefined>
var self = 868a2a99 <an Agent>#2#
) failed var s = 94408091 <undefined>
// expression stack (top to bottom)
#
[03] : 8de26aa1 <String[4]: host>
[02] : 8bf08081 <a ClientRequest>#1#
--------- s o u r c e c o d e ---------
function (name, host, port, localAddress, req) {? var self = this;? var options = util._extend({}, self.options);? options.port = port;? options.host = host;? options.localAddress = localAddress;?? options.servername = host;? if (req) {? var hostHeader = req.getHeader('host');? if (hostHeader) {...
-----------------------------------------
}
[3]: addRequest [http.js:1070] (this=868a2a99 <an Agent>#2#,req=8bf08081 <a ClientRequest>#1#,host=8bf0810d <String[11]: 10.112.1.62>,port=8bf080fd <String[4]: 8080>,localAddress=94408091 <undefined>) {
// stack-allocated locals
var name = 8bf08125 <String[16]: 10.112.1.62:8080>
// expression stack (top to bottom)
[07] : 8bf08081 <a ClientRequest>#1#
[06] : 94408091 <undefined>
[05] : 8bf080fd <String[4]: 8080>
[04] : 8bf0810d <String[11]: 10.112.1.62>
[03] : 8bf08125 <String[16]: 10.112.1.62:8080>
[02] : 868a2a99 <an Agent>#2#
[01] : 8bf08081 <a ClientRequest>#1#
--------- s o u r c e c o d e ---------
function (req, host, port, localAddress) {? var name = host + ':' + port;? if (localAddress) {? name += ':' + localAddress;? }? if (!this.sockets[name]) {? this.sockets[name] = [];? }? if (this.sockets[name].length < this.maxSockets) {? // If we are under maxSockets create a new one.? req.o...
, line
-----------------------------------------
}
462[4]: new constructor(aka ClientRequest) [http.js:1215] (this=8bf08081 <a ClientRequest>#1#,options=8bf08181 <an Object>#3#,cb=94408091 <undefined>) {
# // stack-allocated locals
var port = 8bf080fd <String[4]: 8080>
var conn = 94408091 <undefined>
var hostHeader = 8bf08151 <String[16]: 10.112.1.62:8080>
var host = 8bf0810d <String[11]: 10.112.1.62>
var method = 9c30c4c5 <String[3]: GET>
var i = 4
var key = 9c308f65 <String[17]: Sec-WebSocket-Key>
var defaultPort = 80
var l = 4
var setHost = 944080a1 <true>
var keys = 8bf08141 <JS Array[4]>#14#
CHECK(success // heap-allocated locals
var self = 8bf08081 <a ClientRequest>#1#
) failed // expression stack (top to bottom)
#
[15] : 94408091 <undefined>
[14] : 8bf080fd <String[4]: 8080>
[13] : 8bf0810d <String[11]: 10.112.1.62>
[12] : 8bf08081 <a ClientRequest>#1#
[11] : 868a2a99 <an Agent>#2#
--------- s o u r c e c o d e ---------
function ClientRequest(options, cb) {? var self = this;? OutgoingMessage.call(self);?? self.agent = options.agent === undefined ? globalAgent : options.agent;?? var defaultPort = options.defaultPort || 80;?? var port = options.port || defaultPort;? var host = options.hostname || options.host || 'localhost';?? if (...
-----------------------------------------
}
[6]: request [http.js:~1597] (this=86889175 <an Object>#4#,options=8bf08181 <an Object>#3#,cb=94408091 <undefined>) {
// optimized frame
}
[7]: arguments adaptor frame: 1->2 {
// actual arguments
[00] : 8bf08181 <an Object>#3#
}
[8]: initAsClient [/root/thor/node_modules/ws/lib/WebSocket.js:506] (this=8bf08231 <a WebSocket>#5#,address=8bf0820d <String[21]: ws://10.112.1.62:8080>,options=8bf08201 <an Options>#6#) {
// stack-allocated locals
var httpObj = 86889175 <an Object>#4#
var key = 8bf081b5 <String[24]: MTMtMTM2NTM2MjkyMzE3OA==>
var shasum = 8bf081a5 <JS Object>#15#
var requestOptions = 8bf08181 <an Object>#3#
var isUnixSocket = 944080b1 <false>
var serverUrl = 8bf08199 <an Object>#16#
var isSecure = 944080b1 <false>
// heap-allocated locals
var expectedServerKey = 8bf71d29 <String[28]: KyfdUS3h7Wca5ts3xtOmEssSgYE=>
var self = 8bf08231 <a WebSocket>#5#
var agent = 94408091 <undefined>
var req = 94408091 <undefined>
// expression stack (top to bottom)
[08] : 8bf08181 <an Object>#3#
[07] : 86889175 <an Object>#4#
--------- s o u r c e c o d e ---------
function initAsClient(address, options) {? options = new Options({? origin: null,? protocolVersion: protocolVersion,? host: null,? protocol: null,?? // ssl-related options? pfx: null,? key: null,? passphrase: null,? cert: null,? ca: null,? ciphers: null,? rejectUnauthorized: null? }...
-----------------------------------------
}
[9]: new constructor(aka WebSocket) [/root/thor/node_modules/ws/lib/WebSocket.js:~42] (this=8bf08231 <a WebSocket>#5#,address=8bf0820d <String[21]: ws://10.112.1.62:8080>,options=8bf0827d <an Object>#7#) {
// optimized frame
}
[11]: message [/root/thor/mjolnir.js:42] (this=86889565 <a process>#8#,task=8bf082b1 <an Object>#9#) {
// heap-allocated locals
var task = 8bf082b1 <an Object>#9#
var now = 8bf72095 <Number: 1365362923178>
var socket = 94408091 <undefined>
// expression stack (top to bottom)
[03] : 8bf0827d <an Object>#7#
[02] : 8bf0820d <String[21]: ws://10.112.1.62:8080>
[01] : 8683aecd <JS Function WebSocket>#17#
[00] : 868aecc1 <JS Function message>#18#
--------- s o u r c e c o d e ---------
function message(task) {? var now = Date.now();?? //? // Write a new message to the socket. The message should have a size of x? //? if ('write' in task) {? Object.keys(connections).forEach(function write(id) {? write(connections[id], task, id);? });? }?? //? // Shut down every single socket.? /...
-----------------------------------------
}
[12]: arguments adaptor frame: 2->1 {
// actual arguments
[00] : 8bf082b1 <an Object>#9#
[01] : 94408091 <undefined> // not passed to callee
}
[14]: emit [events.js:123] (this=86889565 <a process>#8#) {
// stack-allocated locals
var i = 1
var args = 8bf082bd <JS Array[2]>#19#
var arguments = 8bf082dd <an Arguments>#20#
var l = 2
var type = 8de15075 <String[7]: message>
var handler = 868aecf5 <JS Array[2]>#21#
var er = 94408091 <undefined>
var listeners = 8bf082cd <JS Array[2]>#22#
// expression stack (top to bottom)
[10] : 8bf082bd <JS Array[2]>#19#
[09] : 86889565 <a process>#8#
[08] : 868aecc1 <JS Function message>#18#
--------- s o u r c e c o d e ---------
function () {? var type = arguments[0];? // If there is no 'error' event listener then throw.? if (type === 'error') {? if (!this._events || !this._events.error ||? (isArray(this._events.error) && !this._events.error.length))? {? if (this.domain) {? var er = arguments[1];? ...
-----------------------------------------
}
[15]: arguments adaptor frame: 3->0 {
// actual arguments
[00] : 8de15075 <String[7]: message> // not passed to callee
[01] : 8bf082b1 <an Object>#9# // not passed to callee
[02] : 94408091 <undefined> // not passed to callee
}
[16]: handleMessage [child_process.js:~262] (this=944092a1 <JS Global Object>#10#,target=86889565 <a process>#8#,message=8bf082b1 <an Object>#9#,handle=94408091 <undefined>) {
// optimized frame
}
[17]: onread [child_process.js:293] (this=8688aa15 <a Pipe>#11#,pool=868aed71 <a SlowBuffer>#12#,offset=714064,length=93,recvHandle=94408091 <undefined>) {
// stack-allocated locals
var i = 92
var start = 0
var json = 8bf082f1 <String[92]: {"url":"ws://10.112.1.62:8080","size":1024,"messages":1,"id":"ws://10.112.1.62:8080::36766"}>
var message = 8bf082b1 <an Object>#9#
// expression stack (top to bottom)
[08] : 94408091 <undefined>
[07] : 8bf082b1 <an Object>#9#
[06] : 86889565 <a process>#8#
[05] : 944092a1 <JS Global Object>#10#
[04] : 8683e4dd <JS Function handleMessage>#23#
--------- s o u r c e c o d e ---------
function (pool, offset, length, recvHandle) {? if (pool) {? jsonBuffer += pool.toString('ascii', offset, offset + length);?? var i, start = 0;?? //Linebreak is used as a message end sign? while ((i = jsonBuffer.indexOf('\n', start)) >= 0) {? var json = jsonBuffer.slice(start, i)...
-----------------------------------------
}
[18]: arguments adaptor frame: 3->4 {
// actual arguments
[00] : 868aed71 <a SlowBuffer>#12#
[01] : 714064
[02] : 93
}
==== Key ============================================
#0# 94409201: 94409201 <JS Object>
#1# 8bf08081: 8bf08081 <a ClientRequest>
agent: 868a2a99 <an Agent>#2#
sendDate: 944080b1 <false>
_headerNames: 8bf7db39 <an Object>#24#
socketPath: 94408091 <undefined>
_trailer: 8de082e5 <String[0]: >
useChunkedEncodingByDefault: 944080b1 <false>
_last: 944080b1 <false>
path: 8de13465 <String[1]: />
method: 9c30c4c5 <String[3]: GET>
_hasBody: 944080a1 <true>
_headers: 8bf7db2d <an Object>#25#
writable: 944080a1 <true>
output: 8bf71c7d <JS Array[0]>#26#
outputEncodings: 8bf71c8d <JS Array[0]>#27#
shouldKeepAlive: 944080a1 <true>
chunkedEncoding: 944080b1 <false>
finished: 944080b1 <false>
#2# 868a2a99: 868a2a99 <an Agent>
sockets: 868a2b71 <an Object>#28#
options: 868a2af5 <an Object>#29#
requests: 868a2b2d <an Object>#30#
_events: 868a2c1d <an Object>#31#
maxSockets: 5
#3# 8bf08181: 8bf08181 <an Object>
host: 8bf0810d <String[11]: 10.112.1.62>
path: 8de13465 <String[1]: />
==== Stack trace ============================================
headers: 8bf71cfd <an Object>#32#
Security context: ac309201 <JS Object>#0#
1: g [events.js:191] (this=83f080cd <a ClientRequest>#1#)
2: arguments adaptor frame: 3->0
port: 8bf080fd <String[4]: 8080>
4: emit [events.js:123] (this=83f080cd <a ClientRequest>#1#)
#4# 86889175: 86889175 <an Object>
globalAgent: 868a2a99 <an Agent>#2#
parsers: 8683a985 <JS Object>#33#
5: arguments adaptor frame: 4->0
6: socketOnData [http.js:1393] (this=83f08119 <a Socket>#2#,d=915ae899 <a SlowBuffer>#3#,start=714176,end=714305)
7: onread [net.js:403] (this=83f081ed <a TCP>#4#,buffer=915ae899 <a SlowBuffer>#3#,offset=714176,length=129)
==== Details ================================================
STATUS_CODES: 8683a63d <an Object>#34#
#5# 8bf08231: 8bf08231 <a WebSocket>
url: 8bf0820d <String[21]: ws://10.112.1.62:8080>
[1]: g [events.js:191] (this=83f080cd <a ClientRequest>#1#) {
supports: 8bf72089 <an Object>#35#
// stack-allocated locals
bytesReceived: 0
var arguments = ac308091 <undefined>
_socket: 94408081 <null>
readyState: 94408081 <null>
// expression stack (top to bottom)
[03] : 3
protocolVersion: 13
[02] : 67254922
_isServer: 944080b1 <false>
[01] : 83f080a9 <JS Function g>#5#
--------- s o u r c e c o d e ---------
#6# 8bf08201: 8bf08201 <an Options>
function g() {? self.removeListener(type, g);? listener.apply(this, arguments);? }
-----------------------------------------
}
[2]: arguments adaptor frame: 3->0 {
#7# 8bf0827d: 8bf0827d <an Object>
protocolVersion: 13
// actual arguments
[00] : 83f08159 <an IncomingMessage>#6# // not passed to callee
#8# 86889565: 86889565 <a process>
[01] : 83f08119 <a Socket>#2# // not passed to callee
[02] : 83f08101 <a Buffer>#7# // not passed to callee
}
versions: 86841389 <an Object>#36#
[4]: emit [events.js:123] (this=83f080cd <a ClientRequest>#1#) {
// stack-allocated locals
env: 868413c1 <JS Object>#37#
var l = 1
execArgv: 868413b1 <JS Array[0]>#38#
features: 86841395 <an Object>#39#
argv: 868413a1 <JS Array[6]>#40#
var listeners = 83f081dd <JS Array[1]>#8#
connected: 944080a1 <true>
var arguments = 83f081c9 <an Arguments>#9#
var args = 83f081a9 <JS Array[3]>#10#
var i = 0
mainModule: 868894b9 <a Module>#41#
var type = 97b08e75 <String[7]: upgrade>
moduleLoadList: 8688a9f9 <JS Array[35]>#42#
var handler = 83f081b9 <JS Array[1]>#11#
version: 9c354699 <String[7]: v0.8.11>
var er = ac308091 <undefined>
// expression stack (top to bottom)
config: 868413cd <an Object>#43#
_channel: 8688aa15 <a Pipe>#11#
[10] : 83f081a9 <JS Array[3]>#10#
arch: 9c3546c1 <String[4]: ia32>
pid: 57246
execPath: 9c3546d1 <String[19]: /opt/local/bin/node>
_events: 868413d9 <an Object>#44#
[09] : 83f080cd <a ClientRequest>#1#
[08] : 83f080a9 <JS Function g>#5#
platform: 9c3546ad <String[5]: sunos>
--------- s o u r c e c o d e ---------
#9# 8bf082b1: 8bf082b1 <an Object>
function () {? var type = arguments[0];? // If there is no 'error' event listener then throw.? if (type === 'error') {? if (!this._events || !this._events.error ||? (isArray(this._events.error) && !this._events.error.length))? {? if (this.domain) {? var er = arguments[1];? ...
-----------------------------------------
}
size: 1024
url: 8bf0820d <String[21]: ws://10.112.1.62:8080>
[5]: arguments adaptor frame: 4->0 {
// actual arguments
[00] : 97b08e75 <String[7]: upgrade> // not passed to callee
[01] : 83f08159 <an IncomingMessage>#6# // not passed to callee
[02] : 83f08119 <a Socket>#2# // not passed to callee
id: 8bf7dd2d <String[28]: ws://10.112.1.62:8080::36766>
[03] : 83f08101 <a Buffer>#7# // not passed to callee
messages: 1
#10# 944092a1: 944092a1 <JS Global Object>
#11# 8688aa15: 8688aa15 <a Pipe>
: 868aed95 <FixedArray[101]>#45#
sockets: 868415bd <an Object>#46#
buffering: 944080b1 <false>
writeQueueSize: 0
#12# 868aed71: 868aed71 <a SlowBuffer>
length: 1048576
#13# 8bf080b5: 8bf080b5 <an Object>
}
host: 8bf0810d <String[11]: 10.112.1.62>
[6]: socketOnData [http.js:1393] (this=83f08119 <a Socket>#2#,d=915ae899 <a SlowBuffer>#3#,start=714176,end=714305) {
servername: 8bf0810d <String[11]: 10.112.1.62>
port: 8bf080fd <String[4]: 8080>
localAddress: 94408091 <undefined>
// stack-allocated locals
#14# 8bf08141: 8bf08141 <JS Array[4]>
0: 9c308efd <String[10]: Connection>
var socket = 83f08119 <a Socket>#2#
var eventName = 97b08e75 <String[7]: upgrade>
var bytesParsed = 129
1: 9c308f15 <String[7]: Upgrade>
2: 9c308f41 <String[21]: Sec-WebSocket-Version>
var req = 83f080cd <a ClientRequest>#1#
3: 9c308f65 <String[17]: Sec-WebSocket-Key>
var ret = 129
var bodyHead = 83f08101 <a Buffer>#7#
var res = 83f08159 <an IncomingMessage>#6#
var parser = b182b529 <an HTTPParser>#12#
// expression stack (top to bottom)
[12] : 83f08101 <a Buffer>#7#
#15# 8bf081a5: 8bf081a5 <JS Object>
[11] : 83f08119 <a Socket>#2#
[10] : 83f08159 <an IncomingMessage>#6#
#16# 8bf08199: 8bf08199 <an Object>
host: 8bf7dcf1 <String[16]: 10.112.1.62:8080>
[09] : 97b08e75 <String[7]: upgrade>
[08] : 83f080cd <a ClientRequest>#1#
href: 8bf7dd05 <String[21]: ws://10.112.1.62:8080>
--------- s o u r c e c o d e ---------
hostname: 8bf0810d <String[11]: 10.112.1.62>
function socketOnData(d, start, end) {? var socket = this;? var req = this._httpMessage;? var parser = this.parser;?? var ret = parser.execute(d, start, end - start);? if (ret instanceof Error) {? debug('parse error');? freeParser(parser, req);? socket.destroy(ret);? } else if (parser.incoming && parser.i...
slashes: 944080a1 <true>
port: 8bf080fd <String[4]: 8080>
protocol: 8bf7dce1 <String[3]: ws:>
#17# 8683aecd: 8683aecd <JS Function WebSocket>
-----------------------------------------
super_: 8683a93d <JS Function EventEmitter>#47#
CONNECTING: 0
}
CLOSING: 2
[7]: onread [net.js:403] (this=83f081ed <a TCP>#4#,buffer=915ae899 <a SlowBuffer>#3#,offset=714176,length=129) {
CLOSED: 3
OPEN: 1
#18# 868aecc1: 868aecc1 <JS Function message>
#19# 8bf082bd: 8bf082bd <JS Array[2]>
0: 8bf082b1 <an Object>#9#
// stack-allocated locals
1: 94408091 <undefined>
var end = 714305
var string = ac308091 <undefined>
var self = 83f08119 <a Socket>#2#
#20# 8bf082dd: 8bf082dd <an Arguments>
callee: 944252ed <JS Function>#48#
var handle = 83f081ed <a TCP>#4#
// expression stack (top to bottom)
[07] : 714305
[06] : 714176
[05] : 915ae899 <a SlowBuffer>#3#
[04] : 83f08119 <a Socket>#2#
--------- s o u r c e c o d e ---------
function onread(buffer, offset, length) {? var handle = this;? var self = handle.owner;? assert(handle === self._handle, 'handle != self._handle');?? timers.active(self);?? var end = offset + length;?? if (buffer) {? // Emit 'data' event.?? if (self._decoder) {? // Emit a string.? var string ...
length: 3
#21# 868aecf5: 868aecf5 <JS Array[2]>
0: 8683ee19 <JS Function>#49#
1: 868aecc1 <JS Function message>#18#
#22# 8bf082cd: 8bf082cd <JS Array[2]>
0: 8683ee19 <JS Function>#49#
1: 868aecc1 <JS Function message>#18#
#23# 8683e4dd: 8683e4dd <JS Function handleMessage>
#24# 8bf7db39: 8bf7db39 <an Object>
#25# 8bf7db2d: 8bf7db2d <an Object>
#26# 8bf71c7d: 8bf71c7d <JS Array[0]>
#27# 8bf71c8d: 8bf71c8d <JS Array[0]>
#28# 868a2b71: 868a2b71 <an Object>
-----------------------------------------
#29# 868a2af5: 868a2af5 <an Object>
#30# 868a2b2d: 868a2b2d <an Object>
#31# 868a2c1d: 868a2c1d <an Object>
#32# 8bf71cfd: 8bf71cfd <an Object>
}
#33# 8683a985: 8683a985 <JS Object>
==== Key ============================================
name: 9c30b075 <String[7]: parsers>
list: 86840b3d <JS Array[5]>#50#
max: 1000
#34# 8683a63d: 8683a63d <an Object>
#0# ac309201: ac309201 <JS Object>
#35# 8bf72089: 8bf72089 <an Object>
binary: 944080a1 <true>
#1# 83f080cd: 83f080cd <a ClientRequest>
#36# 86841389: 86841389 <an Object>
_events: 83f7d829 <an Object>#13#
_trailer: 995082e5 <String[0]: >
outputEncodings: 83f71cf5 <JS Array[0]>#14#
ares: 9c355ef1 <String[9]: 1.7.5-DEV>
http_parser: 9c355eb5 <String[3]: 1.0>
_headerSent: ac3080a1 <true>
openssl: 9c355f2d <String[6]: 1.0.0f>
_header: 83f7d835 <String[155]\: GET / HTTP/1.1\r\nConnection: Upgrade\r\nUpgrade: websocket\r\nSec-WebSocket-Version: 13\r\nSec-WebSocket-Key: MTMtMTM2NTM2MjkyMzM2Mg==\r\nHost: 10.112.1.62:8080\r\n\r\n>
uv: 9c355f09 <String[3]: 0.8>
node: 9c355ec5 <String[6]: 0.8.11>
v8: 9c355ed9 <String[10]: 3.11.10.22>
zlib: 9c355f19 <String[5]: 1.2.3>
#37# 868413c1: 868413c1 <JS Object>
#38# 868413b1: 868413b1 <JS Array[0]>
useChunkedEncodingByDefault: ac3080b1 <false>
#39# 86841395: 86841395 <an Object>
ipv6: 944080a1 <true>
output: 83f71ce5 <JS Array[0]>#15#
tls_sni: 944080a1 <true>
_last: ac3080a1 <true>
debug: 944080b1 <false>
socketPath: ac308091 <undefined>
uv: 944080a1 <true>
_headers: 83f7d811 <an Object>#16#
upgradeOrConnect: ac3080a1 <true>
method: 97b0c1b5 <String[3]: GET>
tls: 944080a1 <true>
tls_npn: 944080a1 <true>
res: 83f08159 <an IncomingMessage>#6#
#40# 868413a1: 868413a1 <JS Array[6]>
_hasBody: ac3080a1 <true>
0: 9c355f41 <String[19]: /opt/local/bin/node>
shouldKeepAlive: ac3080a1 <true>
path: 99513465 <String[1]: />
parser: b182b529 <an HTTPParser>#12#
chunkedEncoding: ac3080b1 <false>
_headerNames: 83f7d81d <an Object>#17#
1: 9c379a3d <String[21]: /root/thor/mjolnir.js>
2: 9c355f61 <String[23]: /root/thor/generator.js>
writable: ac3080a1 <true>
socket: 83f08119 <a Socket>#2#
connection: 83f08119 <a Socket>#2#
sendDate: ac3080b1 <false>
3: 9c355f85 <String[2]: 13>
agent: 915a25c1 <an Agent>#18#
finished: ac3080a1 <true>
4: 9c355f95 <String[5]: false>
#2# 83f08119: 83f08119 <a Socket>
onend: ac308081 <null>
5: 9c355fa9 <String[5]: false>
bytesRead: 129
errorEmitted: ac3080b1 <false>
#41# 868894b9: 868894b9 <a Module>
paths: 8683b245 <JS Array[3]>#51#
_events: 83f71d31 <an Object>#19#
allowHalfOpen: ac308091 <undefined>
_connectQueueSize: 0
_paused: ac3080b1 <false>
exports: 86889539 <an Object>#52#
id: 8de088b5 <String[1]: .>
loaded: 944080a1 <true>
_flags: 0
_bytesDispatched: 155
parent: 94408081 <null>
_connecting: ac3080b1 <false>
_httpMessage: 83f080cd <a ClientRequest>#1#
_connectQueue: ac308081 <null>
filename: 9c378ee9 <String[21]: /root/thor/mjolnir.js>
children: 8683b235 <JS Array[2]>#53#
_pendingWriteReqs: 0
#42# 8688a9f9: 8688a9f9 <JS Array[35]>
parser: b182b529 <an HTTPParser>#12#
writable: ac3080a1 <true>
ondata: ac308081 <null>
0: 9c354701 <String[13]: Binding evals>
1: 9c35471d <String[15]: Binding natives>
_handle: 83f081ed <a TCP>#4#
2: 86841401 <String[19]: NativeModule events>
readable: ac3080a1 <true>
destroyed: ac3080b1 <false>
3: 86841415 <String[19]: NativeModule buffer>
#3# 915ae899: 915ae899 <a SlowBuffer>
4: 9c354739 <String[14]: Binding buffer>
length: 1048576
5: 86841429 <String[19]: NativeModule assert>
#4# 83f081ed: 83f081ed <a TCP>
6: 8684143d <String[17]: NativeModule util>
7: 86841451 <String[26]: NativeModule child_process>
8: 86841465 <String[16]: NativeModule net>
: 83f7dc11 <FixedArray[101]>#20#
writeQueueSize: 0
9: 86841479 <String[19]: NativeModule stream>
...
owner: 83f08119 <a Socket>#2#
#43# 868413cd: 868413cd <an Object>
variables: 86846491 <an Object>#54#
#5# 83f080a9: 83f080a9 <JS Function g>
target_defaults: 86846485 <an Object>#55#
#44# 868413d9: 868413d9 <an Object>
listener: 83f71c69 <JS Function>#21#
internalMessage: 8684649d <JS Array[2]>#56#
#6# 83f08159: 83f08159 <an IncomingMessage>
headers: 83f71d4d <an Object>#22#
message: 868aecf5 <JS Array[2]>#21#
disconnect: 868464ad <JS Array[2]>#57#
httpVersionMajor: 1
_pendings: 83f71d65 <JS Array[0]>#23#
#45# 868aed95: 868aed95 <FixedArray[101]>
client: 83f08119 <a Socket>#2#
_paused: ac3080b1 <false>
0: 1
_endEmitted: ac3080b1 <false>
1: 0
2: 32
3: 94408091 <undefined>
method: ac308081 <null>
4: 2
5: 94408091 <undefined>
6: 94408091 <undefined>
upgrade: ac3080a1 <true>
httpVersion: 83f71d3d <String[3]: 1.1>
httpVersionMinor: 1
7: 94408091 <undefined>
socket: 83f08119 <a Socket>#2#
statusCode: 101
complete: ac3080a1 <true>
trailers: 83f71d59 <an Object>#24#
connection: 83f08119 <a Socket>#2#
url: 995082e5 <String[0]: >
readable: ac3080a1 <true>
#7# 83f08101: 83f08101 <a Buffer>
8: 9c394fbd <String[12]: slab_882be68>
length: 0
9: 94408081 <null>
...
#46# 868415bd: 868415bd <an Object>
offset: 714305
parent: 915ae899 <a SlowBuffer>#3#
#8# 83f081dd: 83f081dd <JS Array[1]>
got: 868456b5 <an Object>#58#
0: 83f080a9 <JS Function g>#5#
#9# 83f081c9: 83f081c9 <an Arguments>
length: 4
send: 868456c1 <an Object>#59#
callee: ac3252ed <JS Function>#25#
#47# 8683a93d: 8683a93d <JS Function EventEmitter>
#10# 83f081a9: 83f081a9 <JS Array[3]>
0: 83f08159 <an IncomingMessage>#6#
1: 83f08119 <a Socket>#2#
#48# 944252ed: 944252ed <JS Function>
2: 83f08101 <a Buffer>#7#
#11# 83f081b9: 83f081b9 <JS Array[1]>
0: 83f080a9 <JS Function g>#5#
#49# 8683ee19: 8683ee19 <JS Function>
length: 0
#50# 86840b3d: 86840b3d <JS Array[5]>
#12# b182b529: b182b529 <an HTTPParser>
0: b982dfa5 <an HTTPParser>#60#
1: b982dfd5 <an HTTPParser>#61#
2: b982dfc5 <an HTTPParser>#62#
incoming: 83f08159 <an IncomingMessage>#6#
_url: 995082e5 <String[0]: >
maxHeaderPairs: 2000
3: 868f735d <an HTTPParser>#63#
4: b982dfb5 <an HTTPParser>#64#
_headers: 83f08225 <JS Array[0]>#26#
#51# 8683b245: 8683b245 <JS Array[3]>
0: 9c3555dd <String[23]: /root/thor/node_modules>
1: 9c355601 <String[18]: /root/node_modules>
onIncoming: 9153ab05 <JS Function parserOnIncomingClient>#27#
socket: 83f08119 <a Socket>#2#
2: 9c355621 <String[13]: /node_modules>
#13# 83f7d829: 83f7d829 <an Object>
#14# 83f71cf5: 83f71cf5 <JS Array[0]>
#15# 83f71ce5: 83f71ce5 <JS Array[0]>
#16# 83f7d811: 83f7d811 <an Object>
#17# 83f7d81d: 83f7d81d <an Object>
#18# 915a25c1: 915a25c1 <an Agent>
requests: 915a2655 <an Object>#28#
_events: 915a2745 <an Object>#29#
#52# 86889539: 86889539 <an Object>
maxSockets: 5
sockets: 915a2699 <an Object>#30#
options: 915a261d <an Object>#31#
#53# 8683b235: 8683b235 <JS Array[2]>
#19# 83f71d31: 83f71d31 <an Object>
0: 86889451 <a Module>#65#
#20# 83f7dc11: 83f7dc11 <FixedArray[101]>
1: 868aeb39 <a Module>#66#
0: 1
1: 0
#54# 86846491: 86846491 <an Object>
2: 32
#55# 86846485: 86846485 <an Object>
3: ac308091 <undefined>
libraries: 868478c9 <JS Array[0]>#67#
4: 2
defines: 868478a9 <JS Array[0]>#68#
5: ac308091 <undefined>
include_dirs: 868478b9 <JS Array[0]>#69#
6: ac308091 <undefined>
default_configuration: 9c3577fd <String[7]: Release>
7: ac308091 <undefined>
cflags: 86847899 <JS Array[0]>#70#
8: ac308091 <undefined>
9: ac308091 <undefined>
#56# 8684649d: 8684649d <JS Array[2]>
0: 8683eb2d <JS Function>#71#
...
#21# 83f71c69: 83f71c69 <JS Function>
1: 868478d9 <JS Function>#72#
#57# 868464ad: 868464ad <JS Array[2]>
0: 8683a47d <JS Function g>#73#
1: 868478fd <JS Function g>#74#
#58# 868456b5: 868456b5 <an Object>
#22# 83f71d4d: 83f71d4d <an Object>
#59# 868456c1: 868456c1 <an Object>
#60# b982dfa5: b982dfa5 <an HTTPParser>
#23# 83f71d65: 83f71d65 <JS Array[0]>
maxHeaderPairs: 2000
#24# 83f71d59: 83f71d59 <an Object>
_headers: 8bf08305 <JS Array[0]>#75#
incoming: 94408081 <null>
#25# ac3252ed: ac3252ed <JS Function>
socket: 94408081 <null>
#26# 83f08225: 83f08225 <JS Array[0]>
onIncoming: 94408081 <null>
#27# 9153ab05: 9153ab05 <JS Function parserOnIncomingClient>
_url: 8de082e5 <String[0]: >
#28# 915a2655: 915a2655 <an Object>
#61# b982dfd5: b982dfd5 <an HTTPParser>
#29# 915a2745: 915a2745 <an Object>
maxHeaderPairs: 2000
#30# 915a2699: 915a2699 <an Object>
#31# 915a261d: 915a261d <an Object>
_headers: 8bf0876d <JS Array[0]>#76#
incoming: 94408081 <null>
socket: 94408081 <null>
onIncoming: 94408081 <null>
=====================
_url: 8de082e5 <String[0]: >
#62# b982dfc5: b982dfc5 <an HTTPParser>
maxHeaderPairs: 2000
_headers: 8bf08571 <JS Array[0]>#77#
incoming: 94408081 <null>
socket: 94408081 <null>
onIncoming: 94408081 <null>
_url: 8de082e5 <String[0]: >
#63# 868f735d: 868f735d <an HTTPParser>
maxHeaderPairs: 2000
_headers: 8bf0877d <JS Array[0]>#78#
incoming: 94408081 <null>
socket: 94408081 <null>
onIncoming: 94408081 <null>
_url: 8de082e5 <String[0]: >
#64# b982dfb5: b982dfb5 <an HTTPParser>
maxHeaderPairs: 2000
_headers: 8bf08551 <JS Array[0]>#79#
incoming: 94408081 <null>
socket: 94408081 <null>
onIncoming: 94408081 <null>
_url: 8de082e5 <String[0]: >
#65# 86889451: 86889451 <a Module>
paths: 8683b1d5 <JS Array[4]>#80#
exports: 8683aecd <JS Function WebSocket>#17#
id: 9c378b39 <String[35]: /root/thor/node_modules/ws/index.js>
loaded: 944080a1 <true>
parent: 868894b9 <a Module>#41#
filename: 9c378b39 <String[35]: /root/thor/node_modules/ws/index.js>
children: 8683b1c5 <JS Array[2]>#81#
#66# 868aeb39: 868aeb39 <a Module>
paths: 868aeb7d <JS Array[3]>#82#
exports: 868aeb61 <an Object>#83#
id: 9c3949d5 <String[23]: /root/thor/generator.js>
loaded: 944080a1 <true>
parent: 868894b9 <a Module>#41#
filename: 9c3949d5 <String[23]: /root/thor/generator.js>
children: 868aeb6d <JS Array[0]>#84#
#67# 868478c9: 868478c9 <JS Array[0]>
#68# 868478a9: 868478a9 <JS Array[0]>
#69# 868478b9: 868478b9 <JS Array[0]>
#70# 86847899: 86847899 <JS Array[0]>
#71# 8683eb2d: 8683eb2d <JS Function>
#72# 868478d9: 868478d9 <JS Function>
length: 2
#73# 8683a47d: 8683a47d <JS Function g>
listener: 86843fc1 <JS Function>#85#
#74# 868478fd: 868478fd <JS Function g>
listener: 868482a1 <JS Function>#86#
#75# 8bf08305: 8bf08305 <JS Array[0]>
#76# 8bf0876d: 8bf0876d <JS Array[0]>
#77# 8bf08571: 8bf08571 <JS Array[0]>
#78# 8bf0877d: 8bf0877d <JS Array[0]>
#79# 8bf08551: 8bf08551 <JS Array[0]>
#80# 8683b1d5: 8683b1d5 <JS Array[4]>
0: 9c355549 <String[39]: /root/thor/node_modules/ws/node_modules>
1: 9c35557d <String[23]: /root/thor/node_modules>
2: 9c3555a1 <String[18]: /root/node_modules>
3: 9c3555c1 <String[13]: /node_modules>
#81# 8683b1c5: 8683b1c5 <JS Array[2]>
0: 86889239 <a Module>#87#
1: 868ae2cd <a Module>#88#
#82# 868aeb7d: 868aeb7d <JS Array[3]>
0: 9c394a1d <String[23]: /root/thor/node_modules>
1: 9c394a41 <String[18]: /root/node_modules>
2: 9c394a61 <String[13]: /node_modules>
#83# 868aeb61: 868aeb61 <an Object>
#84# 868aeb6d: 868aeb6d <JS Array[0]>
#85# 86843fc1: 86843fc1 <JS Function>
#86# 868482a1: 868482a1 <JS Function>
#87# 86889239: 86889239 <a Module>
paths: 8683ace5 <JS Array[5]>#89#
exports: 8683aecd <JS Function WebSocket>#17#
id: 9c373ca1 <String[43]: /root/thor/node_modules/ws/lib/WebSocket.js>
loaded: 944080a1 <true>
parent: 86889451 <a Module>#65#
filename: 9c373ca1 <String[43]: /root/thor/node_modules/ws/lib/WebSocket.js>
children: 8683acd5 <JS Array[5]>#90#
#88# 868ae2cd: 868ae2cd <a Module>
paths: 868ae305 <JS Array[5]>#91#
exports: 868ae431 <JS Function WebSocketServer>#92#
id: 9c3914f1 <String[49]: /root/thor/node_modules/ws/lib/WebSocketServer.js>
loaded: 944080a1 <true>
parent: 86889451 <a Module>#65#
filename: 9c3914f1 <String[49]: /root/thor/node_modules/ws/lib/WebSocketServer.js>
children: 868ae2f5 <JS Array[0]>#93#
#89# 8683ace5: 8683ace5 <JS Array[5]>
0: 9c35547d <String[43]: /root/thor/node_modules/ws/lib/node_modules>
1: 9c3554b5 <String[39]: /root/thor/node_modules/ws/node_modules>
2: 9c3554e9 <String[23]: /root/thor/node_modules>
3: 9c35550d <String[18]: /root/node_modules>
4: 9c35552d <String[13]: /node_modules>
#90# 8683acd5: 8683acd5 <JS Array[5]>
0: 868a9e75 <a Module>#94#
1: 868aa0d1 <a Module>#95#
2: 868aacd5 <a Module>#96#
3: 868ac209 <a Module>#97#
4: 868acb2d <a Module>#98#
#91# 868ae305: 868ae305 <JS Array[5]>
0: 9c3915d1 <String[43]: /root/thor/node_modules/ws/lib/node_modules>
1: 9c391635 <String[39]: /root/thor/node_modules/ws/node_modules>
2: 9c391691 <String[23]: /root/thor/node_modules>
3: 9c3916cd <String[18]: /root/node_modules>
4: 9c3916fd <String[13]: /node_modules>
#92# 868ae431: 868ae431 <JS Function WebSocketServer>
super_: 8683a93d <JS Function EventEmitter>#47#
#93# 868ae2f5: 868ae2f5 <JS Array[0]>
#94# 868a9e75: 868a9e75 <a Module>
paths: 868a9f39 <JS Array[6]>#99#
exports: 868aa071 <JS Function Options>#100#
id: 9c38636d <String[62]: /root/thor/node_modules/ws/node_modules/options/lib/options.js>
loaded: 944080a1 <true>
parent: 86889239 <a Module>#87#
filename: 9c38636d <String[62]: /root/thor/node_modules/ws/node_modules/options/lib/options.js>
children: 868a9ee9 <JS Array[0]>#101#
#95# 868aa0d1: 868aa0d1 <a Module>
paths: 868aa109 <JS Array[5]>#102#
exports: 868aa215 <JS Function Sender>#103#
id: 9c386ef1 <String[40]: /root/thor/node_modules/ws/lib/Sender.js>
loaded: 944080a1 <true>
parent: 86889239 <a Module>#87#
filename: 9c386ef1 <String[40]: /root/thor/node_modules/ws/lib/Sender.js>
children: 868aa0f9 <JS Array[2]>#104#
#96# 868aacd5: 868aacd5 <a Module>
paths: 868aad0d <JS Array[5]>#105#
exports: 868ab175 <JS Function Receiver>#106#
id: 9c389b35 <String[42]: /root/thor/node_modules/ws/lib/Receiver.js>
loaded: 944080a1 <true>
parent: 86889239 <a Module>#87#
filename: 9c389b35 <String[42]: /root/thor/node_modules/ws/lib/Receiver.js>
children: 868aacfd <JS Array[2]>#107#
#97# 868ac209: 868ac209 <a Module>
paths: 868ac241 <JS Array[5]>#108#
exports: 868ac2dd <JS Function Sender>#109#
id: 9c38f3e1 <String[46]: /root/thor/node_modules/ws/lib/Sender.hixie.js>
loaded: 944080a1 <true>
parent: 86889239 <a Module>#87#
filename: 9c38f3e1 <String[46]: /root/thor/node_modules/ws/lib/Sender.hixie.js>
children: 868ac231 <JS Array[0]>#110#
#98# 868acb2d: 868acb2d <a Module>
paths: 868acb65 <JS Array[5]>#111#
exports: 868acc99 <JS Function Receiver>#112#
id: 9c3902a1 <String[48]: /root/thor/node_modules/ws/lib/Receiver.hixie.js>
loaded: 944080a1 <true>
parent: 86889239 <a Module>#87#
filename: 9c3902a1 <String[48]: /root/thor/node_modules/ws/lib/Receiver.hixie.js>
children: 868acb55 <JS Array[0]>#113#
#99# 868a9f39: 868a9f39 <JS Array[6]>
0: 9c3864b5 <String[64]: /root/thor/node_modules/ws/node_modules/options/lib/node_modules>
1: 9c386501 <String[60]: /root/thor/node_modules/ws/node_modules/options/node_modules>
2: 9c386549 <String[39]: /root/thor/node_modules/ws/node_modules>
3: 9c38657d <String[23]: /root/thor/node_modules>
4: 9c3865a1 <String[18]: /root/node_modules>
5: 9c3865c1 <String[13]: /node_modules>
#100# 868aa071: 868aa071 <JS Function Options>
#101# 868a9ee9: 868a9ee9 <JS Array[0]>
#102# 868aa109: 868aa109 <JS Array[5]>
0: 9c386f59 <String[43]: /root/thor/node_modules/ws/lib/node_modules>
1: 9c386f91 <String[39]: /root/thor/node_modules/ws/node_modules>
2: 9c386fc5 <String[23]: /root/thor/node_modules>
3: 9c386fe9 <String[18]: /root/node_modules>
4: 9c387009 <String[13]: /node_modules>
==== Stack trace ============================================
#103# 868aa215: 868aa215 <JS Function Sender>
super_: 8683a93d <JS Function EventEmitter>#47#
#104# 868aa0f9: 868aa0f9 <JS Array[2]>
Security context: 88f09201 <JS Object>#0#
0: 868aa301 <a Module>#114#
1: 868aa6ad <a Module>#115#
#105# 868aad0d: 868aad0d <JS Array[5]>
0: 9c389ba5 <String[43]: /root/thor/node_modules/ws/lib/node_modules>
1: 9c389bdd <String[39]: /root/thor/node_modules/ws/node_modules>
2: 9c389c11 <String[23]: /root/thor/node_modules>
3: 9c389c35 <String[18]: /root/node_modules>
4: 9c389c55 <String[13]: /node_modules>
#106# 868ab175: 868ab175 <JS Function Receiver>
#107# 868aacfd: 868aacfd <JS Array[2]>
0: 868ab245 <a Module>#116#
1: 868ab585 <a Module>#117#
#108# 868ac241: 868ac241 <JS Array[5]>
0: 9c38f4b1 <String[43]: /root/thor/node_modules/ws/lib/node_modules>
1: 9c38f515 <String[39]: /root/thor/node_modules/ws/node_modules>
2: 9c38f571 <String[23]: /root/thor/node_modules>
3: 9c38f5ad <String[18]: /root/node_modules>
4: 9c38f5dd <String[13]: /node_modules>
#109# 868ac2dd: 868ac2dd <JS Function Sender>
super_: 8683a93d <JS Function EventEmitter>#47#
#110# 868ac231: 868ac231 <JS Array[0]>
#111# 868acb65: 868acb65 <JS Array[5]>
0: 9c390379 <String[43]: /root/thor/node_modules/ws/lib/node_modules>
1: 9c3903dd <String[39]: /root/thor/node_modules/ws/node_modules>
1: setTimeout [net.js:~169] (this=94f08081 <a Socket>#1#,msecs=0,callback=88f08091 <undefined>)
2: 9c390439 <String[23]: /root/thor/node_modules>
2: arguments adaptor frame: 1->2
3: 9c390475 <String[18]: /root/node_modules>
4: 9c3904a5 <String[13]: /node_modules>
#112# 868acc99: 868acc99 <JS Function Receiver>
#113# 868acb55: 868acb55 <JS Array[0]>
#114# 868aa301: 868aa301 <a Module>
paths: 868aa385 <JS Array[5]>#118#
exports: 868aa4b5 <an Object>#119#
3: establishConnection [/root/thor/node_modules/ws/lib/WebSocket.js:546] (this=94f08125 <a WebSocket>#2#,ReceiverClass=a81aac9d <JS Function Receiver>#3#,SenderClass=a81a9d3d <JS Function Sender>#4#,socket=94f08081 <a Socket>#1#,upgradeHead=94f0810d <a Buffer>#5#)
4: /* anonymous */ [/root/thor/node_modules/ws/lib/WebSocket.js:532] (this=94f08215 <a ClientRequest>#6#,res=94f081c5 <an IncomingMessage>#7#,socket=94f08081 <a Socket>#1#,upgradeHead=94f0810d <a Buffer>#5#)
6: g [events.js:193] (this=94f08215 <a ClientRequest>#6#)
7: arguments adaptor frame: 3->0
id: 9c388789 <String[44]: /root/thor/node_modules/ws/lib/ErrorCodes.js>
9: emit [events.js:123] (this=94f08215 <a ClientRequest>#6#)
loaded: 944080a1 <true>
parent: 868aa0d1 <a Module>#95#
10: arguments adaptor frame: 4->0
filename: 9c388789 <String[44]: /root/thor/node_modules/ws/lib/ErrorCodes.js>
11: socketOnData [http.js:1393] (this=94f08081 <a Socket>#1#,d=a81ae899 <a SlowBuffer>#8#,start=714176,end=714305)
children: 868aa375 <JS Array[0]>#120#
#115# 868aa6ad: 868aa6ad <a Module>
12: onread [net.js:403] (this=94f082ed <a TCP>#9#,buffer=a81ae899 <a SlowBuffer>#8#,offset=714176,length=129)
paths: 868aa6e5 <JS Array[5]>#121#
==== Details ================================================
[1]: setTimeout [net.js:~169] (this=94f08081 <a Socket>#1#,msecs=0,callback=88f08091 <undefined>) {
exports: 868aa7a5 <an Object>#122#
id: 9c388d31 <String[44]: /root/thor/node_modules/ws/lib/BufferUtil.js>
loaded: 944080a1 <true>
parent: 868aa0d1 <a Module>#95#
filename: 9c388d31 <String[44]: /root/thor/node_modules/ws/lib/BufferUtil.js>
children: 868aa6d5 <JS Array[1]>#123#
#116# 868ab245: 868ab245 <a Module>
// optimized frame
paths: 868ab2c9 <JS Array[5]>#124#
}
[2]: arguments adaptor frame: 1->2 {
exports: 868ab389 <an Object>#125#
id: 9c38e1ad <String[44]: /root/thor/node_modules/ws/lib/Validation.js>
loaded: 944080a1 <true>
parent: 868aacd5 <a Module>#96#
// actual arguments
[00] : 0
filename: 9c38e1ad <String[44]: /root/thor/node_modules/ws/lib/Validation.js>
children: 868ab2b9 <JS Array[1]>#126#
#117# 868ab585: 868ab585 <a Module>
paths: 868ab5bd <JS Array[5]>#127#
}
exports: 868ab655 <JS Function BufferPool>#128#
id: 9c38ea7d <String[44]: /root/thor/node_modules/ws/lib/BufferPool.js>
loaded: 944080a1 <true>
parent: 868aacd5 <a Module>#96#
filename: 9c38ea7d <String[44]: /root/thor/node_modules/ws/lib/BufferPool.js>
children: 868ab5ad <JS Array[0]>#129#
#118# 868aa385: 868aa385 <JS Array[5]>
[3]: establishConnection [/root/thor/node_modules/ws/lib/WebSocket.js:546] (this=94f08125 <a WebSocket>#2#,ReceiverClass=a81aac9d <JS Function Receiver>#3#,SenderClass=a81a9d3d <JS Function Sender>#4#,socket=94f08081 <a Socket>#1#,upgradeHead=94f0810d <a Buffer>#5#) {
0: 9c388851 <String[43]: /root/thor/node_modules/ws/lib/node_modules>
1: 9c3888b5 <String[39]: /root/thor/node_modules/ws/node_modules>
// stack-allocated locals
var firstHandler = 94f080c1 <JS Function firstHandler>#10#
2: 9c388911 <String[23]: /root/thor/node_modules>
3: 9c38894d <String[18]: /root/node_modules>
// heap-allocated locals
4: 9c38897d <String[13]: /node_modules>
var upgradeHead = 94f0810d <a Buffer>#5#
#119# 868aa4b5: 868aa4b5 <an Object>
var realHandler = 94f72025 <JS Function realHandler>#11#
isValidErrorCode: 868aa661 <JS Function>#130#
var self = 88f08091 <undefined>
#120# 868aa375: 868aa375 <JS Array[0]>
var dataHandler = 88f08091 <undefined>
#121# 868aa6e5: 868aa6e5 <JS Array[5]>
// expression stack (top to bottom)
0: 9c388df9 <String[43]: /root/thor/node_modules/ws/lib/node_modules>
[02] : 0
1: 9c388e5d <String[39]: /root/thor/node_modules/ws/node_modules>
[01] : 94f08081 <a Socket>#1#
2: 9c388eb9 <String[23]: /root/thor/node_modules>
--------- s o u r c e c o d e ---------
3: 9c388ef5 <String[18]: /root/node_modules>
4: 9c388f25 <String[13]: /node_modules>
function establishConnection(ReceiverClass, SenderClass, socket, upgradeHead) {? this._socket = socket;? socket.setTimeout(0);? socket.setNoDelay(true);? var self = this;? this._receiver = new ReceiverClass();?? // socket cleanup handlers? socket.on('end', cleanupWebsocketResources.bind(this));? socket.on('close', clea...
#122# 868aa7a5: 868aa7a5 <an Object>
-----------------------------------------
BufferUtil: 868aaa01 <an Object>#131#
}
#123# 868aa6d5: 868aa6d5 <JS Array[1]>
0: 868aa77d <a Module>#132#
#124# 868ab2c9: 868ab2c9 <JS Array[5]>
0: 9c38e275 <String[43]: /root/thor/node_modules/ws/lib/node_modules>
[4]: /* anonymous */ [/root/thor/node_modules/ws/lib/WebSocket.js:532] (this=94f08215 <a ClientRequest>#6#,res=94f081c5 <an IncomingMessage>#7#,socket=94f08081 <a Socket>#1#,upgradeHead=94f0810d <a Buffer>#5#) {
// stack-allocated locals
1: 9c38e2d9 <String[39]: /root/thor/node_modules/ws/node_modules>
var serverKey = 94f08151 <String[28]: A2TcSae6ULXxgq5sldSI8DmOBVE=>
2: 9c38e335 <String[23]: /root/thor/node_modules>
3: 9c38e371 <String[18]: /root/node_modules>
4: 9c38e3a1 <String[13]: /node_modules>
// expression stack (top to bottom)
[05] : 94f0810d <a Buffer>#5#
#125# 868ab389: 868ab389 <an Object>
Validation: 868ab4e9 <an Object>#133#
[04] : 94f08081 <a Socket>#1#
#126# 868ab2b9: 868ab2b9 <JS Array[1]>
[03] : a81a9d3d <JS Function Sender>#4#
0: 868ab361 <a Module>#134#
[02] : a81aac9d <JS Function Receiver>#3#
#127# 868ab5bd: 868ab5bd <JS Array[5]>
0: 9c38eb45 <String[43]: /root/thor/node_modules/ws/lib/node_modules>
[01] : 94f08125 <a WebSocket>#2#
--------- s o u r c e c o d e ---------
1: 9c38eba9 <String[39]: /root/thor/node_modules/ws/node_modules>
function (res, socket, upgradeHead) {? if (self.readyState == WebSocket.CLOSED) {? // client closed before server accepted connection? self.emit('close');? removeAllListeners(self);? socket.end();? return;? }? var serverKey = res.headers['sec-websocket-accept'];? if (type...
2: 9c38ec05 <String[23]: /root/thor/node_modules>
3: 9c38ec41 <String[18]: /root/node_modules>
-----------------------------------------
4: 9c38ec71 <String[13]: /node_modules>
}
[6]: g [events.js:193] (this=94f08215 <a ClientRequest>#6#) {
// stack-allocated locals
#128# 868ab655: 868ab655 <JS Function BufferPool>
var arguments = 94f08249 <an Arguments>#12#
#129# 868ab5ad: 868ab5ad <JS Array[0]>
// expression stack (top to bottom)
[03] : 94f08249 <an Arguments>#12#
[02] : 94f08215 <a ClientRequest>#6#
[01] : 94f08179 <JS Function>#13#
#130# 868aa661: 868aa661 <JS Function>
--------- s o u r c e c o d e ---------
#131# 868aaa01: 868aaa01 <an Object>
merge: 868aaa19 <JS Function>#135#
function g() {? self.removeListener(type, g);? listener.apply(this, arguments);? }
-----------------------------------------
mask: 868aaa3d <JS Function>#136#
unmask: 868aaa61 <JS Function>#137#
#132# 868aa77d: 868aa77d <a Module>
paths: 868aa80d <JS Array[5]>#138#
exports: 868aa7a5 <an Object>#122#
id: 9c389205 <String[53]: /root/thor/node_modules/ws/lib/BufferUtil.fallback.js>
}
loaded: 944080a1 <true>
Connection to 165.225.133.56 closed by remote host.
Connection to 165.225.133.56 closed.
~ ⚡ ~ 255 ↵
~ ⚡ ~ 255 ↵
@3rd-Eden
Copy link
Author

3rd-Eden commented Apr 8, 2013

Another odd error after nuking the servers with 10k ssl sockets;

Assertion failed: handle_->Get(String::New("error"))->BooleanValue() == false, file ../src/node_crypto.cc, line 752, function ClearError
terminate called after throwing an instance of 'std::bad_alloc'

@shturm
Copy link

shturm commented Mar 19, 2015

This happens when node runs out of memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment