[SERVER-8880] mongo_sm.exe segfaults for certain configuration settings when building with VS2010 Created: 06/Mar/13 Updated: 11/Jul/16 Resolved: 07/Mar/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build |
| Affects Version/s: | None |
| Fix Version/s: | 2.4.0-rc3, 2.5.0 |
| Type: | Bug | Priority: | Trivial - P5 |
| Reporter: | Andrew Emil (Inactive) | Assignee: | Tad Marshall |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | Windows | ||||
| Steps To Reproduce: | 1) Build mongodb_sm.sln using one of the specified configurations |
||||
| Participants: | |||||
| Description |
|
Certain VS2010 build configurations will cause mongo_sm.exe to segfault. Specifically, the builds that are known to do this now: Release Win32 stack trace: MongoDB shell version: 2.4.0-rc2-pre- Tue Mar 05 23:35:32.667 mongo_sm.exe ...\src\mongo\shell\dbshell.cpp(216) |
| Comments |
| Comment by auto [ 07/Mar/13 ] |
|
Author: {u'date': u'2013-03-07T16:36:22Z', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}Message: The /OPT:REF (Optimize References) and /OPT:ICF (Enable COMDAT Folding) |
| Comment by Tad Marshall [ 07/Mar/13 ] |
|
The setting of link options /OPT:REF and /OPT:ICF are the cause of this. These aren't needed and are not set in the scons build. Since the purpose of the Visual Studio projects is to provide IDE support for the same code that we build with scons, these options should be removed. This affects only the *.vcxproj files. |