vkconfig: optimize compiling of tests to fix link crashes#2696
Closed
lunarpapillo wants to merge 3 commits into
Closed
vkconfig: optimize compiling of tests to fix link crashes#2696lunarpapillo wants to merge 3 commits into
lunarpapillo wants to merge 3 commits into
Conversation
We've seen situations where Linux and Mac test builds crash while linking tests. The
large number of Qt-based test executables (43) all trying to link at the same time
can provoke out-of-memory conditions on Linux, triggering the OOM killer and build
errors like:
collect2: fatal error: ld terminated with signal 9 [Killed]
On Mac, the simultaneous Qt loads can provoke a linker crash with symptoms like:
c++: c++: error: unable to execute command: Bus error: 10
c++c++: error: linker command failed due to signal (use -v to see invocation)
Also, there appears to be a multiple load of GoogleTest, because the existing code
references both GTest::gtest and GTest::gtest_main; provoking messages like:
ld: warning: ignoring duplicate libraries: '/Users/lunarg/.jenkins/vt0/Debug64/VulkanTools/external/googletest/build/install/lib/libgtest.a'
Removing the reference to GTest::gtest removes the redundant reference.
|
CI VulkanTools build # 5314 running. |
|
CI VulkanTools build # 5314 failed. |
|
CI VulkanTools build queued with queue ID 32805. |
|
CI VulkanTools build # 5315 running. |
|
CI VulkanTools build queued with queue ID 32818. |
|
CI VulkanTools build # 5316 running. |
|
CI VulkanTools build # 5316 failed. |
Contributor
Author
|
There's something wrong with dependency management here. Closing until I can figure it out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We've seen situations where Linux and Mac test builds crash while linking tests. The large number of Qt-based test executables (43) all trying to link at the same time can provoke out-of-memory conditions on Linux, triggering the OOM killer and build errors like:
On Mac, the simultaneous Qt loads can provoke a linker crash with symptoms like:
Also, there appears to be a multiple load of GoogleTest, because the existing code references both GTest::gtest and GTest::gtest_main; provoking messages like:
Removing the reference to GTest::gtest removes the redundant reference.