Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSVC SEH exception with code 0xc0000005 when using SUCCEED #4556

Open
jviotti opened this issue Jun 6, 2024 · 1 comment
Open

MSVC SEH exception with code 0xc0000005 when using SUCCEED #4556

jviotti opened this issue Jun 6, 2024 · 1 comment

Comments

@jviotti
Copy link

jviotti commented Jun 6, 2024

Describe the issue

I'm suddenly getting the following crash on tests that hit SUCCEED on Windows, specifically on GitHub Actions:

unknown file: error: SEH exception with code 0xc0000005 thrown in the test body.

I was able to bring it down to a very minimal reproducible example: https://github.com/jviotti/gtest-seh-windows. It fails on GitHub Actions (i.e. https://github.com/jviotti/gtest-seh-windows/actions/runs/9406537911/job/25910207604) but I cannot reproduce on my Windows machine.

Essentially, this is what fails:

TEST(Example, succeed) {
  SUCCEED();
}

Steps to reproduce the problem

See the small reproducible example: https://github.com/jviotti/gtest-seh-windows and its corresponding GitHub Action runs.

What version of GoogleTest are you using?

a7f443b80b105f940225332ed3c31f2790092f47

What operating system and version are you using?

Windows from GitHub Actions as of windows-latest

What compiler and version are you using?

MSVC 19.40.33811.0 from Visual Studio 17 2022 from GitHub Actions

What build system are you using?

cmake version 3.29.3 which comes from GitHub Actions

Additional context

Seems it is reproducible for both static and shared builds. I ruled out lots of things, like my own compilation options, etc. It was working fine on GitHub Actions until yesterday. They must have done something to their runners (maybe a Visual Studio upgrade?) that triggered this.

You can also find some more realistic production cases here: https://github.com/sourcemeta/jsontoolkit/actions/runs/9402916181/job/25899820862?pr=765

jviotti added a commit to sourcemeta/jsontoolkit that referenced this issue Jun 6, 2024
See: google/googletest#4556
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
jviotti added a commit to sourcemeta/jsontoolkit that referenced this issue Jun 6, 2024
See: google/googletest#4556
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
jviotti added a commit to sourcemeta/jsontoolkit that referenced this issue Jun 6, 2024
See: google/googletest#4556
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
jviotti added a commit to sourcemeta/jsontoolkit that referenced this issue Jun 7, 2024
See: google/googletest#4556
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
jviotti added a commit to sourcemeta/jsontoolkit that referenced this issue Jun 7, 2024
See: google/googletest#4556
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
jviotti added a commit to sourcemeta/jsontoolkit that referenced this issue Jun 7, 2024
See: google/googletest#4556
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
jviotti added a commit to sourcemeta/jsontoolkit that referenced this issue Jun 7, 2024
See: google/googletest#4556
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
jviotti added a commit to sourcemeta/jsontoolkit that referenced this issue Jun 7, 2024
See: google/googletest#4556
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
jviotti added a commit to sourcemeta/jsontoolkit that referenced this issue Jun 7, 2024
See: google/googletest#4556
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
jviotti added a commit to sourcemeta/jsontoolkit that referenced this issue Jun 7, 2024
See: google/googletest#4556
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
@DominykasPetke
Copy link

Relevant issue on GitHub Actions's side: actions/runner-images#10004

jviotti added a commit to sourcemeta/jsontoolkit that referenced this issue Jun 7, 2024
jviotti added a commit to sourcemeta/jsontoolkit that referenced this issue Jun 7, 2024
jviotti added a commit to sourcemeta/jsontoolkit that referenced this issue Jun 7, 2024
jviotti added a commit to sourcemeta/jsontoolkit that referenced this issue Jun 7, 2024
jviotti added a commit to sourcemeta/jsontoolkit that referenced this issue Jun 7, 2024
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

No branches or pull requests

2 participants