-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Diagnostics
-
Fully Compatible
-
ALL
-
-
Platforms 11 (03/11/16)
Running the varint_test under UBSAN generates the following error:
src/mongo/db/ftdc/varint_test.cpp:70:19: runtime error: left shift of 286331153 by 4 places cannot be represented in type 'int' #0 0x60d4c1 in mongo::UnitTest__FTDCVarIntTest__TestIntCompression::_doTest() /home/andrew/Documents/10gen/dev/src/mongodb/src/mongo/db/ftdc/varint_test.cpp:70:17 #1 0x67e188 in mongo::unittest::Test::run() /home/andrew/Documents/10gen/dev/src/mongodb/src/mongo/unittest/unittest.cpp:147:9 #2 0x60e5e3 in void mongo::unittest::Suite::runTestObject<mongo::UnitTest__FTDCVarIntTest__TestIntCompression>() /home/andrew/Documents/10gen/dev/src/mongodb/src/mongo/unittest/unittest.h:405:9 #3 0x67f91d in mongo::unittest::TestHolder::run() const /home/andrew/Documents/10gen/dev/src/mongodb/src/mongo/unittest/unittest.h:257:9 #4 0x67f91d in mongo::unittest::Suite::run(std::string const&, int) /home/andrew/Documents/10gen/dev/src/mongodb/src/mongo/unittest/unittest.cpp:263 #5 0x680de7 in mongo::unittest::Suite::run(std::vector<std::string, std::allocator<std::string> > const&, std::string const&, int) /home/andrew/Documents/10gen/dev/src/mongodb/src/mongo/unittest/unittest.cpp:321:27 #6 0x686427 in main /home/andrew/Documents/10gen/dev/src/mongodb/src/mongo/unittest/unittest_main.cpp:40:12 #7 0x7f2da5949a3f in __libc_start_main /build/buildd/glibc-2.21/csu/libc-start.c:289 #8 0x5c60c8 in _start (/home/andrew/Documents/10gen/dev/src/mongodb/build/optdebug/mongo/db/ftdc/ftdc_test+0x5c60c8)