cmu-db / bustub

The BusTub Relational Database Management System (Educational)
https://15445.courses.cs.cmu.edu/
MIT License
3.92k stars 1.76k forks source link

Cmake Error at GoogleTestAddTests.cmake #676

Closed li5ch closed 8 months ago

li5ch commented 8 months ago

CMake Error at /Applications/CLion.app/Contents/bin/cmake/mac/x64/share/cmake-3.27/Modules/GoogleTestAddTests.cmake:112 (message): Error running test executable.

Path: '/cmake-build-debug/test/trie_test'
Result: Segmentation fault
Output:

Call Stack (most recent call first): /Applications/CLion.app/Contents/bin/cmake/mac/x64/share/cmake-3.27/Modules/GoogleTestAddTests.cmake:225 (gtest_discover_tests_impl)

skyzh commented 8 months ago

Not reproducible

li5ch commented 8 months ago

in macOS 14.2.1 can reproduce the problem

hiyasame commented 6 months ago

I also reproduced this issue when trying to compile lru_k_replacer_test in an x86 Docker container running macOS on Apple Silicon chips.

[ 98%] Building CXX object test/CMakeFiles/lru_k_replacer_test.dir/buffer/lru_k_replacer_test.cpp.o
[ 98%] Building CXX object test/CMakeFiles/lru_k_replacer_test.dir/__/tools/backtrace.cpp.o
[100%] Linking CXX executable lru_k_replacer_test
CMake Error at /usr/share/cmake-3.22/Modules/GoogleTestAddTests.cmake:83 (message):
  Error running test executable.

    Path: '/home/bustub/bustub/build/test/lru_k_replacer_test'
    Result: Subprocess killed
    Output:

Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/GoogleTestAddTests.cmake:179 (gtest_discover_tests_impl)
aneessh18 commented 3 months ago

@H1yame were you able to resolve the issue ? I am facing the same error.