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

run CTest in sanitizer jobs / added gui-tests CMake target #7046

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

firewave
Copy link
Collaborator

No description provided.

@firewave
Copy link
Collaborator Author

The issue which made this unfeasible was fixed in #6691.

@firewave firewave force-pushed the ctest-san branch 2 times, most recently from e0eb5f8 to 6843659 Compare November 27, 2024 12:45
@firewave firewave changed the title run CTest in sanitizer jobs run CTest in sanitizer jobs / added gui-tests CMake target Nov 27, 2024
@firewave
Copy link
Collaborator Author

WARNING: ThreadSanitizer: data race (pid=12373)
  Write of size 8 at 0x721800000148 by main thread:
    #0 pthread_cond_destroy <null> (test-filelist+0x6a480) (BuildId: 43eaac5f0ab7dba6f46cf07c94c39b7d31db1735)
    #1 QWaitCondition::~QWaitCondition() <null> (libQt6Core.so.6+0x335cf3) (BuildId: 5713ef80329ffaf3943ace9cbbaa9e57a283c071)
    #2 <null> <null> (libc.so.6+0x29d8f) (BuildId: 490fef8403240c91833978d494d39e537409b92e)
  Previous read of size 8 at 0x721800000148 by thread T1 (mutexes: write M0):
    #0 pthread_cond_broadcast <null> (test-filelist+0x6a2df) (BuildId: 43eaac5f0ab7dba6f46cf07c94c39b7d31db1735)
    #1 QWaitCondition::wakeAll() <null> (libQt6Core.so.6+0x335da9) (BuildId: 5713ef80329ffaf3943ace9cbbaa9e57a283c071)
  Location is heap block of size 96 at 0x721800000120 allocated by main thread:
    #0 operator new(unsigned long) <null> (test-filelist+0xec3b2) (BuildId: 43eaac5f0ab7dba6f46cf07c94c39b7d31db1735)
    #1 QWaitCondition::QWaitCondition() <null> (libQt6Core.so.6+0x335c58) (BuildId: 5713ef80329ffaf3943ace9cbbaa9e57a283c071)
    #2 <null> <null> (libc.so.6+0x29d8f) (BuildId: 490fef8403240c91833978d494d39e537409b92e)
  Mutex M0 (0x721800000120) created at:
    #0 pthread_mutex_init <null> (test-filelist+0x6a623) (BuildId: 43eaac5f0ab7dba6f46cf07c94c39b7d31db1735)
    #1 QWaitCondition::QWaitCondition() <null> (libQt6Core.so.6+0x335c65) (BuildId: 5713ef80329ffaf3943ace9cbbaa9e57a283c071)
    #2 <null> <null> (libc.so.6+0x29d8f) (BuildId: 490fef8403240c91833978d494d39e537409b92e)
  Thread T1 'QtTest Watchdog' (tid=12375, finished) created by main thread at:
    #0 pthread_create <null> (test-filelist+0x68c51) (BuildId: 43eaac5f0ab7dba6f46cf07c94c39b7d31db1735)
    #1 QThread::start(QThread::Priority) <null> (libQt6Core.so.6+0x328d1c) (BuildId: 5713ef80329ffaf3943ace9cbbaa9e57a283c071)
    #2 <null> <null> (libc.so.6+0x29d8f) (BuildId: 490fef8403240c91833978d494d39e537409b92e)
SUMMARY: ThreadSanitizer: data race (/home/runner/work/cppcheck/cppcheck/cmake.output/bin/test-filelist+0x6a480) (BuildId: 43eaac5f0ab7dba6f46cf07c94c39b7d31db1735) in pthread_cond_destroy

I filed https://trac.cppcheck.net/ticket/13355 about this (not sure if this actually a bug) and disabled CTest for the ThreadSanitizer job for now.

@firewave firewave marked this pull request as ready for review November 27, 2024 13:07
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.

1 participant