FUnixCrashContext

Windows
MacOS
Linux

Inheritance Hierarchy

FGenericCrashContext

FUnixCrashContext

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Unix/UnixPlatformCrashContext.h

Include

#include "Unix/UnixPlatformCrashContext.h"

Syntax

struct FUnixCrashContext : public FGenericCrashContext

Variables

Name Description

Public variable

char **

 

BacktraceSymbols

Symbols received via backtrace_symbols(), if any (note that we will need to clean it up)

Public variable

bool

 

bCapturedBacktrace

Whether backtrace was already captured

Public variable

ucontext_t *...

 

Context

Thread context

Public variable

uint64 *

 

FirstCrashHandlerFrame

The PC of the first function used when handling a crash.

Public variable

siginfo_t *

 

Info

Additional signal info

Public variable

char[16384]

 

MinidumpCallstackInfo

Memory reserved for minidump-style callstack info

Public variable

int32

 

Signal

Signal number

Public variable

TCHAR[256]

 

SignalDescription

Memory reserved for "exception" (signal) info

Constructors

Name Description

Public function

FUnixCrashContext

(
    ECrashContextType InType,
    const TCHAR* InErrorMessage
)

Destructors

Name Description

Public function

~FUnixCrashContext()

Functions

Name Description

Public function

void

 

CaptureStackTrace()

Populates crash context stack trace and a few related fields

Public function Const

void

 

GenerateCrashInfoAndLaunchReporter

(
    bool bReportingNonCrash
)

Generates a new crash report containing information needed for the crash reporter and launches it; may not return.

Protected function Const

void

 

GenerateReport

(
    const FString& DiagnosticsPath
)

Dumps all the data from crash context to the "minidump" report.

Public function

void

 

InitFromEnsureHandler

(
    const TCHAR* EnsureMessage,
    const void* CrashAddress
)

Inits the crash context from ensure handler

Public function

void

 

InitFromSignal

(
    int32 InSignal,
    siginfo_t* InInfo,
    void* InContext
)

Inits the crash context from data provided by a signal handler.

Public function

void

 

SetFirstCrashHandlerFrame

(
    uint64* ProgramCounter
)

Sets the FirstCrashHandlerFrame only if it has not been set before

Public function

void

 

SetType

(
    ECrashContextType InType
)

Sets whether this crash represents a non-crash event like an ensure

Overridden from FGenericCrashContext

Name Description

Public function Virtual Const

void

 

GetPortableCallStack

(
    const uint64* StackFrames,
    int32 NumStackFrames,
    TArray< FCrashStackFrame >& OutCal...
)

Gets the portable callstack to a specified stack and puts it into OutCallStack

Constants

Name

Description

FakeSiginfoForEnsures

Fake siginfo used when handling ensure()s

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss