# Regression (UE 5.8): Access Violation crash in FBacktracer::AddModule when loading DLLs with chained unwind info (UNW\_FLAG\_CHAININFO)

**URL:** <https://forums.unrealengine.com/t/regression-ue-5-8-access-violation-crash-in-fbacktracer-addmodule-when-loading-dlls-with-chained-unwind-info-unw-flag-chaininfo/2845947>\
**Category:** Issues and Bug Reporting (Unreal Engine)\
**Tags:** unreal-engine\
**Created:** [October 28, 2026, 12:21am UTC](https://forums.unrealengine.com/t/regression-ue-5-8-access-violation-crash-in-fbacktracer-addmodule-when-loading-dlls-with-chained-unwind-info-unw-flag-chaininfo/2845947 "2026-10-28T00:21:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArnoBisim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArnoBisim](https://forums.unrealengine.com/u/ArnoBisim)\
**Post date:** [October 28, 2026, 12:21am UTC](https://forums.unrealengine.com/t/regression-ue-5-8-access-violation-crash-in-fbacktracer-addmodule-when-loading-dlls-with-chained-unwind-info-unw-flag-chaininfo/2845947/1 "2026-10-28T00:21:01Z")

</div>

### Summary

In UE 5.8, dynamic loading of certain third-party or custom native DLLs causes an immediate Access Violation (read of invalid address) inside `FBacktracer::AddModule()`.  
This is a regression introduced in UE 5.8 in `Engine/Source/Runtime/Core/Private/ProfilingDebugging/Microsoft/WindowsCallstackTrace.cpp` line ~396. The code added handling for `UNW_FLAG_CHAININFO` via a `while` loop, but it executes prior to verifying `UnwindInfo->Version` and dereferences chain pointers without verifying bounds or handling PE redirection flags (e.g. bit 0 redirection). In UE 5.7, this loop did not exist and the version check guarded access, preventing any crash.

### What Type of Bug are you experiencing?

Platform Other

### Steps to Reproduce

In a UE 5.8 project, load a dynamic DLL (built with /INCREMENTAL:YES or containing chained function table entries) via FPlatformProcess::GetDllHandle() from any path not filtered by CallstackTrace\_FilterModule() (e.g. outside engine binaries directory).  
Ensure CallstackTrace / Trace is active (default in Editor builds).  
The editor crashes with an Access Violation at WindowsCallstackTrace.cpp:396.

### Expected Result

no crash

### Observed Result

crash

### Affects Versions

5.8

### Platform(s)

Windows

### For crash reports, include your callstack

UnrealEditor-Core.dll!FBacktracer::AddModule(unsigned \_\_int64 ModuleBase=…, const wchar\_t \* Name=…) Line 396  
UnrealEditor-Core.dll!CallstackTrace\_AddModule(…) Line 512  
UnrealEditor-Core.dll!CallstackTrace\_DllNotification(…) Line 562  
ntdll.dll!LdrpCallInitRoutine()  
ntdll.dll!LdrpInitializeProcess()  
KernelBase.dll!LoadLibraryExW()

### Additional Notes

Unreal Engine 5.8 (Worked in UE 5.7)

## Suggested Fix:

Validate module boundary limits and verify UnwindInfo-\>Version == 1 prior to/during chain traversal in `Engine/Source/Runtime/Core/Private/ProfilingDebugging/Microsoft/WindowsCallstackTrace.cpp`
