Skip to content

mtonosaki/PocAzureFunctionAppStackOverflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PoC to investigate StackOverflow exception in Azure FunctionApp

Capture a StackOverflowException and make a dump 0xc00000fd

https://blogs.msdn.microsoft.com/benjaminperkins/2017/06/28/capture-a-stackoverflowexception-and-make-a-dump-0xc00000fd/


Preparation

  1. Azure Subscription for below resources.
  2. FunctionApp
  3. Storage (for the function)
  4. Create local.settings.json file (local.settings.sample.json is an example)
  5. Deploy the functions

Step

  1. Run "Function1" to know Process ID
  2. Move to the function's "Kidu"
  3. Select "Process explorer" tab to remember Process ID of w3wp.exe (non scm instance)
  4. Select "Debug console" tab.
  5. make a new directory in LogFiles then move current folder to it.
  6. Execute below command (*1) to listen a stack overflow exception.
  7. Run "Function2" to throw stack overflow exception.
  8. Wait for crush dump created completely.
  9. Download the crush dump file
  10. Investigate the dump file with WinDbg.

*1 Command

d:\devtools\sysinternals\procdump -accepteula -e 1 -f C00000FD.STACK_OVERFLOW -g -ma process id

About

PoC : Azure FunctionApp Stack Overflow Investigation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages