Skip to content

Instantly share code, notes, and snippets.

@danmoseley
Last active May 29, 2019 00:09
Show Gist options
  • Save danmoseley/62aa2ff2f1c036cdad47f49072ede213 to your computer and use it in GitHub Desktop.
Save danmoseley/62aa2ff2f1c036cdad47f49072ede213 to your computer and use it in GitHub Desktop.
Possible output format for various fatal .NET errors
c:\test>c:\test\1.exe so
Stack overflow.
c:\test>c:\test\1.exe ff
Process terminated. <reason>
at System.Environment.FailFast(System.String)
at _1.Program.X(System.String)
at _1.Program.Main(System.String[])
c:\test>c:\test\1.exe av
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at _1.Program.X(System.String)
at _1.Program.Main(System.String[])
c:\test>c:\test\1.exe ex
Unhandled exception. System.Exception: <exception msg> ---> System.NullReferenceException: <inner msg>
--- End of inner exception stack trace ---
at _1.Program.X(String arg)
at _1.Program.Main(String[] args)
c:\test>c:\test\1.exe ff2
Process terminated. <reason>
at System.Environment.FailFast(System.String, System.Exception)
at _1.Program.X(System.String)
at _1.Program.Main(System.String[])
Exception details:
System.Exception: <exception msg> ---> System.NullReferenceException: <inner msg>
--- End of inner exception stack trace ---
c:\test>c:\test\1.exe con
Process terminated. Invariant failed.
...
at System.Diagnostics.Contracts.Contract.Invariant(Boolean condition)
at _1.Program.X(String arg)
at _1.Program.Main(String[] args)
c:\test>c:\test\1.exe af
Process terminated. Assertion Failed
<assertion msg>
<assertion detail>
at _1.Program.X(String arg)
at _1.Program.Main(String[] args)
c:\test>c:\test\1.exe af2
Process terminated. Assertion Failed
at _1.Program.X(String arg)
at _1.Program.Main(String[] args)
c:\test>c:\test\1.exe teiso
Stack overflow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment