Skip to content

Commit b769016

Browse files
authored
use symbolizer server and properly set the environment (#596)
* use symbolizer server and properly set the environment * configure symbolizer client * configure symbolizer client * launch in background * don't write it to stdout * redirect stderr
1 parent d884341 commit b769016

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

scripts/lib/buildSanFlags.fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function buildSanFlags --argument SRCDIR
88
# This also has to be in runRTAtest.fish
99
if not test -z "$SAN"; and test "$SAN" = "On"
1010
echo "Use SAN mode: $SAN_MODE"
11-
set common_options "log_exe_name=true"
11+
set common_options "log_exe_name=true:external_symbolizer_path=$INNERWORKDIR/ArangoDB/utils/llvm-symbolizer-client.py"
1212

1313
switch "$SAN_MODE"
1414
case "AULSan"

scripts/runTests.fish

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ set -g timeout 0
9292
set -g timeLimit -1
9393
set -g suiteRunner ""
9494

95+
if test "$SAN" = "On"
96+
$INNERWORKDIR/ArangoDB/utils/llvm-symbolizer-server.py > $INNERWORKDIR/symbolizer.log 2>&1 &
97+
end
98+
9599
switch $TESTSUITE
96100
case "cluster"
97101
resetLaunch 4
@@ -138,6 +142,10 @@ end
138142

139143
eval "$suiteRunner"
140144

145+
if test "$SAN" = "On"
146+
jobs
147+
kill %1
148+
end
141149
echo "RESULT: $result"
142150

143151
if test $result = GOOD

0 commit comments

Comments
 (0)