-
Notifications
You must be signed in to change notification settings - Fork 134
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
takeSnapshot segfaults on Node 8 #112
Comments
+1 same issue segmentation fault @ hustxiaoc |
@hyj1991 can you help me what have you changed there in the cc / h files? |
It looks like he simply isn't passing the progress callback when running in Node 8 I can confirm that this is the source of the crash, although I think this will cause tests to fail, and constitutes a reduction in functionality. From what I can tell it looks like |
@rvagg can you help us here please? |
@kkoopa @bnoordhuis might have a clue here |
ReportProgressValue() calls into JS land. Don't do that. :-) It may have worked by accident in the past but I don't think it was ever safe to do so. |
Also, why are the adapter classes heap allocated? They never seem to be freed. |
The adapter needs to be heap allocated because Edit: nevermind, it does complete before Serialize returns, it just iterates over |
"v8-profiler-node8" ( version: 5.7.6) is OK Can you merge this to v8-profiler ? |
snapshot.delete() segmentation fault core dumped also when using v8-profiler-node8 puzzling profile1.export(function(error, result) { snapshot2.export() //and It's ok as follow : snapshot2.export() |
@lmyzzu snapshot2.export()
.pipe(fs.createWriteStream('snapshot2.json'))
.on('finish', snapshot2.delete.bind(snapshot2)); |
The delete method should probably throw instead of segfault when called unbound. But that's a separate issue from this one |
fix: takeSnapshot segfaults on Node 8 (node-inspector#112)
Although v8-profiler is great, there doesn't seem to be a lot of activity in the repo. That's why i've created a new module which works from nodejs 6.3+, so nodejs 8 works as well. It can create heapdumps and CPU profiles as well. |
Attempting to take a snapshot segfaults
I built a Debug build and got this stacktrace
The text was updated successfully, but these errors were encountered: