[SERVER-71421] Segmentation fault when starting with user pinning Created: 16/Nov/22  Updated: 29/Oct/23  Resolved: 24/Jan/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Spencer Jackson Assignee: Sara Golemon
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Documented
is documented by DOCS-15843 Investigate changes in SERVER-71421: ... Closed
Assigned Teams:
Server Security
Backwards Compatibility: Major Change
Operating System: ALL
Sprint: Security 2022-12-12, Security 2022-12-26, Security 2023-01-09, Security 2023-02-06
Participants:

 Description   

When starting with the following config file, my local server fails to start.

setParameter:
  authorizationManagerPinnedUsers: "admin.admin1192" 

Trace:

{"t":{"$date":"2022-11-16T20:00:27.273Z"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"main","msg":"Frame","attr":{"frame":{"a":"7F9A9B10AF19","b":"7F9A9AF50000","o":"1BAF19","s":"_ZN5mongo18stack_trace_detail12_GLOBAL__N_117getStackTraceImplERKNS1_7OptionsE","C":"mongo::stack_trace_detail::(anonymous namespace)::getStackTraceImpl(mongo::stack_trace_detail::(anonymous namespace)::Options const&)","s+":"129"}}}
{"t":{"$date":"2022-11-16T20:00:27.274Z"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"main","msg":"Frame","attr":{"frame":{"a":"7F9A9B10C1B0","b":"7F9A9AF50000","o":"1BC1B0","s":"_ZN5mongo15printStackTraceEv","C":"mongo::printStackTrace()","s+":"30"}}}
{"t":{"$date":"2022-11-16T20:00:27.274Z"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"main","msg":"Frame","attr":{"frame":{"a":"7F9A9B107AE7","b":"7F9A9AF50000","o":"1B7AE7","s":"abruptQuitWithAddrSignal","s+":"197"}}}
{"t":{"$date":"2022-11-16T20:00:27.274Z"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"main","msg":"Frame","attr":{"frame":{"a":"7F9A994A7980","b":"7F9A99495000","o":"12980","s":"funlockfile","s+":"50"}}}
{"t":{"$date":"2022-11-16T20:00:27.274Z"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"main","msg":"Frame","attr":{"frame":{"a":"7F9A8F7F8989","b":"7F9A8F7AE000","o":"4A989","s":"_ZN9__gnu_cxx5__ops10_Iter_predIZN5mongo12_GLOBAL__N_122PinnedUserSetParameter19_checkForSystemUserERKSt6vectorINS2_8UserNameESaIS6_EEEUlRKS6_E_EclINS_17__normal_iteratorIPSB_S8_EEEEbT_","C":"bool __gnu_cxx::__ops::_Iter_pred<mongo::(anonymous namespace)::PinnedUserSetParameter::_checkForSystemUser(std::vector<mongo::UserName, std::allocator<mongo::UserName> > const&)::{lambda(mongo::UserName const&)#1}>::operator()<__gnu_cxx::__normal_iterator<mongo::UserName const*, std::vector<mongo::UserName, std::allocator<mongo::UserName> > > >(__gnu_cxx::__normal_iterator<mongo::UserName const*, std::vector<mongo::UserName, std::allocator<mongo::UserName> > >)","s+":"69"}}}
{"t":{"$date":"2022-11-16T20:00:27.274Z"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"main","msg":"Frame","attr":{"frame":{"a":"7F9A8F7F88B9","b":"7F9A8F7AE000","o":"4A8B9","s":"_ZN5mongo12_GLOBAL__N_122PinnedUserSetParameter19_checkForSystemUserERKSt6vectorINS_8UserNameESaIS3_EE","C":"mongo::(anonymous namespace)::PinnedUserSetParameter::_checkForSystemUser(std::vector<mongo::UserName, std::allocator<mongo::UserName> > const&)","s+":"149"}}}
{"t":{"$date":"2022-11-16T20:00:27.274Z"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"main","msg":"Frame","attr":{"frame":{"a":"7F9A8F7ED646","b":"7F9A8F7AE000","o":"3F646","s":"_ZN5mongo12_GLOBAL__N_122PinnedUserSetParameter13setFromStringENS_10StringDataE","C":"mongo::(anonymous namespace)::PinnedUserSetParameter::setFromString(mongo::StringData)","s+":"306"}}}
{"t":{"$date":"2022-11-16T20:00:27.274Z"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"main","msg":"Frame","attr":{"frame":{"a":"7F9A8F7ED334","b":"7F9A8F7AE000","o":"3F334","s":"_ZN5mongo46AuthorizationManagerPinnedUsersServerParameter13setFromStringENS_10StringDataERKN5boost8optionalINS_8TenantIdEEE","C":"mongo::AuthorizationManagerPinnedUsersServerParameter::setFromString(mongo::StringData, boost::optional<mongo::TenantId> const&)","s+":"14"}}}

It seems likely that internalSecurity hasn't been populated at this point in system startup.



 Comments   
Comment by Githook User [ 24/Jan/23 ]

Author:

{'name': 'Sara Golemon', 'email': 'sara.golemon@mongodb.com', 'username': 'sgolemon'}

Message: SERVER-71421 Remove pinnedUsers
Branch: master
https://github.com/mongodb/mongo/commit/4d3fe1a38b6c5a4113ee011440d27c5520c49a2c

Generated at Thu Feb 08 06:18:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.