Skip to content

Commit 8f330c0

Browse files
committed
Enable detect_stack_use_after_return in UT
1 parent 131fa6e commit 8f330c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ test_bins="test_butil test_bvar bthread*unittest brpc*unittest"
2626
for test_bin in $test_bins; do
2727
test_num=$((test_num + 1))
2828
>&2 echo "[runtest] $test_bin"
29-
ASAN_OPTIONS="detect_leaks=0" ./$test_bin
29+
ASAN_OPTIONS="detect_leaks=0:detect_stack_use_after_return=1" ./$test_bin
3030
# If ASan abort without detailed call stack of new/delete,
3131
# try to disable fast_unwind_on_malloc, which would be a performance killer.
3232
# ASAN_OPTIONS="fast_unwind_on_malloc=0:detect_leaks=0" ./$test_bin

0 commit comments

Comments
 (0)