[SERVER-21732] v3.0.4+ not working on Windows in virtual environment missing AVX instruction set Created: 02/Dec/15 Updated: 19/Nov/16 Resolved: 02/Aug/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin, Build |
| Affects Version/s: | 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.2.0-rc5 |
| Fix Version/s: | 3.3.5 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jan Scholtyssek | Assignee: | DO NOT USE - Backlog - Platform Team |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Steps To Reproduce: | 1.) 2.) |
||||||||||||
| Participants: | |||||||||||||
| Description |
|
For Windows on virtual machines: When installing a fresh copy of MongoDB starting with release version 3.0.4-rc0 all mongo-executables crash without message in command prompt but with Windows telling that the program stopped working. Environments tested: MongoDB v3.0.3 starts as expected on all systems. v2.6.11 starts as expected on all systems. ("Affected Verions" lists the tested versions). |
| Comments |
| Comment by Jan Scholtyssek [ 02/Aug/16 ] | |||
|
We have tested with 3.3.10 on XenServer and can confirm that the issue is fixed. Thank you so much for your support and development. | |||
| Comment by Mark Benvenuto [ 02/Aug/16 ] | |||
|
With the upgrade in compilers to VS 2015 Update 2, this has been fixed according to Microsoft Connect. | |||
| Comment by Mark Benvenuto [ 03/Dec/15 ] | |||
|
One correction, it is possible to compile MongoDB 3.0.x and later without tcmalloc by specifying "--allocator=system". | |||
| Comment by Mark Benvenuto [ 03/Dec/15 ] | |||
|
Jan, I am afraid that only Visual Studio 2013 is supported at this time for compiling MongoDB. The codes does not compile with Visual Studio 2015 (also called version 14 in the connect issue) at this time. See | |||
| Comment by Jan Scholtyssek [ 03/Dec/15 ] | |||
|
Hi Mark. | |||
| Comment by Mark Benvenuto [ 03/Dec/15 ] | |||
|
Thank for the information. The cause of the issue is that mathematical function log() in Microsoft Visual C++ 2013 (the compiler we compile the code with) depends on vpsrlq which is a part of the AVX instruction set. It appears either that your processor or Xen Server does not support it. In 3.0.4-rc0, we switched to using TCMalloc on Windows for WiredTiger which calls log() as part of startup. The instruction in question which triggered c000001d, i.e., Illegal Instruction:
It is fixed in a later version of the compiler which we have not adopted yet at this time. | |||
| Comment by Jan Scholtyssek [ 03/Dec/15 ] | |||
|
WER Report is attached. | |||
| Comment by Mark Benvenuto [ 02/Dec/15 ] | |||
|
pantojasc As part of the crash report by WER, there should be a set of files logged in a path when it crashes. The path varies for each crash, but you can find the information in the dialog box/text report. If you could please attach a set of these files from a particular crash, it would help us investigate. Example:
| |||
| Comment by Jan Scholtyssek [ 02/Dec/15 ] | |||
|
Same issue when using unpacked zip-archive (v3.0.7 without SSL). No output in console. Immediate "stopped working" message, Windows "Application" log same as attached. | |||
| Comment by Jan Scholtyssek [ 02/Dec/15 ] | |||
|
Package used is MSI for all versions tested. Except for 3.0.7 all without SSL-extension. | |||
| Comment by Ramon Fernandez Marina [ 02/Dec/15 ] | |||
|
pantojasc, what we need to see is the logs produced by mongod.exe. If launched from the command line as mongod.exe the logs will be displayed directly; if you're using a configuration file check to see where they are being sent. Can you also please comment on which package did you use to install MongDB, the MSI or the ZIP one? Thanks, | |||
| Comment by Jan Scholtyssek [ 02/Dec/15 ] | |||
|
Attached is the Windows Event Viewer "Application" log, showing messages from the install and first launch of mongod.exe. | |||
| Comment by Ramon Fernandez Marina [ 02/Dec/15 ] | |||
|
Did you use the MSI package or the zip files? Can you please upload the server logs for the failed installations? They should contain some indication as to what the issue is. Thanks, | |||
| Comment by Jan Scholtyssek [ 02/Dec/15 ] | |||
|
Tested with Windows 8.1 Pro in Oracle Virtualbox: No issues. (version 3.0.7 and 3.2.0-rc5). | |||
| Comment by Jan Scholtyssek [ 02/Dec/15 ] | |||
|
Tested versions without the issue: |