Skip to content

Bug: Some problems in the compilation process #740

Open
@bbnolauv

Description

@bbnolauv

Problem

➜  build git:(p0) ✗ make -j$(nproc) hyperloglog_test
[  9%] Built target bustub_optimizer
[ 11%] Built target gtest
[ 12%] Built target bustub_murmur3
[ 18%] Built target duckdb_pg_query
[ 20%] Built target fort
[ 22%] Built target fmt
[ 25%] Built target bustub_statement
[ 31%] Built target bustub_binder
[ 35%] Built target bustub_buffer
[ 37%] Built target bustub_catalog
[ 38%] Built target bustub_common
[ 40%] Built target bustub_concurrency
[ 42%] Built target bustub_recovery
[ 44%] Built target bustub_storage_disk
[ 46%] Built target bustub_container_disk_hash
[ 62%] Built target bustub_execution
[ 70%] Built target bustub_storage_page
[ 74%] Built target bustub_storage_table
[ 75%] Built target bustub_storage_index
[ 85%] Built target bustub_type
[ 88%] Built target bustub_primer
[ 94%] Built target bustub_planner
[ 94%] Built target gmock
[ 96%] Built target bustub
[ 98%] Built target gmock_main
[ 98%] Linking CXX executable hyperloglog_test
FATAL: ThreadSanitizer: unexpected memory mapping 0x56d9b16e7000-0x56d9b1717000
CMake Error at /usr/share/cmake-3.22/Modules/GoogleTestAddTests.cmake:83 (message):
  Error running test executable.

    Path: '/home/foo/Codes/bustub-private/build/test/hyperloglog_test'
    Result: 66
    Output:
      

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


make[3]: *** [test/CMakeFiles/hyperloglog_test.dir/build.make:124: test/hyperloglog_test] Error 1
make[3]: *** Deleting file 'test/hyperloglog_test'
make[2]: *** [CMakeFiles/Makefile2:2958: test/CMakeFiles/hyperloglog_test.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:2965: test/CMakeFiles/hyperloglog_test.dir/rule] Error 2
make: *** [Makefile:1005: hyperloglog_test] Error 2

Steps to Reproduce the Problem

  1. clone the repo and run build_support/packages.sh
  2. cmake -DCMAKE_BUILD_TYPE=Debug -DBUSTUB_SANITIZER=thread -Bbuild && cmake --build build
  3. cd build && make -j$(nproc) hyperloglog_test

Specifications

  • Version:
    • clang version 14.0.0-1ubuntu1.1
    • cmake version 3.22.1
  • Platform: #40~22.04.3-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 30 17:30:19 UTC 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working (correctness). Mark issues with this.deferredThis issue is documented here and someone might want to fix it later, but it takes no priorityinfrastructureInfrastructure related issues or changes (CMake, dependencies, CI)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions