Azure / Azure/azure-functions-host

Function app randomly crashes

Open
#9,621 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 10h
Merged PRs (30d)
36

Description

We have a function app that crashes randomly with the following information:

========================================================
Dump Analysis for w3wp__azfunstgproc__PID__2692__Date__10_14_2023__Time_10_27_00AM__990__ntdll!ZwTerminateProcess_pd1sdwk0007L7.dmp
========================================================
Thread 2652
ExitCode 80131623
ExitCodeString COR_E_SAFEHANDLEMISSINGATTRIBUTE
DefaultHostName azfunstgproc.azurewebsites.net
Managed Exception = System.ExecutionEngineException:
CallStack - Managed Exception
========================================================
CallStack - Crashing Thread
========================================================
HelperMethodFrame_1OBJ
DurableTask.AzureStorage.TimeoutHandler+d__3`1[[System.__Canon, System.Private.CoreLib]].MoveNext()
System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.__Canon, System.Private.CoreLib],[DurableTask.AzureStorage.TimeoutHandler+d__3`1[[System.__Canon, System.Private.CoreLib]], DurableTask.AzureStorage]].MoveNext(System.Threading.Thread)
System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)
System.Threading.Tasks.Task.RunContinuations(System.Object)
System.Threading.Tasks.Task.FinishContinuations()
System.Threading.Tasks.Task`1[[System.__Canon, System.Private.CoreLib]].TrySetResult(System.__Canon)
System.Threading.Tasks.Task+TwoTaskWhenAnyPromise`1[[System.__Canon, System.Private.CoreLib]].Invoke(System.Threading.Tasks.Task)
System.Threading.Tasks.Task.RunOrQueueCompletionAction(System.Threading.Tasks.ITaskCompletionAction, Boolean)
System.Threading.Tasks.Task.RunContinuations(System.Object)
System.Threading.Tasks.Task.FinishContinuations()
System.Threading.Tasks.Task`1[[System.Boolean, System.Private.CoreLib]].TrySetResult(Boolean)
System.Threading.Tasks.UnwrapPromise`1[[System.Boolean, System.Private.CoreLib]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
System.Threading.Tasks.UnwrapPromise`1[[System.Boolean, System.Private.CoreLib]].ProcessInnerTask(System.Threading.Tasks.Task)
System.Threading.Tasks.Task.RunOrQueueCompletionAction(System.Threading.Tasks.ITaskCompletionAction, Boolean)
System.Threading.Tasks.Task.RunContinuations(System.Object)
System.Threading.Tasks.Task.FinishContinuations()
System.Threading.Tasks.Task.FinishStageThree()
System.Threading.Tasks.Task.FinishStageTwo()
System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread)
System.Threading.Tasks.Task.ExecuteEntryUnsafe(System.Threading.Thread)
System.Threading.Tasks.Task.ExecuteFromThreadPool(System.Threading.Thread)
System.Threading.ThreadPoolWorkQueue.Dispatch()
System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart()
System.Threading.Thread.StartCallback()
DebuggerU2MCatchHandlerFrame

Native Call Stack
========================================================
ntdll!NtTerminateProcess
KERNELBASE!TerminateProcess
coreclr!SafeExitProcess
coreclr!EEPolicy::HandleFatalError
coreclr!SystemNative::GenericFailFast
coreclr!SystemNative::FailFast

#### Investigative information

Please provide the following:

- Function App version: 4.27.2.21466
- Function App name: azfunstgproc
- Region: EUS

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start with the supplied dump and the DurableTask.AzureStorage.TimeoutHandler.ExecuteWithTimeout entry in the crashing thread, then review the reported COR_E_SAFEHANDLEMISSINGATTRIBUTE and ExecutionEngineException against the listed Function App version and region. Done means identifying a reproducible cause or actionable diagnostic evidence.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.