llvm / llvm/llvm-project

[lldb][Windows] Some `SBBreakpointCallbackCase` tests do not work on Windows

Open
#224,303 1 comment 0 reactions 1 assignee Claimed by @charles-zablit View on GitHub
lldb platform:windows test-suite
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

# `test_python_stop_hook`

The driver hands a `FILE*` from its own CRT to `SBDebugger::SetInputFileHandle` after piping it with `_pipe`/`_fdopen`. `liblldb.dll` runs on a second UCRT instance, so the handle is not valid there and the driver dies with `0xC0000409` (`STATUS_STACK_BUFFER_OVERRUN`) instead of running the stop hook.

# `test_breakpoint_location_callback`

The driver exits with `0xC0000374` (`STATUS_HEAP_CORRUPTION`) after the callback runs. cdb shows two `ucrtbase.dll` images in the process (the driver and `liblldb.dll` do not share a heap) so a block allocated on one side ends up freed on the other.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.