[SERVER-11056] authorization_manager_test:testAcquireV2User failing on OS X Created: 06/Oct/13  Updated: 11/Jul/16  Resolved: 08/Oct/13

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

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

Issue Links:
Depends
is depended on by SERVER-11074 Assertion Failure when creating a use... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Failing on the MCI OSX builders:

http://mci.10gen.com/ui/task/mongodb_mongo_master_osx_108_4de73d9215a0a72424d65b6dac0d0d295ee88e35_13_10_06_20_28_14_compile
http://mci.10gen.com/ui/task/mongodb_mongo_master_osx_108_debug_4de73d9215a0a72424d65b6dac0d0d295ee88e35_13_10_06_20_28_14_compile

log: http://buildlogs.mongodb.org/mci_0.9_osx_108/builds/1124/test/smokeCppUnitTests_0/authorization_manager_test

"std::exception: BSONElement: bad type 101 in test testAcquireV2User"

2013-10-06T17:08:42.931-0400 	 going to run test: testAcquireV2User
2013-10-06T17:08:42.931-0400 Assertion: 10320:BSONElement: bad type 101
2013-10-06T17:08:42.932-0400 0x10b15ec3b 0x10b15cfa2 0x10b15a5ff 0x10b0a8528 0x10b0e1e96 0x10b0d2b37 0x10b0bc108 0x10b0bc2ad 0x10b0bbf79 0x10b0bbcbd 0x10b0d8f59 0x10b0d043a 0x10b09e653 0x10b155cbb 0x10b094b30 0x10b156bdb 0x10b15778c 0x10b159472 0x7fff923ed7e1 0x1 
 0   authorization_manager_test          0x000000010b15ec3b _ZN5mongo15printStackTraceERSo + 43
 1   authorization_manager_test          0x000000010b15cfa2 _ZN5mongo10logContextEPKc + 114
 2   authorization_manager_test          0x000000010b15a5ff _ZN5mongo11msgassertedEiPKc + 255
 3   authorization_manager_test          0x000000010b0a8528 _ZNK5mongo11BSONElement4sizeEv + 664
 4   authorization_manager_test          0x000000010b0e1e96 _ZN5mongo14BSONObjBuilder8appendAsERKNS_11BSONElementERKNS_10StringDataE + 118
 5   authorization_manager_test          0x000000010b0d2b37 _ZN5mongo16BSONArrayBuilder6appendERKNS_11BSONElementE + 83
 6   authorization_manager_test          0x000000010b0bc108 _ZNK5mongo11mutablebson7Element12writeElementINS_16BSONArrayBuilderEEEvPT_PKNS_10StringDataE + 202
 7   authorization_manager_test          0x000000010b0bc2ad _ZNK5mongo11mutablebson7Element13writeChildrenINS_16BSONArrayBuilderEEEvPT_ + 73
 8   authorization_manager_test          0x000000010b0bbf79 _ZNK5mongo11mutablebson7Element12writeElementINS_14BSONObjBuilderEEEvPT_PKNS_10StringDataE + 587
 9   authorization_manager_test          0x000000010b0bbcbd _ZNK5mongo11mutablebson7Element13writeChildrenINS_14BSONObjBuilderEEEvPT_ + 75
 10  authorization_manager_test          0x000000010b0d8f59 _ZN5mongo29AuthzManagerExternalStateMock18getUserDescriptionERKNS_8UserNameEPNS_7BSONObjE + 4631
 11  authorization_manager_test          0x000000010b0d043a _ZN5mongo20AuthorizationManager11acquireUserERKNS_8UserNameEPPNS_4UserE + 962
 12  authorization_manager_test          0x000000010b09e653 _ZN5mongo12_GLOBAL__N_153UnitTest__AuthorizationManagerTest__testAcquireV2User7_doTestEv + 4181
 13  authorization_manager_test          0x000000010b155cbb _ZN5mongo8unittest4Test3runEv + 33
 14  authorization_manager_test          0x000000010b094b30 _ZN5mongo8unittest5Suite13runTestObjectINS_12_GLOBAL__N_153UnitTest__AuthorizationManagerTest__testAcquireV2UserEEEvv + 48
 15  authorization_manager_test          0x000000010b156bdb _ZN5mongo8unittest5Suite3runERKSsi + 1275
 16  authorization_manager_test          0x000000010b15778c _ZN5mongo8unittest5Suite3runERKSt6vectorISsSaISsEERKSsi + 1424
 17  authorization_manager_test          0x000000010b159472 main + 114
 18  libdyld.dylib                       0x00007fff923ed7e1 start + 0
 19  ???                                 0x0000000000000001 0x0 + 1
