Skip to content

vkconfig: optimize compiling of tests to fix link crashes#2696

Closed
lunarpapillo wants to merge 3 commits into
mainfrom
bob-vkconfig-test-link
Closed

vkconfig: optimize compiling of tests to fix link crashes#2696
lunarpapillo wants to merge 3 commits into
mainfrom
bob-vkconfig-test-link

Conversation

@lunarpapillo

Copy link
Copy Markdown
Contributor

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.

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-tester-lunarg

Copy link
Copy Markdown

CI VulkanTools build # 5314 running.

@CLAassistant

CLAassistant commented Jul 8, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@ci-tester-lunarg

Copy link
Copy Markdown

CI VulkanTools build # 5314 failed.

avoid a Visual Studio race condition
@ci-tester-lunarg

Copy link
Copy Markdown

CI VulkanTools build queued with queue ID 32805.

@ci-tester-lunarg

Copy link
Copy Markdown

CI VulkanTools build # 5315 running.

stupid Gemini
@ci-tester-lunarg

Copy link
Copy Markdown

CI VulkanTools build queued with queue ID 32818.

@ci-tester-lunarg

Copy link
Copy Markdown

CI VulkanTools build # 5316 running.

@ci-tester-lunarg

Copy link
Copy Markdown

CI VulkanTools build # 5316 failed.

@lunarpapillo

Copy link
Copy Markdown
Contributor Author

There's something wrong with dependency management here. Closing until I can figure it out.

@lunarpapillo lunarpapillo deleted the bob-vkconfig-test-link branch July 9, 2026 01:34
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

Successfully merging this pull request may close these issues.

3 participants