Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
9aa22de6
Unverified
Commit
9aa22de6
authored
Nov 21, 2020
by
Edward Thomson
Committed by
GitHub
Nov 21, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5597 from lhchavez/ci-thread-sanitizer
Add a ThreadSanitizer build
parents
d9d86e41
896b1db4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
.github/workflows/main.yml
+13
-0
script/thread-sanitizer.supp
+18
-0
No files found.
.github/workflows/main.yml
View file @
9aa22de6
...
...
@@ -109,6 +109,18 @@ jobs:
SKIP_NEGOTIATE_TESTS
:
true
ASAN_SYMBOLIZER_PATH
:
/usr/bin/llvm-symbolizer-10
os
:
ubuntu-latest
-
# Focal, Clang 10, OpenSSL, ThreadSanitizer
image
:
focal
env
:
CC
:
clang-10
CFLAGS
:
-fsanitize=thread -fno-optimize-sibling-calls -fno-omit-frame-pointer
CMAKE_OPTIONS
:
-DCMAKE_PREFIX_PATH=/usr/local -DUSE_HTTPS=OpenSSL -DUSE_SHA1=HTTPS -DREGEX_BACKEND=pcre -DDEPRECATE_HARD=ON -DUSE_BUNDLED_ZLIB=ON
CMAKE_GENERATOR
:
Ninja
SKIP_SSH_TESTS
:
true
SKIP_NEGOTIATE_TESTS
:
true
ASAN_SYMBOLIZER_PATH
:
/usr/bin/llvm-symbolizer-10
TSAN_OPTIONS
:
suppressions=/home/libgit2/source/script/thread-sanitizer.supp second_deadlock_stack=1
os
:
ubuntu-latest
-
# macOS
os
:
macos-10.15
env
:
...
...
@@ -197,6 +209,7 @@ jobs:
-e PKG_CONFIG_PATH \
-e SKIP_NEGOTIATE_TESTS \
-e SKIP_SSH_TESTS \
-e TSAN_OPTIONS \
${{ env.docker-registry-container-sha }} \
/bin/bash -c "mkdir build && cd build && ../ci/build.sh && ../ci/test.sh"
else
...
...
script/thread-sanitizer.supp
0 → 100644
View file @
9aa22de6
# In attr_file_free, the locks are acquired in the opposite order in which they
# are normally acquired. This is probably something worth fixing to have a
# consistent lock hierarchy that is easy to understand.
deadlock:attr_cache_lock
# When invoking the time/timezone functions from git_signature_now(), they
# access libc methods that need to be instrumented to correctly analyze the
# data races.
called_from_lib:libc.so.6
# TODO(#5595): Remove these once the fixes land.
race:src/odb.c
race:git_repository_odb__weakptr
race:cache_store
# TODO(#5595): Investigate and fix this. It can be triggered by the `thread`
# test suite.
race:git_filter_list__load_ext
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment