Skip to content

Commit 9e00cd8

Browse files
committed
16
1 parent 73da98e commit 9e00cd8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ubuntu.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
- name: Test
3232
working-directory: build
3333
run: |
34-
mkdir -p bin
35-
printf 'race:Catch::RunContext\nrace:Catch::Detail\nrace:__sanitizer::IsAccessibleMemoryRange\n' > bin/tsan_suppressions.txt
36-
# 用绝对路径:ctest 运行测试时的工作目录是 build/bin,相对路径会被叠加成 build/bin/bin/... 而读不到
37-
export TSAN_OPTIONS="suppressions=$(pwd)/bin/tsan_suppressions.txt second_deadlock_stack=1 history_size=7"
34+
# 诊断模式: 暂不加 suppressions,让竞争完整显形。
35+
# halt_on_error=1 一发现竞争即非零退出; verbosity=1 + second_deadlock_stack=1 打全栈。
36+
# 看清竞争来源(栈顶在 Catch:: / 标准库 还是 taskflowlite/core/...)后,再决定 suppress 还是改源码
37+
export TSAN_OPTIONS="halt_on_error=1 history_size=7 second_deadlock_stack=1 verbosity=1"
3838
ctest --output-on-failure -LE perfile
3939
4040
# Release

0 commit comments

Comments
 (0)