-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.consoleIssues and PRs related to the console subsystem.Issues and PRs related to the console subsystem.vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.
Description
People coming here from search engines, read #6899 (comment)
- Version: 4.2.2, 4.4.0, 6.2.0
- Platform: 4.2.0-35-generic Working with nvm, nvmw and similar installation managers #40-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
- Subsystem: ubuntu 15.10
segmentation fault when simple mqtt client tries to send 40kb data to broker.
4.x versions of node crash with "console.log is not a function"
Program does not crash when i remove the // before the first console.log.
Seems to work under 32 bit.
steps to reproduce:
$ npm install mqtt mosca
$ node_modules/.bin/mosca &
...
$ node crash.js
FATAL ERROR: v8::FromJust Maybe value is Nothing.
Aborted (core dumped)
$ cat crash.js
var mqtt = require('mqtt');
var client = mqtt.connect('mqtt://localhost');
var todo=5000;
client.on('connect', function () {
// console.log("WTF");
client.subscribe('config/#');
pubs();
});
function pubs()
{
if(todo>0)
{
todo-=1;
client.publish('c/'+todo, '' ,pubs);
} else
{
console.log("END");
client.end();
}
}
xinthose
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.consoleIssues and PRs related to the console subsystem.Issues and PRs related to the console subsystem.vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.