microsoft / microsoft/usersim

Possible KeBugCheck improvements

Open
#47 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C++
Stars
105
Forks
34
Avg merge
3d 39m
Merged PRs (30d)
5

Description

Currently the implementation throws a C++ exception, which cannot be caught by Catch2 across a C API.

https://learn.microsoft.com/en-us/cpp/cpp/using-setjmp-longjmp?view=msvc-170 says setjmp/longjmp can be used in both C and C++ and may provide a better mechanism. We should investigate if that might work with Catch2.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the KeBugCheck implementation and how its C API boundary interacts with Catch2. Investigate whether setjmp/longjmp can replace the current C++ exception mechanism, and consider the work done only when the behavior can be handled reliably across that boundary.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
testing-qa
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.