-
Type: Task
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Sharding NYC
-
3
Repro: jstests/sharding/data_size_aware_balancing_sessions_collection.js
[js_test:data_size_aware_balancing_sessions_collection] d20040| !!!! checkForInterrupt 0x61500000ee00 [js_test:data_size_aware_balancing_sessions_collection] d20040| ================================================================= [js_test:data_size_aware_balancing_sessions_collection] d20040| ==11183==ERROR: AddressSanitizer: heap-use-after-free on address 0x61500000ee00 at pc 0x7f2ef1dac379 bp 0x7f2ea02deb30 sp 0x7f2ea02deb28 [js_test:data_size_aware_balancing_sessions_collection] d20040| READ of size 8 at 0x61500000ee00 thread T86 (conn15) [js_test:data_size_aware_balancing_sessions_collection] d20040| #0 0x7f2ef1dac378 in mongo::Interruptible::checkForInterrupt() /home/ubuntu/mongo/src/mongo/util/interruptible.h:331:16 [js_test:data_size_aware_balancing_sessions_collection] d20040| #1 0x7f2ef20d7c0c in mongo::ExpressionContext::checkForInterrupt() /home/ubuntu/mongo/src/mongo/db/pipeline/expression_context.h:169:13 [js_test:data_size_aware_balancing_sessions_collection] d20040| #2 0x7f2ef20d7c0c in mongo::DocumentSource::getNext() /home/ubuntu/mongo/src/mongo/db/pipeline/document_source.h:354 [js_test:data_size_aware_balancing_sessions_collection] d20040| #3 0x7f2ee71be333 in mongo::DocumentSourceSingleDocumentTransformation::doGetNext() /home/ubuntu/mongo/src/mongo/db/pipeline/document_source_single_document_transformation.cpp:66:27 [js_test:data_size_aware_balancing_sessions_collection] d20040| #4 0x7f2ef20d7c93 in mongo::DocumentSource::getNext() /home/ubuntu/mongo/src/mongo/db/pipeline/document_source.h:357:20 [js_test:data_size_aware_balancing_sessions_collection] d20040| #5 0x7f2ee72a9667 in mongo::Pipeline::getNext() /home/ubuntu/mongo/src/mongo/db/pipeline/pipeline.cpp:499:40 [js_test:data_size_aware_balancing_sessions_collection] d20040| #6 0x7f2ee7276d83 in mongo::DocumentSourceUnionWith::doGetNext() /home/ubuntu/mongo/src/mongo/db/pipeline/document_source_union_with.cpp:245:27 [js_test:data_size_aware_balancing_sessions_collection] d20040| #7 0x7f2ef20d7c93 in mongo::DocumentSource::getNext() /home/ubuntu/mongo/src/mongo/db/pipeline/document_source.h:357:20 [js_test:data_size_aware_balancing_sessions_collection] d20040| #8 0x7f2ee72767d3 in mongo::DocumentSourceUnionWith::doGetNext() /home/ubuntu/mongo/src/mongo/db/pipeline/document_source_union_with.cpp:214:35 [js_test:data_size_aware_balancing_sessions_collection] d20040| #9 0x7f2ef20d7c93 in mongo::DocumentSource::getNext() /home/ubuntu/mongo/src/mongo/db/pipeline/document_source.h:357:20 [js_test:data_size_aware_balancing_sessions_collection] d20040| #10 0x7f2ee72a9667 in mongo::Pipeline::getNext() /home/ubuntu/mongo/src/mongo/db/pipeline/pipeline.cpp:499:40 [js_test:data_size_aware_balancing_sessions_collection] d20040| #11 0x7f2eeb785d42 in mongo::PlanExecutorPipeline::_tryGetNext() /home/ubuntu/mongo/src/mongo/db/pipeline/plan_executor_pipeline.cpp:130:23 [js_test:data_size_aware_balancing_sessions_collection] d20040| #12 0x7f2eeb785803 in mongo::PlanExecutorPipeline::_getNext() /home/ubuntu/mongo/src/mongo/db/pipeline/plan_executor_pipeline.cpp:118:20 [js_test:data_size_aware_balancing_sessions_collection] d20040| #13 0x7f2eeb784945 in mongo::PlanExecutorPipeline::getNextDocument(mongo::Document*, mongo::RecordId*) /home/ubuntu/mongo/src/mongo/db/pipeline/plan_executor_pipeline.cpp:100:21 [js_test:data_size_aware_balancing_sessions_collection] d20040| #14 0x7f2eeb784945 in mongo::PlanExecutorPipeline::getNext(mongo::BSONObj*, mongo::RecordId*) /home/ubuntu/mongo/src/mongo/db/pipeline/plan_executor_pipeline.cpp:79 [js_test:data_size_aware_balancing_sessions_collection] d20040| #15 0x7f2edad5ecdb in mongo::(anonymous namespace)::GetMoreCmd::Invocation::generateBatch(mongo::OperationContext*, mongo::ClientCursor*, mongo::GetMoreCommandRequest const&, bool, mongo::CursorResponseBuilder*, unsigned long*, mongo::ResourceConsumption::DocumentUnitCounter*) /home/ubuntu/mongo/src/mongo/db/commands/getmore_cmd.cpp:391:65 [js_test:data_size_aware_balancing_sessions_collection] d20040| #16 0x7f2edad5ecdb in mongo::(anonymous namespace)::GetMoreCmd::Invocation::acquireLocksAndIterateCursor(mongo::OperationContext*, mongo::rpc::ReplyBuilderInterface*, mongo::ClientCursorPin&, mongo::CurOp*) /home/ubuntu/mongo/src/mongo/db/commands/getmore_cmd.cpp:670 [js_test:data_size_aware_balancing_sessions_collection] d20040| #17 0x7f2edad57955 in mongo::(anonymous namespace)::GetMoreCmd::Invocation::run(mongo::OperationContext*, mongo::rpc::ReplyBuilderInterface*) /home/ubuntu/mongo/src/mongo/db/commands/getmore_cmd.cpp:783:13 [js_test:data_size_aware_balancing_sessions_collection] d20040| #18 0x7f2ee3cf2bc3 in mongo::CommandHelpers::runCommandInvocation(mongo::OperationContext*, mongo::OpMsgRequest const&, mongo::CommandInvocation*, mongo::rpc::ReplyBuilderInterface*) /home/ubuntu/mongo/src/mongo/db/commands.cpp:181:17 [js_test:data_size_aware_balancing_sessions_collection] d20040| #19 0x7f2ee3cf2bc3 in mongo::CommandHelpers::runCommandInvocation(std::shared_ptr<mongo::RequestExecutionContext>, std::shared_ptr<mongo::CommandInvocation>, bool)::$_0::operator()() const /home/ubuntu/mongo/src/mongo/db/commands.cpp:166 [js_test:data_size_aware_balancing_sessions_collection] d20040| #20 0x7f2ee3cf2bc3 in mongo::Future<mongo::future_details::UnwrappedTypeImpl<std::invoke_result<mongo::CommandHelpers::runCommandInvocation(std::shared_ptr<mongo::RequestExecutionContext>, std::shared_ptr<mongo::CommandInvocation>, bool)::$_0&&>::type>::type> mongo::makeReadyFutureWith<mongo::CommandHelpers::runCommandInvocation(std::shared_ptr<mongo::RequestExecutionContext>, std::shared_ptr<mongo::CommandInvocation>, bool)::$_0, 0>(mongo::CommandHelpers::runCommandInvocation(std::shared_ptr<mongo::RequestExecutionContext>, std::shared_ptr<mongo::CommandInvocation>, bool)::$_0&&) /home/ubuntu/mongo/src/mongo/util/future.h:1349 [js_test:data_size_aware_balancing_sessions_collection] d20040| #21 0x7f2ee3cf2bc3 in mongo::CommandHelpers::runCommandInvocation(std::shared_ptr<mongo::RequestExecutionContext>, std::shared_ptr<mongo::CommandInvocation>, bool) /home/ubuntu/mongo/src/mongo/db/commands.cpp:162 [js_test:data_size_aware_balancing_sessions_collection] d20040| #22 0x7f2edf574871 in mongo::(anonymous namespace)::runCommandInvocation(std::shared_ptr<mongo::RequestExecutionContext>, std::shared_ptr<mongo::CommandInvocation>) /home/ubuntu/mongo/src/mongo/db/service_entry_point_common.cpp:156:12 [js_test:data_size_aware_balancing_sessions_collection] d20040| #23 0x7f2edf5651a6 in mongo::(anonymous namespace)::InvokeCommand::run()::$_1::operator()() const /home/ubuntu/mongo/src/mongo/db/service_entry_point_common.cpp:840:23 [js_test:data_size_aware_balancing_sessions_collection] d20040| #24 0x7f2edf5651a6 in mongo::Future<mongo::future_details::UnwrappedTypeImpl<std::invoke_result<mongo::(anonymous namespace)::InvokeCommand::run()::$_1&&>::type>::type> mongo::makeReadyFutureWith<mongo::(anonymous namespace)::InvokeCommand::run()::$_1, 0>(mongo::(anonymous namespace)::InvokeCommand::run()::$_1&&) /home/ubuntu/mongo/src/mongo/util/future.h:1352 [js_test:data_size_aware_balancing_sessions_collection] d20040| #25 0x7f2edf5651a6 in mongo::(anonymous namespace)::InvokeCommand::run() /home/ubuntu/mongo/src/mongo/db/service_entry_point_common.cpp:833 [js_test:data_size_aware_balancing_sessions_collection] d20040| #26 0x7f2edf5651a6 in auto mongo::(anonymous namespace)::RunCommandImpl::_runCommand()::$_11::operator()<mongo::(anonymous namespace)::InvokeCommand>(mongo::(anonymous namespace)::InvokeCommand*) const /home/ubuntu/mongo/src/mongo/db/service_entry_point_common.cpp:1251 [js_test:data_size_aware_balancing_sessions_collection] d20040| #27 0x7f2edf5651a6 in auto mongo::future_util::AsyncState<mongo::(anonymous namespace)::InvokeCommand>::thenWithState<mongo::(anonymous namespace)::RunCommandImpl::_runCommand()::$_11>(mongo::(anonymous namespace)::RunCommandImpl::_runCommand()::$_11&&) &&::'lambda'()::operator()() const /home/ubuntu/mongo/src/mongo/util/future_util.h:827 [js_test:data_size_aware_balancing_sessions_collection] d20040| #28 0x7f2edf5651a6 in mongo::Future<mongo::future_details::UnwrappedTypeImpl<std::invoke_result<mongo::(anonymous namespace)::RunCommandImpl::_runCommand()::$_11&&>::type>::type> mongo::makeReadyFutureWith<auto mongo::future_util::AsyncState<mongo::(anonymous namespace)::InvokeCommand>::thenWithState<mongo::(anonymous namespace)::RunCommandImpl::_runCommand()::$_11>(mongo::(anonymous namespace)::RunCommandImpl::_runCommand()::$_11&&) &&::'lambda'(), 0>(mongo::(anonymous namespace)::RunCommandImpl::_runCommand()::$_11&&) /home/ubuntu/mongo/src/mongo/util/future.h:1352 [js_test:data_size_aware_balancing_sessions_collection] d20040| #29 0x7f2edf5651a6 in auto mongo::future_util::AsyncState<mongo::(anonymous namespace)::InvokeCommand>::thenWithState<mongo::(anonymous namespace)::RunCommandImpl::_runCommand()::$_11>(mongo::(anonymous namespace)::RunCommandImpl::_runCommand()::$_11&&) && /home/ubuntu/mongo/src/mongo/util/future_util.h:826 [js_test:data_size_aware_balancing_sessions_collection] d20040| #30 0x7f2edf5651a6 in mongo::(anonymous namespace)::RunCommandImpl::_runCommand() /home/ubuntu/mongo/src/mongo/db/service_entry_point_common.cpp:1250 [js_test:data_size_aware_balancing_sessions_collection] d20040| #31 0x7f2edf560658 in mongo::(anonymous namespace)::RunCommandAndWaitForWriteConcern::_runCommandWithFailPoint() /home/ubuntu/mongo/src/mongo/db/service_entry_point_common.cpp:1361:28 [js_test:data_size_aware_balancing_sessions_collection] d20040| #32 0x7f2edf560658 in mongo::(anonymous namespace)::RunCommandAndWaitForWriteConcern::_runImpl() /home/ubuntu/mongo/src/mongo/db/service_entry_point_common.cpp:1282 [js_test:data_size_aware_balancing_sessions_collection] d20040| #33 0x7f2edf584f62 in mongo::(anonymous namespace)::RunCommandImpl::run()::'lambda'()::operator()() const /home/ubuntu/mongo/src/mongo/db/service_entry_point_common.cpp:719:27 [js_test:data_size_aware_balancing_sessions_collection] d20040| #34 0x7f2edf584f62 in mongo::Future<mongo::future_details::UnwrappedTypeImpl<std::invoke_result<mongo::(anonymous namespace)::RunCommandImpl::run()::'lambda'()&&>::type>::type> mongo::makeReadyFutureWith<mongo::(anonymous namespace)::RunCommandImpl::run()::'lambda'(), 0>(mongo::(anonymous namespace)::RunCommandImpl::run()::'lambda'()&&) /home/ubuntu/mongo/src/mongo/util/future.h:1352 [js_test:data_size_aware_balancing_sessions_collection] d20040| #35 0x7f2edf584f62 in mongo::(anonymous namespace)::RunCommandImpl::run() /home/ubuntu/mongo/src/mongo/db/service_entry_point_common.cpp:717 [js_test:data_size_aware_balancing_sessions_collection] d20040| #36 0x7f2edf552713 in auto mongo::(anonymous namespace)::ExecCommandDatabase::_commandExec()::$_16::operator()() const::'lambda'(auto*)::operator()<mongo::(anonymous namespace)::RunCommandAndWaitForWriteConcern>(auto*) const /home/ubuntu/mongo/src/mongo/db/service_entry_point_common.cpp:1746:51 [js_test:data_size_aware_balancing_sessions_collection] d20040| #37 0x7f2edf552713 in auto mongo::future_util::AsyncState<mongo::(anonymous namespace)::RunCommandAndWaitForWriteConcern>::thenWithState<mongo::(anonymous namespace)::ExecCommandDatabase::_commandExec()::$_16::operator()() const::'lambda'(auto*)>(auto&&) &&::'lambda'()::operator()() const /home/ubuntu/mongo/src/mongo/util/future_util.h:827 [js_test:data_size_aware_balancing_sessions_collection] d20040| #38 0x7f2edf552713 in mongo::Future<mongo::future_details::UnwrappedTypeImpl<std::invoke_result<auto&&>::type>::type> mongo::makeReadyFutureWith<auto mongo::future_util::AsyncState<mongo::(anonymous namespace)::RunCommandAndWaitForWriteConcern>::thenWithState<mongo::(anonymous namespace)::ExecCommandDatabase::_commandExec()::$_16::operator()() const::'lambda'(auto*)>(auto&&) &&::'lambda'(), 0>(auto&&) /home/ubuntu/mongo/src/mongo/util/future.h:1352 [js_test:data_size_aware_balancing_sessions_collection] d20040| #39 0x7f2edf552713 in auto mongo::future_util::AsyncState<mongo::(anonymous namespace)::RunCommandAndWaitForWriteConcern>::thenWithState<mongo::(anonymous namespace)::ExecCommandDatabase::_commandExec()::$_16::operator()() const::'lambda'(auto*)>(auto&&) && /home/ubuntu/mongo/src/mongo/util/future_util.h:826 [js_test:data_size_aware_balancing_sessions_collection] d20040| #40 0x7f2edf552713 in mongo::(anonymous namespace)::ExecCommandDatabase::_commandExec()::$_16::operator()() const /home/ubuntu/mongo/src/mongo/db/service_entry_point_common.cpp:1745 [js_test:data_size_aware_balancing_sessions_collection] d20040| #41 0x7f2edf552713 in mongo::(anonymous namespace)::ExecCommandDatabase::_commandExec() /home/ubuntu/mongo/src/mongo/db/service_entry_point_common.cpp:1753 [js_test:data_size_aware_balancing_sessions_collection] d20040| #42 0x7f2edf543421 in mongo::(anonymous namespace)::ExecCommandDatabase::run()::'lambda'()::operator()() const /home/ubuntu/mongo/src/mongo/db/service_entry_point_common.cpp:572:27 [js_test:data_size_aware_balancing_sessions_collection] d20040| #43 0x7f2edf543421 in mongo::Future<mongo::future_details::UnwrappedTypeImpl<std::invoke_result<mongo::(anonymous namespace)::ExecCommandDatabase::run()::'lambda'()&&>::type>::type> mongo::makeReadyFutureWith<mongo::(anonymous namespace)::ExecCommandDatabase::run()::'lambda'(), 0>(mongo::(anonymous namespace)::ExecCommandDatabase::run()::'lambda'()&&) /home/ubuntu/mongo/src/mongo/util/future.h:1352 [js_test:data_size_aware_balancing_sessions_collection] d20040| #44 0x7f2edf543421 in mongo::(anonymous namespace)::ExecCommandDatabase::run() /home/ubuntu/mongo/src/mongo/db/service_entry_point_common.cpp:570 [js_test:data_size_aware_balancing_sessions_collection] d20040| #45 0x7f2edf543421 in auto mongo::(anonymous namespace)::executeCommand(std::shared_ptr<mongo::(anonymous namespace)::HandleRequest::ExecutionContext>)::$_23::operator()()::'lambda'(auto*)::operator()<mongo::(anonymous namespace)::ExecCommandDatabase>(auto*) const /home/ubuntu/mongo/src/mongo/db/service_entry_point_common.cpp:2035 [js_test:data_size_aware_balancing_sessions_collection] d20040| #46 0x7f2edf543421 in auto mongo::future_util::AsyncState<mongo::(anonymous namespace)::ExecCommandDatabase>::thenWithState<mongo::(anonymous namespace)::executeCommand(std::shared_ptr<mongo::(anonymous namespace)::HandleRequest::ExecutionContext>)::$_23::operator()()::'lambda'(auto*)>(auto&&) &&::'lambda'()::operator()() const /home/ubuntu/mongo/src/mongo/util/future_util.h:827 [js_test:data_size_aware_balancing_sessions_collection] d20040| #47 0x7f2edf543421 in mongo::Future<mongo::future_details::UnwrappedTypeImpl<std::invoke_result<auto&&>::type>::type> mongo::makeReadyFutureWith<auto mongo::future_util::AsyncState<mongo::(anonymous namespace)::ExecCommandDatabase>::thenWithState<mongo::(anonymous namespace)::executeCommand(std::shared_ptr<mongo::(anonymous namespace)::HandleRequest::ExecutionContext>)::$_23::operator()()::'lambda'(auto*)>(auto&&) &&::'lambda'(), 0>(auto&&) /home/ubuntu/mongo/src/mongo/util/future.h:1352 [js_test:data_size_aware_balancing_sessions_collection] d20040| #48 0x7f2edf543421 in auto mongo::future_util::AsyncState<mongo::(anonymous namespace)::ExecCommandDatabase>::thenWithState<mongo::(anonymous namespace)::executeCommand(std::shared_ptr<mongo::(anonymous namespace)::HandleRequest::ExecutionContext>)::$_23::operator()()::'lambda'(auto*)>(auto&&) && /home/ubuntu/mongo/src/mongo/util/future_util.h:826 [js_test:data_size_aware_balancing_sessions_collection] d20040| #49 0x7f2edf543421 in mongo::(anonymous namespace)::executeCommand(std::shared_ptr<mongo::(anonymous namespace)::HandleRequest::ExecutionContext>)::$_23::operator()() /home/ubuntu/mongo/src/mongo/db/service_entry_point_common.cpp:2035 [js_test:data_size_aware_balancing_sessions_collection] d20040| #50 0x7f2edf543421 in auto mongo::future_details::call<mongo::(anonymous namespace)::executeCommand(std::shared_ptr<mongo::(anonymous namespace)::HandleRequest::ExecutionContext>)::$_23&>(mongo::(anonymous namespace)::executeCommand(std::shared_ptr<mongo::(anonymous namespace)::HandleRequest::ExecutionContext>)::$_23&, mongo::future_details::FakeVoid) /home/ubuntu/mongo/src/mongo/util/future_impl.h:296 [js_test:data_size_aware_balancing_sessions_collection] d20040| #51 0x7f2edf543421 in auto mongo::future_details::throwingCall<mongo::(anonymous namespace)::executeCommand(std::shared_ptr<mongo::(anonymous namespace)::HandleRequest::ExecutionContext>)::$_23&, mongo::future_details::FakeVoid>(mongo::(anonymous namespace)::executeCommand(std::shared_ptr<mongo::(anonymous namespace)::HandleRequest::ExecutionContext>)::$_23&, mongo::future_details::FakeVoid&&) /home/ubuntu/mongo/src/mongo/util/future_impl.h:349 [js_test:data_size_aware_balancing_sessions_collection] d20040| #52 0x7f2edf5a2933 in auto mongo::future_details::FutureImpl<mongo::future_details::FakeVoid>::then<mongo::CleanupFuturePolicy<false>, mongo::(anonymous namespace)::executeCommand(std::shared_ptr<mongo::(anonymous namespace)::HandleRequest::ExecutionContext>)::$_23, 0>(mongo::CleanupFuturePolicy<false>, mongo::(anonymous namespace)::executeCommand(std::shared_ptr<mongo::(anonymous namespace)::HandleRequest::ExecutionContext>)::$_23&&) &&::'lambda'()::operator()() const::'lambda'(mongo::future_details::SharedStateImpl<mongo::future_details::FakeVoid>*, mongo::future_details::SharedStateImpl<mongo::future_details::FakeVoid>*)::operator()(mongo::future_details::SharedStateImpl<mongo::future_details::FakeVoid>*, mongo::future_details::SharedStateImpl<mongo::future_details::FakeVoid>*) /home/ubuntu/mongo/src/mongo/util/future_impl.h:996:29 [js_test:data_size_aware_balancing_sessions_collection] d20040| #53 0x7f2edf5a2933 in mongo::future_details::FutureImpl<mongo::CleanupFuturePolicy<false> > mongo::future_details::FutureImpl<mongo::future_details::FakeVoid>::makeContinuation<void, auto mongo::future_details::FutureImpl<mongo::future_details::FakeVoid>::then<mongo::CleanupFuturePolicy<false>, mongo::(anonymous namespace)::executeCommand(std::shared_ptr<mongo::(anonymous namespace)::HandleRequest::ExecutionContext>)::$_23, 0>(mongo::CleanupFuturePolicy<false>, mongo::(anonymous namespace)::executeCommand(std::shared_ptr<mongo::(anonymous namespace)::HandleRequest::ExecutionContext>)::$_23&&) &&::'lambda'()::operator()() const::'lambda'(mongo::future_details::SharedStateImpl<mongo::future_details::FakeVoid>*, mongo::future_details::SharedStateImpl<mongo::future_details::FakeVoid>*)>(mongo::(anonymous namespace)::executeCommand(std::shared_ptr<mongo::(anonymous namespace)::HandleRequest::ExecutionContext>)::$_23&&)::'lambda'(mongo::future_details::SharedStateBase*)::operator()(mongo::future_details::SharedStateBase*) /home/ubuntu/mongo/src/mongo/util/future_impl.h:1327 [js_test:data_size_aware_balancing_sessions_collection] d20040| #54 0x7f2edf5a2933 in auto mongo::unique_function<void (mongo::future_details::SharedStateBase*)>::makeImpl<mongo::future_details::FutureImpl<mongo::CleanupFuturePolicy<false> > mongo::future_details::FutureImpl<mongo::future_details::FakeVoid>::makeContinuation<void, auto mongo::future_details::FutureImpl<mongo::future_details::FakeVoid>::then<mongo::CleanupFuturePolicy<false>, mongo::(anonymous namespace)::executeCommand(std::shared_ptr<mongo::(anonymous namespace)::HandleRequest::ExecutionContext>)::$_23, 0>(mongo::CleanupFuturePolicy<false>, mongo::(anonymous namespace)::executeCommand(std::shared_ptr<mongo::(anonymous namespace)::HandleRequest::ExecutionContext>)::$_23&&) &&::'lambda'()::operator()() const::'lambda'(mongo::future_details::SharedStateImpl<mongo::future_details::FakeVoid>*, mongo::future_details::SharedStateImpl<mongo::future_details::FakeVoid>*)>(mongo::(anonymous namespace)::executeCommand(std::shared_ptr<mongo::(anonymous namespace)::HandleRequest::ExecutionContext>)::$_23&&)::'lambda'(mongo::future_details::SharedStateBase*)>(mongo::CleanupFuturePolicy<false>&&)::SpecificImpl::call(mongo::future_details::SharedStateBase*&&) /home/ubuntu/mongo/src/mongo/util/functional.h:259
[js_test:data_size_aware_balancing_sessions_collection] d20040| 0x61500000ee00 is located 0 bytes inside of 488-byte region [0x61500000ee00,0x61500000efe8) [js_test:data_size_aware_balancing_sessions_collection] d20040| freed by thread T86 (conn15) here: [js_test:data_size_aware_balancing_sessions_collection] d20040| #0 0x5617c2cc4d75 in operator delete(void*, unsigned long) /data/mci/7a061276a1aa147679600a512115c2c0/toolchain-builder/tmp/build-llvm.sh-UjE/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:179:3 [js_test:data_size_aware_balancing_sessions_collection] d20040| #1 0x7f2eecb47b65 in std::unique_ptr<mongo::OperationContext, mongo::ServiceContext::OperationContextDeleter>::reset(mongo::OperationContext*) /opt/mongodbtoolchain/revisions/8498fdee8a1b656de6daa50c866c4acd1ae12208/stow/gcc-v3.EkI/lib/gcc/x86_64-mongodb-linux/8.5.0/../../../../include/c++/8.5.0/bits/unique_ptr.h:385:4 [js_test:data_size_aware_balancing_sessions_collection] d20040| #2 0x7f2eecb47b65 in mongo::transport::ServiceStateMachine::Impl::scheduleNewLoop(mongo::Status) /home/ubuntu/mongo/src/mongo/transport/service_state_machine.cpp:406 [js_test:data_size_aware_balancing_sessions_collection] d20040| #3 0x7f2eecb4a8be in mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&)::$_10::operator()(mongo::Status) const /home/ubuntu/mongo/src/mongo/transport/service_state_machine.cpp:454:13 [js_test:data_size_aware_balancing_sessions_collection] d20040| #4 0x7f2eecb4a8be in auto mongo::future_details::call<mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&)::$_10&>(mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&)::$_10&, mongo::StatusWith<mongo::future_details::FakeVoid>) /home/ubuntu/mongo/src/mongo/util/future_impl.h:301 [js_test:data_size_aware_balancing_sessions_collection] d20040| #5 0x7f2eecb4a8be in void mongo::future_details::FutureImpl<mongo::future_details::FakeVoid>::getAsync<mongo::CleanupFuturePolicy<false>, mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&)::$_10, 0>(mongo::CleanupFuturePolicy<false>, mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&)::$_10&&) &&::'lambda'(mongo::future_details::FakeVoid&&)::operator()(mongo::future_details::FakeVoid&&) const /home/ubuntu/mongo/src/mongo/util/future_impl.h:933 [js_test:data_size_aware_balancing_sessions_collection] d20040| #6 0x7f2eecb4a8be in auto mongo::future_details::FutureImpl<mongo::future_details::FakeVoid>::generalImpl<void mongo::future_details::FutureImpl<mongo::future_details::FakeVoid>::getAsync<mongo::CleanupFuturePolicy<false>, mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&)::$_10, 0>(mongo::CleanupFuturePolicy<false>, mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&)::$_10&&) &&::'lambda'(mongo::future_details::FakeVoid&&), void mongo::future_details::FutureImpl<mongo::future_details::FakeVoid>::getAsync<mongo::CleanupFuturePolicy<false>, mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&)::$_10, 0>(mongo::CleanupFuturePolicy<false>, mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&)::$_10&&) &&::'lambda'(mongo::Status&&), void mongo::future_details::FutureImpl<mongo::future_details::FakeVoid>::getAsync<mongo::CleanupFuturePolicy<false>, mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&)::$_10, 0>(mongo::CleanupFuturePolicy<false>, mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&)::$_10&&) &&::'lambda'()>(mongo::CleanupFuturePolicy<false>&&, mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&)::$_10&&, void mongo::future_details::FutureImpl<mongo::future_details::FakeVoid>::getAsync<mongo::CleanupFuturePolicy<false>, mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&)::$_10, 0>(mongo::CleanupFuturePolicy<false>, mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&)::$_10&&) &&::'lambda'()&&) /home/ubuntu/mongo/src/mongo/util/future_impl.h:1254 [js_test:data_size_aware_balancing_sessions_collection] d20040| #7 0x7f2eecb4a8be in void mongo::future_details::FutureImpl<mongo::future_details::FakeVoid>::getAsync<mongo::CleanupFuturePolicy<false>, mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&)::$_10, 0>(mongo::CleanupFuturePolicy<false>, mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&)::$_10&&) && /home/ubuntu/mongo/src/mongo/util/future_impl.h:931 [js_test:data_size_aware_balancing_sessions_collection] d20040| #8 0x7f2eecb4a8be in void mongo::Future<void>::getAsync<mongo::CleanupFuturePolicy<false>, mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&)::$_10, 0>(mongo::CleanupFuturePolicy<false>, mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&)::$_10&&) && /home/ubuntu/mongo/src/mongo/util/future.h:376 [js_test:data_size_aware_balancing_sessions_collection] d20040| #9 0x7f2eecb4a8be in void mongo::Future<void>::getAsync<mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&)::$_10, 0>(mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&)::$_10&&) && /home/ubuntu/mongo/src/mongo/util/future.h:550 [js_test:data_size_aware_balancing_sessions_collection] d20040| #10 0x7f2eecb4a8be in mongo::transport::ServiceStateMachine::Impl::startNewLoop(mongo::Status const&) /home/ubuntu/mongo/src/mongo/transport/service_state_machine.cpp:453 [js_test:data_size_aware_balancing_sessions_collection] d20040| #11 0x7f2eecb55a30 in mongo::transport::ServiceStateMachine::Impl::scheduleNewLoop(mongo::Status)::$_5::operator()(mongo::Status) const::'lambda'()::operator()() const /home/ubuntu/mongo/src/mongo/transport/service_state_machine.cpp:411:34 [js_test:data_size_aware_balancing_sessions_collection] d20040| #12 0x7f2eecb55a30 in void mongo::ClientStrand::run<mongo::transport::ServiceStateMachine::Impl::scheduleNewLoop(mongo::Status)::$_5::operator()(mongo::Status) const::'lambda'()>(mongo::transport::ServiceStateMachine::Impl::scheduleNewLoop(mongo::Status)::$_5::operator()(mongo::Status) const::'lambda'()) /home/ubuntu/mongo/src/mongo/db/client_strand.h:165 [js_test:data_size_aware_balancing_sessions_collection] d20040| #13 0x7f2eecb55a30 in mongo::transport::ServiceStateMachine::Impl::scheduleNewLoop(mongo::Status)::$_5::operator()(mongo::Status) const /home/ubuntu/mongo/src/mongo/transport/service_state_machine.cpp:411 [js_test:data_size_aware_balancing_sessions_collection] d20040| #14 0x7f2eecb55a30 in auto mongo::unique_function<void (mongo::Status)>::makeImpl<mongo::transport::ServiceStateMachine::Impl::scheduleNewLoop(mongo::Status)::$_5>(mongo::transport::ServiceStateMachine::Impl::scheduleNewLoop(mongo::Status)::$_5&&)::SpecificImpl::call(mongo::Status&&) /home/ubuntu/mongo/src/mongo/util/functional.h:259 [js_test:data_size_aware_balancing_sessions_collection] d20040| #15 0x7f2ee435a3c4 in mongo::unique_function<void (mongo::Status)>::operator()(mongo::Status) const /home/ubuntu/mongo/src/mongo/util/functional.h:217:22 [js_test:data_size_aware_balancing_sessions_collection] d20040| #16 0x7f2ee435a3c4 in mongo::transport::ServiceExecutorSynchronous::runOnDataAvailable(std::shared_ptr<mongo::transport::Session> const&, mongo::unique_function<void (mongo::Status)>)::$_5::operator()(mongo::Status) const /home/ubuntu/mongo/src/mongo/transport/service_executor_synchronous.cpp:165 [js_test:data_size_aware_balancing_sessions_collection] d20040| #17 0x7f2ee435a3c4 in auto mongo::unique_function<void (mongo::Status)>::makeImpl<mongo::transport::ServiceExecutorSynchronous::runOnDataAvailable(std::shared_ptr<mongo::transport::Session> const&, mongo::unique_function<void (mongo::Status)>)::$_5>(mongo::transport::ServiceExecutorSynchronous::runOnDataAvailable(std::shared_ptr<mongo::transport::Session> const&, mongo::unique_function<void (mongo::Status)>)::$_5&&)::SpecificImpl::call(mongo::Status&&) /home/ubuntu/mongo/src/mongo/util/functional.h:259 [js_test:data_size_aware_balancing_sessions_collection] d20040| #18 0x7f2ee4352fd8 in mongo::unique_function<void (mongo::Status)>::operator()(mongo::Status) const /home/ubuntu/mongo/src/mongo/util/functional.h:217:22 [js_test:data_size_aware_balancing_sessions_collection] d20040| #19 0x7f2ee4352fd8 in mongo::transport::ServiceExecutor::schedule(mongo::unique_function<void (mongo::Status)>)::'lambda'()::operator()() /home/ubuntu/mongo/src/mongo/transport/service_executor.h:95 [js_test:data_size_aware_balancing_sessions_collection] d20040| #20 0x7f2ee4352fd8 in auto mongo::unique_function<void ()>::makeImpl<mongo::transport::ServiceExecutor::schedule(mongo::unique_function<void (mongo::Status)>)::'lambda'()>(mongo::transport::ServiceExecutor::schedule(mongo::unique_function<void (mongo::Status)>)::'lambda'()&&)::SpecificImpl::call() /home/ubuntu/mongo/src/mongo/util/functional.h:259 [js_test:data_size_aware_balancing_sessions_collection] d20040| #21 0x7f2ee4359cb2 in mongo::unique_function<void ()>::operator()() const /home/ubuntu/mongo/src/mongo/util/functional.h:217:22 [js_test:data_size_aware_balancing_sessions_collection] d20040| #22 0x7f2ee4359cb2 in mongo::transport::ServiceExecutorSynchronous::scheduleTask(mongo::unique_function<void ()>, mongo::transport::ServiceExecutor::ScheduleFlags)::$_4::operator()() /home/ubuntu/mongo/src/mongo/transport/service_executor_synchronous.cpp:133 [js_test:data_size_aware_balancing_sessions_collection] d20040| #23 0x7f2ee4359cb2 in auto mongo::unique_function<void ()>::makeImpl<mongo::transport::ServiceExecutorSynchronous::scheduleTask(mongo::unique_function<void ()>, mongo::transport::ServiceExecutor::ScheduleFlags)::$_4>(mongo::transport::ServiceExecutorSynchronous::scheduleTask(mongo::unique_function<void ()>, mongo::transport::ServiceExecutor::ScheduleFlags)::$_4&&)::SpecificImpl::call() /home/ubuntu/mongo/src/mongo/util/functional.h:259 [js_test:data_size_aware_balancing_sessions_collection] d20040| #24 0x7f2ee435f358 in mongo::unique_function<void ()>::operator()() const /home/ubuntu/mongo/src/mongo/util/functional.h:217:22 [js_test:data_size_aware_balancing_sessions_collection] d20040| #25 0x7f2ee435f358 in mongo::launchServiceWorkerThread(mongo::unique_function<void ()>)::$_6::operator()() /home/ubuntu/mongo/src/mongo/transport/service_executor_utils.cpp:107 [js_test:data_size_aware_balancing_sessions_collection] d20040| #26 0x7f2ee435f358 in auto mongo::unique_function<void ()>::makeImpl<mongo::launchServiceWorkerThread(mongo::unique_function<void ()>)::$_6>(mongo::launchServiceWorkerThread(mongo::unique_function<void ()>)::$_6&&)::SpecificImpl::call() /home/ubuntu/mongo/src/mongo/util/functional.h:259 [js_test:data_size_aware_balancing_sessions_collection] d20040| #27 0x7f2ee435dfbd in mongo::unique_function<void ()>::operator()() const /home/ubuntu/mongo/src/mongo/util/functional.h:217:22 [js_test:data_size_aware_balancing_sessions_collection] d20040| #28 0x7f2ee435dfbd in mongo::(anonymous namespace)::runFunc(void*) /home/ubuntu/mongo/src/mongo/transport/service_executor_utils.cpp:66 [js_test:data_size_aware_balancing_sessions_collection] d20040| #29 0x7f2ef41486da in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76da)