Skip to content

Commit

Permalink
ICU-22801 Try to add LEAKSANITIZER
Browse files Browse the repository at this point in the history
See #3041
  • Loading branch information
FrankYFTang committed Jul 23, 2024
1 parent 40b2ec3 commit 23d9628
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/icu4c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,21 @@ jobs:
env:
CPPFLAGS: -fsanitize=address
LDFLAGS: -fsanitize=address
# Clang Linux with leak sanitizer.
clang-lsan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: ICU4C with clang and lsan
run: |
cd icu4c/source;
./runConfigureICU --enable-debug --disable-release Linux/clang --disable-renaming --enable-tracing;
make -j -l4.5 check;
env:
CPPFLAGS: -fsanitize=leak
LDFLAGS: -fsanitize=leak
ASAN_OPTIONS: detect_leaks=1
# Clang Linux with undefined-behavior sanitizer.
clang-ubsan:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 23d9628

Please sign in to comment.