Fix the issue for [ASAN][BUG] stack-use-after-scope in crash-manager on TM1