aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasily Gerasimov <UgnineSirdis@ydb.tech>2024-08-02 11:54:24 +0300
committerGitHub <noreply@github.com>2024-08-02 11:54:24 +0300
commit652be9ac2c23f3f9dd0eb8fb895f4e3c159529ca (patch)
treeabeadfeb0bbc456aeac9ea6c6ead98cc93c2250f
parentd34dcf30a049e90574f962b293f9dd293e807bad (diff)
downloadydb-652be9ac2c23f3f9dd0eb8fb895f4e3c159529ca.tar.gz
Fix actor system usage after it was freed (#7316)
Co-authored-by: Semyon Danilov <samvimes@yandex.ru>
-rw-r--r--ydb/core/testlib/actors/test_runtime.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ydb/core/testlib/actors/test_runtime.cpp b/ydb/core/testlib/actors/test_runtime.cpp
index 1669294a00c..6fc7cfbaabd 100644
--- a/ydb/core/testlib/actors/test_runtime.cpp
+++ b/ydb/core/testlib/actors/test_runtime.cpp
@@ -24,10 +24,11 @@
namespace NActors {
void TTestActorRuntime::TNodeData::Stop() {
- TNodeDataBase::Stop();
if (Mon) {
Mon->Stop();
+ GetAppData<NKikimr::TAppData>()->Mon = nullptr;
}
+ TNodeDataBase::Stop();
}
TTestActorRuntime::TNodeData::~TNodeData() {