You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
ok, i just tried to reproduce it with a simple server, just flooding it with connections but i can't.
but i have a nodejs app where i can reproduce this.
i'll try to look into it.
the bug actually resides in the child_process module.
i am calling mime-magic on nearly every file i serve, to determine it's mime type. mime-magic uses execFile to use the linux file utility to determine the type.
this code triggers the bug for me:
var p = require('path');
var cp = require('child_process');
var maxtries = 500;
var fileExec = p.resolve(__dirname + '/../bin/file');
var dostuf = function(n) {
console.log(n)
cp.execFile(fileExec, ["dontmatter"], function (err, stdout) {
stdout = stdout.trim();
if (err) {
if (stdout) {
err.message = stdout;
}
}
});
}
for (var i = 0; i<maxtries; i++) {
dostuf(i);
}
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:
The text was updated successfully, but these errors were encountered: