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 }}
Repository navigation
win: coredumps with --abort-on-uncaught-exception #7733
I've been attempting to get a coredump with node --abort-on-uncaught-exception test.js on Windows. The test fails as expected, but I'm not sure whether the core has been generated and where to find it.
I checked the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting and there wasn't a LocalDumps key. I've manually added one following these instructions and then rebooted. However I haven't found anything in C:\Gib.
I assume this is a setup problem, but can anyone confirm that it is actually possible to get a core dump from Windows.
@gibfahn I don't know if WER can be used to generate a dump (that MSDN page says so, but I had the same luck as you). You can accomplish this by using Visual Studio: Open the node.sln solution, then in the Solution Explorer right-click the node project and Set as StartUp Project. Right-click again and select Properties, then under Debugging you can set the Command Arguments to --abort-on-uncaught-exception C:\gib\code\node_test\t.js. (That setting changes with the active configuration, so make sure it matches what you have enabled: Debug or Release.)
Start the debugger and it will stop on the v8 abort. From the Debug menu you can save a dump file if you want.
Thanks @joaocgreis, that sounds like the easiest graphical way.
I've been trying to script the coredumps though, so I've been looking for a command line utility. It looks like the easiest way is with procdump. I've managed to get a dump file (extension .dmp) with the following command:
-e = dump on error
-ma = full dump
-x = execute program with arguments
Doesn't look like v8 supports core dumps on Windows natively, so I guess there's no easier method than downloading procdump (which is at least a 600kb Microsoft Sysinternals standalone .exe).
Looks like this commit in V8 may add coredumps for windows. not sure whether it would work with node --abort-on-uncaught-exception though, or when it will get into node.
@ofrobots I know it's a long shot, but do you know if it is now possible to get core dumps in Windows in node with --abort-on-uncaught-exception? I'm pretty sure that the above commit is now in Node master (with v8 5.4), but I'm still not getting dumps anywhere. Is it possible that Node needs to do something to enable them (or maybe I misunderstood the above discussion and we still can't get dumps through v8 in windows)?
Activity
joaocgreis commentedon Jul 22, 2016
@gibfahn I don't know if WER can be used to generate a dump (that MSDN page says so, but I had the same luck as you). You can accomplish this by using Visual Studio: Open the
node.slnsolution, then in the Solution Explorer right-click thenodeproject andSet as StartUp Project. Right-click again and selectProperties, then underDebuggingyou can set theCommand Argumentsto--abort-on-uncaught-exception C:\gib\code\node_test\t.js. (That setting changes with the active configuration, so make sure it matches what you have enabled: Debug or Release.)Start the debugger and it will stop on the v8 abort. From the
Debugmenu you can save a dump file if you want.gibfahn commentedon Jul 22, 2016
Thanks @joaocgreis, that sounds like the easiest graphical way.
I've been trying to script the coredumps though, so I've been looking for a command line utility. It looks like the easiest way is with procdump. I've managed to get a dump file (extension .dmp) with the following command:
Doesn't look like v8 supports core dumps on Windows natively, so I guess there's no easier method than downloading procdump (which is at least a 600kb Microsoft Sysinternals standalone .exe).
gibfahn commentedon Aug 23, 2016
Looks like this commit in V8 may add coredumps for windows. not sure whether it would work with
node --abort-on-uncaught-exceptionthough, or when it will get into node.Discussion: https://groups.google.com/forum/#!topic/v8-dev/-WQike4xUp8
Commit: v8/v8@49c14f6 (original https://chromium.googlesource.com/v8/v8/+/49c14f63ef1ea94b8d7b5a9dfe939b2dbc02e42e)
gibfahn commentedon Sep 23, 2016
@ofrobots I know it's a long shot, but do you know if it is now possible to get core dumps in Windows in node with
--abort-on-uncaught-exception? I'm pretty sure that the above commit is now in Node master (with v8 5.4), but I'm still not getting dumps anywhere. Is it possible that Node needs to do something to enable them (or maybe I misunderstood the above discussion and we still can't get dumps through v8 in windows)?refack commentedon Jun 30, 2017
It's only been a year #13947 (comment)