2013-10-06T17:08:42.932-0400 FAIL: testAcquireV2User	 std::exception: BSONElement: bad type 101 in test testAcquireV2User



 Comments   
Comment by auto [ 08/Oct/13 ]

Author:

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

Message: SERVER-11056 Fix unused variable warning in non-debug build
Branch: master
https://github.com/mongodb/mongo/commit/d685bf21a23a0e2b4ae5dfcf83662d86319ef42a

Comment by auto [ 08/Oct/13 ]

Author:

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

Message: SERVER-11056 Don't assume address uniqueness for detecting root element instantiation
Branch: master
https://github.com/mongodb/mongo/commit/d1677de5267ca8a289eb6f53297978fa36fbed58

Comment by Andrew Morrow (Inactive) [ 08/Oct/13 ]

FYI I'm now able to repro locally. I installed XCode-4.6.3 on the side. It takes a little searching for how to invoke GCC in that mode, but for the record, assuming that you installed into /Applications/XCode-4.6.3:

scons -j10 --mute --cache --cc=/Applications/Xcode-4.6.3.app/Contents/Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2 --cxx=/Applications/Xcode-4.6.3.app/Contents/Developer/usr/llvm-gcc-4.2/bin/llvm-g++-4.2 --dbg=on --opt=on --allocator=system ./build/unittests/authorization_manager_test

Comment by Matt Kangas [ 07/Oct/13 ]

Update: spawnhost.py doesn't support OS X and can't, because it only spins up instances on EC2 and you can't run OS X on EC2.

Different failures are visible on the Buildbot OSX builders. Fortunately, we can access these hosts to repro failures.

OS X 10.5 64-bit Build #5801 failing on dumpauth.js

 m31000| 2013-10-07T15:10:46.166-0400 [conn1] insert admin.tool_dumpauth.testcol ninserted:1 keyUpdates:0  321ms
 m31000| 2013-10-07T15:10:46.173-0400 [conn1] Attempting to lock user data for: Create user
 m31000| 2013-10-07T15:10:46.174-0400 [conn1] Assertion failure !e.eoo() src/mongo/bson/bsonobjbuilder.h 92
 m31000| 2013-10-07T15:10:46.181-0400 [conn1] 0x1005f055b 0x1005b2b02 0x1005a40a2 0x10003e015 0x10006403b 0x10002ea08 0x10002ebad 0x10002e879 0x10002e5bd 0x1000c7444 0x1000b5f4f 0x100176705 0x1001a3865 0x1001a4616 0x1001a524c 0x1002f328e 0x1002f3d7d 0x100288c2a 0x1000079c4 0x1005bfcf1 
 m31000|  0   mongod                              0x00000001005f055b _ZN5mongo15printStackTraceERSo + 43
 m31000|  1   mongod                              0x00000001005b2b02 _ZN5mongo10logContextEPKc + 114
 m31000|  2   mongod                              0x00000001005a40a2 _ZN5mongo12verifyFailedEPKcS1_j + 274
 m31000|  3   mongod                              0x000000010003e015 _ZN5mongo14BSONObjBuilder8appendAsERKNS_11BSONElementERKNS_10StringDataE + 325
 m31000|  4   mongod                              0x000000010006403b _ZN5mongo16BSONArrayBuilder6appendERKNS_11BSONElementE + 83
 m31000|  5   mongod                              0x000000010002ea08 _ZNK5mongo11mutablebson7Element12writeElementINS_16BSONArrayBuilderEEEvPT_PKNS_10StringDataE + 202
 m31000|  6   mongod                              0x000000010002ebad _ZNK5mongo11mutablebson7Element13writeChildrenINS_16BSONArrayBuilderEEEvPT_ + 73
 m31000|  7   mongod                              0x000000010002e879 _ZNK5mongo11mutablebson7Element12writeElementINS_14BSONObjBuilderEEEvPT_PKNS_10StringDataE + 587
 m31000|  8   mongod                              0x000000010002e5bd _ZNK5mongo11mutablebson7Element13writeChildrenINS_14BSONObjBuilderEEEvPT_ + 75
 m31000|  9   mongod                              0x00000001000c7444 _ZN5mongo31AuthzManagerExternalStateMongod18getRoleDescriptionERKNS_8RoleNameEPNS_7BSONObjE + 1912
 m31000|  10  mongod                              0x00000001000b5f4f _ZN5mongo20AuthorizationManager18getRoleDescriptionERKNS_8RoleNameEPNS_7BSONObjE + 27
 m31000|  11  mongod                              0x0000000100176705 _ZN5mongo13CmdCreateUser3runERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb + 2831
 m31000|  12  mongod                              0x00000001001a3865 _ZN5mongo12_execCommandEPNS_7CommandERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb + 37
 m31000|  13  mongod                              0x00000001001a4616 _ZN5mongo7Command11execCommandEPS0_RNS_6ClientEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb + 1920
 m31000|  14  mongod                              0x00000001001a524c _ZN5mongo12_runCommandsEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi + 1388
 m31000|  15  mongod                              0x00000001002f328e _ZN5mongo11runCommandsEPKcRNS_7BSONObjERNS_5CurOpERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi + 46
 m31000|  16  mongod                              0x00000001002f3d7d _ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1_ + 2301
 m31000|  17  mongod                              0x0000000100288c2a _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE + 1818
 m31000|  18  mongod                              0x00000001000079c4 _ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE + 308
 m31000|  19  mongod                              0x00000001005bfcf1 _ZN5mongo17PortMessageServer17handleIncomingMsgEPv + 1825

