-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault: 11 when debug Promise #4577
Comments
"node - latest 4 and 5" Can you be more specific about the exact versions you tried? 5.4.0 was just released the other day. Did you also try with the latest master branch? |
I just tried the latest master branch -- can confirm segfault. |
Ah, sorry, the line |
I was able to duplicate it on OS X 10.10 with node v5.3.0, but not with v5.4.0. Can you confirm @davidvgalbraith @3y3 ? |
I'm seeing the same thing @mscdex |
Ok, sorry, I miss release of 5.4. I can't confirm segfault on 5.4, but code doesn't work correctly:
and evaluation result, but I receive only connection info. var app = require('child_process')
.exec('node --debug -e "setInterval(console.log, 10, Promise.all())"')
.on('exit', () => console.log(app, app.signalCode !== 'SIGSEGV', 'Segmentation fault'));
app.stderr.on('data', () =>
setTimeout(() =>
require('net').connect('5858', function() {
var data = JSON.stringify({
"seq": 1,
"type": "request",
"command": "evaluate",
"arguments": {
"global": true,
"expression": "global" /* global is accessible in global scope */
}
});
this.on('data', (data) => console.log('' + data));
this.write(`Content-Length: ${Buffer.byteLength(data, 'utf8')}\r\n\r\n${data}`);
}), 300 /* small delay to initialize debugger in app */)); |
@davidvgalbraith, @mscdex, is there any changes in debugger protocol in 5.4? Is it possible to backport segfault fix in v4? |
I also see the difference in |
Ok, I'm ready to close this issue and open one other about stalled debugger #4577 (comment) |
@3y3 I would probably open a new issue and close this one. |
Ready #4597 |
Segfault happens when I try to use
evaluate
command in non stopped process, which logs Promise to console.node - latest 4 and 5
os - darwin x64
app.js
pseudo debugger:
All works fine if process is paused or I don't try to log Promise:
Encapsulated test:
The text was updated successfully, but these errors were encountered: