[SERVER-20750] geo_axis_aligned.js fails writing a sample to FTDC Created: 02/Oct/15  Updated: 05/Feb/16  Resolved: 08/Oct/15

Status: Closed
Project: Core Server
Component/s: Diagnostics
Affects Version/s: None
Fix Version/s: 3.1.9

Type: Bug Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Minor Change
Operating System: ALL
Sprint: Platform A (10/09/15)
Participants:

 Description   

Drew already knows about this failure, but want to make sure it's logged for tracking.

TASK

TASK HISTORY

	
[MongoDFixture:job0] 2015-10-01T18:40:04.073+0000 I CONTROL  [ftdc] *** C runtime error: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\vector(1201) : Assertion failed: vector subscript out of range, terminating
[MongoDFixture:job0] 2015-10-01T18:40:04.073+0000 I -        [ftdc] Fatal Assertion 17006
[MongoDFixture:job0] 2015-10-01T18:40:04.073+0000 I CONTROL  [ftdc] *** unhandled exception 0x80000003 at 0x000007FEFCDA33B2, terminating
[MongoDFixture:job0] 2015-10-01T18:40:04.073+0000 I CONTROL  [ftdc] *** stack trace for unhandled exception:
[MongoDFixture:job0] 2015-10-01T18:40:04.802+0000 I CONTROL  [ftdc] KERNELBASE.dll                                                                                   DebugBreak+0x2
[MongoDFixture:job0] 2015-10-01T18:40:04.803+0000 I CONTROL  [ftdc] mongod.exe      ...\src\mongo\util\assert_util.cpp(171)                                          mongo::fassertFailed+0xce
[MongoDFixture:job0] 2015-10-01T18:40:04.803+0000 I CONTROL  [ftdc] mongod.exe      ...\src\mongo\util\stacktrace_windows.cpp(282)                                   mongo::crtDebugCallback+0x15f
[MongoDFixture:job0] 2015-10-01T18:40:04.803+0000 I CONTROL  [ftdc] mongod.exe      f:\dd\vctools\crt\crtw32\misc\dbgrptt.c(609)                                     _VCrtDbgReportW+0x7c1
[MongoDFixture:job0] 2015-10-01T18:40:04.803+0000 I CONTROL  [ftdc] mongod.exe      f:\dd\vctools\crt\crtw32\misc\dbgrpt.c(263)                                      _CrtDbgReportWV+0x50
[MongoDFixture:job0] 2015-10-01T18:40:04.803+0000 I CONTROL  [ftdc] mongod.exe      f:\dd\vctools\crt\crtw32\misc\dbgrpt.c(279)                                      _CrtDbgReportW+0x60
[MongoDFixture:job0] 2015-10-01T18:40:04.803+0000 I CONTROL  [ftdc] mongod.exe      f:\dd\vctools\crt\crtw32\stdcpp\stdthrow.cpp(13)                                 std::_Debug_message+0x40
[MongoDFixture:job0] 2015-10-01T18:40:04.803+0000 I CONTROL  [ftdc] mongod.exe      c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(1202)      std::vector<unsigned __int64,std::allocator<unsigned __int64> >::operator[]+0x3a
[MongoDFixture:job0] 2015-10-01T18:40:04.803+0000 I CONTROL  [ftdc] mongod.exe      ...\src\mongo\db\ftdc\compressor.cpp(82)                                         mongo::FTDCCompressor::addSample+0x32b
[MongoDFixture:job0] 2015-10-01T18:40:04.803+0000 I CONTROL  [ftdc] mongod.exe      ...\src\mongo\db\ftdc\file_writer.cpp(149)                                       mongo::FTDCFileWriter::writeSample+0x4b
[MongoDFixture:job0] 2015-10-01T18:40:04.803+0000 I CONTROL  [ftdc] mongod.exe      ...\src\mongo\db\ftdc\file_manager.cpp(284)                                      mongo::FTDCFileManager::writeSampleAndRotateIfNeeded+0x42
[MongoDFixture:job0] 2015-10-01T18:40:04.803+0000 I CONTROL  [ftdc] mongod.exe      ...\src\mongo\db\ftdc\controller.cpp(199)                                        mongo::FTDCController::doLoop+0x373
[MongoDFixture:job0] 2015-10-01T18:40:04.803+0000 I CONTROL  [ftdc] mongod.exe      c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread(188)  std::_LaunchPad<std::_Bind<1,void * __ptr64,void * __ptr64 (__cdecl*const)(void * __ptr64),nspr::Thread * __ptr64> >::_Go+0x1c
[MongoDFixture:job0] 2015-10-01T18:40:04.803+0000 I CONTROL  [ftdc] mongod.exe      f:\dd\vctools\crt\crtw32\stdcpp\thr\threadcall.cpp(28)                           _Call_func+0x29
[MongoDFixture:job0] 2015-10-01T18:40:04.803+0000 I CONTROL  [ftdc] mongod.exe      f:\dd\vctools\crt\crtw32\startup\threadex.c(376)                                 _callthreadstartex+0x25
[MongoDFixture:job0] 2015-10-01T18:40:04.803+0000 I CONTROL  [ftdc] mongod.exe      f:\dd\vctools\crt\crtw32\startup\threadex.c(359)                                 _threadstartex+0xe7
[MongoDFixture:job0] 2015-10-01T18:40:04.803+0000 I CONTROL  [ftdc] kernel32.dll                                                                                     BaseThreadInitThunk+0xd
[MongoDFixture:job0] 2015-10-01T18:40:04.803+0000 I -        [ftdc]
[MongoDFixture:job0] 2015-10-01T18:40:04.804+0000 I CONTROL  [ftdc] writing minidump diagnostic file C:\data\mci\src\mongod.2015-10-01T18-40-04.mdmp



 Comments   
Comment by Githook User [ 02/Oct/15 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: SERVER-20750 Require at least one delta sample in each chunk
Branch: master
https://github.com/mongodb/mongo/commit/1fd64cee88562e77883db5b75ee666a55b15e748

Comment by Andrew Morrow (Inactive) [ 02/Oct/15 ]

The issue is actually that the prior test, ftdc_params, sets the maximum number of samples per chunk to 1. However, in the fix for SERVER-20453, we made it so that so the number of deltas is computed as one less than this value. Effectively, that meant that the number of expected delta encoded samples was zero, which the compressor.cpp code was not prepared to handle.

Rather than refactoring the code to handle this edge case, for now we can just restrict the minimum number of samples to be two.

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