Nightly OS X 10.5 64-bit Build #1468 failed on sharding_passthrough: auth_copydb2.js

 m30000| 2013-10-07T07:13:50.287-0400 [conn4] Assertion: 10320:BSONElement: bad type 99
 m30000| 2013-10-07T07:13:50.297-0400 [conn4] 0x1005ec99b 0x1005af372 0x1005a064f 0x1000310e8 0x10003e246 0x10006433b 0x10002ed08 0x10002eead 0x10002eb79 0x10002e8bd 0x1000c7744 0x1000b624f 0x100188b42 0x1001a3b65 0x1001a4916 0x1001a554c 0x1002f31ce 0x1002f3cbd 0x100288b6a 0x100007cd4 
 m30000|  0   mongod                              0x00000001005ec99b _ZN5mongo15printStackTraceERSo + 43
 m30000|  1   mongod                              0x00000001005af372 _ZN5mongo10logContextEPKc + 114
 m30000|  2   mongod                              0x00000001005a064f _ZN5mongo11msgassertedEiPKc + 255
 m30000|  3   mongod                              0x00000001000310e8 _ZNK5mongo11BSONElement4sizeEv + 664
 m30000|  4   mongod                              0x000000010003e246 _ZN5mongo14BSONObjBuilder8appendAsERKNS_11BSONElementERKNS_10StringDataE + 118
 m30000|  5   mongod                              0x000000010006433b _ZN5mongo16BSONArrayBuilder6appendERKNS_11BSONElementE + 83
 m30000|  6   mongod                              0x000000010002ed08 _ZNK5mongo11mutablebson7Element12writeElementINS_16BSONArrayBuilderEEEvPT_PKNS_10StringDataE + 202
 m30000|  7   mongod                              0x000000010002eead _ZNK5mongo11mutablebson7Element13writeChildrenINS_16BSONArrayBuilderEEEvPT_ + 73
 m30000|  8   mongod                              0x000000010002eb79 _ZNK5mongo11mutablebson7Element12writeElementINS_14BSONObjBuilderEEEvPT_PKNS_10StringDataE + 587
 m30000|  9   mongod                              0x000000010002e8bd _ZNK5mongo11mutablebson7Element13writeChildrenINS_14BSONObjBuilderEEEvPT_ + 75
 m30000|  10  mongod                              0x00000001000c7744 _ZN5mongo31AuthzManagerExternalStateMongod18getRoleDescriptionERKNS_8RoleNameEPNS_7BSONObjE + 1912
 m30000|  11  mongod                              0x00000001000b624f _ZN5mongo20AuthorizationManager18getRoleDescriptionERKNS_8RoleNameEPNS_7BSONObjE + 27
 m30000|  12  mongod                              0x0000000100188b42 _ZN5mongo12CmdRolesInfo3runERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb + 398
 m30000|  13  mongod                              0x00000001001a3b65 _ZN5mongo12_execCommandEPNS_7CommandERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb + 37
 m30000|  14  mongod                              0x00000001001a4916 _ZN5mongo7Command11execCommandEPS0_RNS_6ClientEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb + 1920
 m30000|  15  mongod                              0x00000001001a554c _ZN5mongo12_runCommandsEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi + 1388
 m30000|  16  mongod                              0x00000001002f31ce _ZN5mongo11runCommandsEPKcRNS_7BSONObjERNS_5CurOpERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi + 46
 m30000|  17  mongod                              0x00000001002f3cbd _ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1_ + 2301
 m30000|  18  mongod                              0x0000000100288b6a _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE + 1818
 m30000|  19  mongod                              0x0000000100007cd4 _ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE + 308

Comment by Matt Kangas [ 07/Oct/13 ]

Initial diagnosis by Andy and Drew: they are not able to repro on their Macs with newer compilers, so we will have to spin up an older Mac or use MCI spawnhost.py.

I'm hitting some speed bumps with spawnhost.py (see MCI-741), will try to make progress on that path.

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