Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Darwin with clang-19: LeakSanitizer: bad pointer #79

Open
ClausKlein opened this issue Nov 12, 2024 · 0 comments
Open

Darwin with clang-19: LeakSanitizer: bad pointer #79

ClausKlein opened this issue Nov 12, 2024 · 0 comments

Comments

@ClausKlein
Copy link
Collaborator

bash-5.2$ make lsan
/Applications/Xcode.app/Contents/Developer/usr/bin/make SANITIZER=lsan
cd build/lsan; CC=/usr/local/opt/llvm/bin/clang++ cmake -G Ninja /Users/clausklein/Workspace/cpp/beman-project/execution26   -DCMAKE_CXX_COMPILER=/usr/local/opt/llvm/bin/clang++ -DCMAKE_CXX_FLAGS="-g -fsanitize=leak"
-- TARGET_ALIAS="beman_execution26::beman_execution26" ; TARGET_LIBRARY="beman_execution26" ; TARGET_PREFIX="beman.execution26" ; PROJECT_SOURCE_DIR="/Users/clausklein/Workspace/cpp/beman-project/execution26"
-- Configuring done (0.1s)
-- Generating done (0.3s)
-- Build files have been written to: /Users/clausklein/Workspace/cpp/beman-project/execution26/build/lsan
cmake --build build/lsan
[88/90] Generating CXX dyndep file examples/CMakeFiles/beman.execution26.examples.allocator.dir/CXX.dd
# cmake --workflow --preset lsan
ctest --test-dir build/lsan --rerun-failed --output-on-failure
Internal ctest changing into directory: /Users/clausklein/Workspace/cpp/beman-project/execution26/build/lsan
Test project /Users/clausklein/Workspace/cpp/beman-project/execution26/build/lsan
    Start  5: beman.execution26.exec-connect.test
1/4 Test  #5: beman.execution26.exec-connect.test ......Subprocess aborted***Exception:   0.02 sec
LeakSanitizer: bad pointer 0x7f9890f04150
LeakSanitizer: CHECK failed: sanitizer_allocator_secondary.h:177 "((IsAligned(reinterpret_cast<uptr>(p), page_size_))) != (0)" (0x0, 0x0) (tid=11731344)

    Start  9: beman.execution26.exec-general.test
2/4 Test  #9: beman.execution26.exec-general.test ......Subprocess aborted***Exception:   0.03 sec
LeakSanitizer: bad pointer 0x7fc691f04270
LeakSanitizer: CHECK failed: sanitizer_allocator_secondary.h:177 "((IsAligned(reinterpret_cast<uptr>(p), page_size_))) != (0)" (0x0, 0x0) (tid=11731346)

    Start 39: beman.execution26.exec-sync-wait.test
3/4 Test #39: beman.execution26.exec-sync-wait.test ....Subprocess aborted***Exception:   0.02 sec
LeakSanitizer: bad pointer 0x7fb623f04150
LeakSanitizer: CHECK failed: sanitizer_allocator_secondary.h:177 "((IsAligned(reinterpret_cast<uptr>(p), page_size_))) != (0)" (0x0, 0x0) (tid=11731348)

    Start 60: beman.execution26.stopsource-cons.test
4/4 Test #60: beman.execution26.stopsource-cons.test ...Subprocess aborted***Exception:   0.03 sec
LeakSanitizer: bad pointer 0x7fbc3d7040c0
LeakSanitizer: CHECK failed: sanitizer_allocator_secondary.h:177 "((IsAligned(reinterpret_cast<uptr>(p), page_size_))) != (0)" (0x0, 0x0) (tid=11731350)


0% tests passed, 4 tests failed out of 4

Total Test time (real) =   0.11 sec

The following tests FAILED:
	  5 - beman.execution26.exec-connect.test (Subprocess aborted)
	  9 - beman.execution26.exec-general.test (Subprocess aborted)
	 39 - beman.execution26.exec-sync-wait.test (Subprocess aborted)
	 60 - beman.execution26.stopsource-cons.test (Subprocess aborted)
Errors while running CTest
make[1]: *** [test] Error 8
make: *** [lsan] Error 2
bash-5.2$ 
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

No branches or pull requests

1 participant