Info
The core dump generation code on Windows does an incorrect string concatenation which prevents it from writing the file. The error is shown below. It looks like an underscore is inserted before the dump file name:
...
c20002| 2017-07-31T10:56:40.905-0400 I -
[rsSync]
c20002| 2017-07-31T10:56:40.905-0400 I CONTROL [rsSync] failed to open minidump file dump_E:\workspace\mongo\mongod.17064.2017-07-31T14-56-40.mdmp : The filename, directory name, or volume label syntax is incorrect.
c20002| 2017-07-31T10:56:40.905-0400 I CONTROL [rsSync] *** immediate exit due to unhandled exception
Top User Comments
robert.guo commented on Mon, 31 Jul 2017 18:06:15 +0000:
Reverted the offending commit here. Closing this ticket as Done.
We'll take Mark's suggestion into account for subsequent work.
mark.benvenuto commented on Mon, 31 Jul 2017 17:48:41 +0000:
Assigning to TIG since they introduced the regression and raising the priority since it blocks debugging. Please revert the breaking change. I recommend verifying the fix by introducing an access violation somewhere in mongod.exe, and verifying the dump can be opened with WinDBG.
kaloian.manassiev commented on Mon, 31 Jul 2017 15:13:45 +0000:
I would appreciate it if we do that, because currently this makes investigating what would have been simple crashes on Windows impossible and requires me to attach the debugger.
max.hirschhorn@10gen.com commented on Mon, 31 Jul 2017 15:09:00 +0000:
I think we should just revert the changes from SERVER-29424 until we're able to correctly handle path concatenation. The dump_ prefix is intended to be for the core dump's basename and not a prefix for the entire path. CC robert.guo, mark.benvenuto