Closed Strilanc closed 3 months ago
There are some potential indications that this is a compiler or os bug rather than a gtest bug: https://github.com/quantumlib/Stim/issues/717#issuecomment-2002623560 .
Sounds like this isn't a gtest issue. Re-open if you find a repro without GitHub Actions that shows the problem.
This issue seems serious enough to the usability of gtest that you would probably want to push on getting it fixed, even if it's not gtest's fault.
I am facing the same issue, it runs in a docker container. Strangely enough on some machines it works, on some it I get the mentioned error (github ci, on prem servers, laptops). Also on prem the tests pass roughly 7 out of 10 times. In the other 3 I get the error...
Looks like there is a workaround available: https://github.com/actions/runner-images/issues/9524
Describe the issue
Recently I started noticing my github CI builds hanging. They were getting into an infinite loop of printing out
AddressSanitizer:DEADLYSIGNAL
. Initially I assumed this was my code. I didn't know where it was so I started gradually deleting the code base while preserving the failure, until I had no code and no tests left (here is the PR where I did this). All that's left is building gtest, and running it with no tests. And I still see around 10% to 20% of builds hanging withAddressSanitizer:DEADLYSIGNAL
loops:So it appears the issue is something to do with the very initial work that gtest's main method is doing, before executing any tests.
Steps to reproduce the problem
I don't know how to reproduce this on my machine. But I can trigger it in github actions.
Create an empty github repository with a branch named
main
.Create a pull request to add this
.github/workflows/ci.yml
file:What version of GoogleTest are you using?
I've seen this failure both in 1.12.1 and on 1.14.0
Since this failure appears in such an older version, and it only recently started happening, it was likely triggered by a change in github side or in
g++
or in address sanitization tooling rather than on the gtest side.What operating system and version are you using?
A github actions environment using
ubuntu-latest
.What compiler and version are you using?
Based on
g++ -v
it's 11.4.0:What build system are you using?
A single
g++
command.g++ -fsanitize=address -o stim_test /usr/local/lib/libgtest_main.a /usr/local/lib/libgtest.a
Additional context
No response