Skip to content

ModuleLoadTest: drop dbghelp.dll from expected Win32 boot modules#1696

Merged
bghgary merged 1 commit into
BabylonJS:masterfrom
bghgary:drop-dbghelp-from-mlt
May 15, 2026
Merged

ModuleLoadTest: drop dbghelp.dll from expected Win32 boot modules#1696
bghgary merged 1 commit into
BabylonJS:masterfrom
bghgary:drop-dbghelp-from-mlt

Conversation

@bghgary
Copy link
Copy Markdown
Contributor

@bghgary bghgary commented May 15, 2026

Context

bx commit 3ea49f9 ("Lazy load debug help once it's needed to resolve callstack", #383) moved the dlopen("dbghelp.dll") call out of the file-scope static's constructor into a lazy init() invoked on the first writeCallstack call.

That commit is in the bx submodule of BabylonJS/bgfx.cmake e5f3f31, which is BabylonNative's current GIT_TAG pin (root CMakeLists.txt). So a fresh BN build no longer pulls dbghelp.dll into the process on startup.

Change

Drop dbghelp.dll from GetExpectedBootModules() in Apps/ModuleLoadTest/Source/App.Win32.cpp, plus the TODO comment that flagged it as bgfx-blocked. Resolves @bkaradzic-microsoft's review comment on #1666 (L70).

Verification

Local RelWithDebInfo build + run (Win11 x64, D3D11 + Chakra):

  • Reconfigured CMake (deleted stale _deps/bgfx.cmake-src to force re-fetch at the pinned SHA).
  • Built ModuleLoadTest RelWithDebInfo.
  • Ran the test; verdict PASS. dbghelp.dll is NOT in the boot delta. (imagehlp.dll still is -- different DLL, image loader.)

[Created by Copilot on behalf of @bghgary]

bx commit 3ea49f9 ("Lazy load debug help once it's needed to resolve
callstack", BabylonJS#383) moved the dlopen("dbghelp.dll") call out of the
file-scope static's constructor into a lazy init() invoked on the
first writeCallstack call.

That commit is in the bx submodule of BabylonJS/bgfx.cmake e5f3f31,
which is BabylonNative's current GIT_TAG pin (root CMakeLists.txt).
So a fresh BN build no longer pulls dbghelp.dll into the process on
startup. Verified locally with a fresh RelWithDebInfo configure +
build + run; dbghelp.dll is not in the boot delta.

Resolves @bkaradzic-microsoft's review comment on BabylonJS#1666 (L70).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 15, 2026 16:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes dbghelp.dll from the Win32 boot module allow-list in ModuleLoadTest since the pinned bgfx/bx version now lazy-loads it instead of loading at static-init time.

Changes:

  • Drop dbghelp.dll entry and its bgfx-blocked TODO from GetExpectedBootModules().

@bghgary bghgary enabled auto-merge (squash) May 15, 2026 17:48
@bghgary bghgary merged commit 8afa74a into BabylonJS:master May 15, 2026
32 checks passed
@bghgary bghgary deleted the drop-dbghelp-from-mlt branch May 15, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants