[SERVER-10507] options_parser_test failed on all Windows builders Created: 14/Aug/13  Updated: 11/Jul/16  Resolved: 22/Aug/13

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.5.2

Type: Bug Priority: Major - P3
Reporter: Matt Kangas Assignee: Shaun Verch
Resolution: Done Votes: 0
Labels: buildbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-8510 Move command line parsing into MONGO_... Closed
Operating System: ALL
Participants:

 Description   

Tue Aug 13, rev e2f7e8e75c for all of the following builders:

http://buildbot.10gen.cc/builders/Windows%2032-bit/builds/6102
http://buildbot.10gen.cc/builders/Windows%2064-bit/builds/5649
http://buildbot.10gen.cc/builders/Windows%2064-bit%20DEBUG/builds/963
http://buildbot.10gen.cc/builders/Windows%2064-bit%202008R2%2B/builds/156
http://buildbot.10gen.cc/builders/Windows%2064-bit%202008R2%2B%20DEBUG/builds/253

They all went boom on options_parser_test.exe

http://buildlogs.mongodb.org/Windows%2064-bit%20DEBUG/builds/963/test/core/options_parser_test.exe

Tue Aug 13 20:14:47.875 going to run suite: ConfigFromFilesystem
Tue Aug 13 20:14:47.875 	 going to run test: JSONGood
Tue Aug 13 20:14:47.875 FAIL: JSONGood	Expected ::mongo::Status::OK() == (parser.run(testOpts, argv, env_map, &environment)) (OK  == InternalError Error reading in config file: No error) @src\mongo\util\options_parser\options_parser_test.cpp:882
Tue Aug 13 20:14:47.875 	 going to run test: INIGood
Tue Aug 13 20:14:47.875 FAIL: INIGood	Expected ::mongo::Status::OK() == (parser.run(testOpts, argv, env_map, &environment)) (OK  == InternalError Error reading in config file: No error) @src\mongo\util\options_parser\options_parser_test.cpp:905
Tue Aug 13 20:14:47.875 	 going to run test: Empty
Tue Aug 13 20:14:47.875 *** C runtime error: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\vector(932) : Assertion failed: vector subscript out of range, terminating
Tue Aug 13 20:14:47.875  Fatal Assertion 17006
2013-08-13 20:14:49 EDT	
Tue Aug 13 20:14:49.841 options_parser_test.exe  ...\src\mongo\util\stacktrace.cpp(169)                                      mongo::printStackTrace+0x5b
Tue Aug 13 20:14:49.841 options_parser_test.exe  ...\src\mongo\util\log.cpp(131)                                             mongo::logContext+0xd8
Tue Aug 13 20:14:49.841 options_parser_test.exe  ...\src\mongo\util\assert_util.cpp(130)                                     mongo::fassertFailed+0x94
Tue Aug 13 20:14:49.841 options_parser_test.exe  ...\src\mongo\util\stacktrace.cpp(285)                                      mongo::crtDebugCallback+0x107
Tue Aug 13 20:14:49.841 options_parser_test.exe  f:\dd\vctools\crt_bld\self_64_amd64\crt\src\dbgrptt.c(605)                  _VCrtDbgReportW+0x812
Tue Aug 13 20:14:49.841 options_parser_test.exe  f:\dd\vctools\crt_bld\self_64_amd64\crt\src\dbgrpt.c(242)                   _CrtDbgReportWV+0x43
Tue Aug 13 20:14:49.841 options_parser_test.exe  f:\dd\vctools\crt_bld\self_64_amd64\crt\src\dbgrpt.c(258)                   _CrtDbgReportW+0x4d
Tue Aug 13 20:14:49.841 options_parser_test.exe  f:\dd\vctools\crt_bld\self_64_amd64\crt\src\stdthrow.cpp(13)                std::_Debug_message+0x34
Tue Aug 13 20:14:49.841 options_parser_test.exe  c:\program files (x86)\microsoft visual studio 10.0\vc\include\vector(933)  std::vector<char,std::allocator<char> >::operator[]+0x51
Tue Aug 13 20:14:49.841 options_parser_test.exe  ...\src\mongo\util\options_parser\options_parser.cpp(492)                   mongo::optionenvironment::OptionsParser::readConfigFile+0x3d4
Tue Aug 13 20:14:49.841 options_parser_test.exe  ...\src\mongo\util\options_parser\options_parser.cpp(569)                   mongo::optionenvironment::OptionsParser::run+0x397
Tue Aug 13 20:14:49.841 options_parser_test.exe  ...\src\mongo\util\options_parser\options_parser_test.cpp(927)              `anonymous namespace'::UnitTest__ConfigFromFilesystem__Empty::_doTest+0x25f



 Comments   
Comment by Matt Kangas [ 22/Aug/13 ]

This is resolved

Comment by auto [ 15/Aug/13 ]

Author:

{u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}

Message: SERVER-10507 Resize vector after reading config file to match the number of bytes actually read
Branch: master
https://github.com/mongodb/mongo/commit/90d8b6915eba4447bb8b7b2adadd47509c685d4a

Comment by auto [ 15/Aug/13 ]

Author:

{u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}

Message: Revert "SERVER-10507 Disable unittest failing on windows builds"

This reverts commit ca81b44e30d4803da3d6994d0278350ac02f3d88.
Branch: master
https://github.com/mongodb/mongo/commit/4dea25eed39f79a2211c6c892a04162cf7c2bec5

Comment by auto [ 14/Aug/13 ]

Author:

{u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}

Message: SERVER-10507 Disable unittest failing on windows builds
Branch: master
https://github.com/mongodb/mongo/commit/ca81b44e30d4803da3d6994d0278350ac02f3d88

Comment by Shaun Verch [ 14/Aug/13 ]

Pushed fix, commit shown on SERVER-8510:

Author:

{u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}

Message: SERVER-8510 Fixed config file parser file reading on Windows
Branch: master
https://github.com/mongodb/mongo/commit/d42628ece83ebf3a6b340ae8c894e45a2c2ec9b9

Generated at Thu Feb 08 03:23:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.