mirror of
https://github.com/ossrs/srs.git
synced 2025-02-12 19:31:53 +00:00
Asan: Check libasan and show tips. v5.0.92 (#3266)
This commit is contained in:
parent
136e5cf0e0
commit
b72ad85502
3 changed files with 17 additions and 1 deletions
|
@ -332,6 +332,21 @@ if [[ -d /usr/local/srs-cache/srs/trunk/objs && $(pwd) != "/usr/local/srs-cache/
|
|||
fi
|
||||
fi
|
||||
|
||||
#####################################################################################
|
||||
# Check for address sanitizer, see https://github.com/google/sanitizers
|
||||
#####################################################################################
|
||||
if [[ $SRS_SANITIZER == YES && $OS_IS_X86_64 == YES ]]; then
|
||||
echo 'int main() { return 0; }' > ${SRS_OBJS}/test_sanitizer.cc &&
|
||||
gcc -fsanitize=address -fno-omit-frame-pointer -g -O0 ${SRS_OBJS}/test_sanitizer.cc \
|
||||
-o ${SRS_OBJS}/test_sanitizer 1>/dev/null 2>&1;
|
||||
ret=$?; rm -f ${SRS_OBJS}/test_sanitizer ${SRS_OBJS}/test_sanitizer.cc
|
||||
if [[ $ret -ne 0 ]]; then
|
||||
echo "Please install libasan, see https://github.com/google/sanitizers";
|
||||
if [[ $OS_IS_CENTOS == YES ]]; then echo " sudo yum install -y libasan"; fi
|
||||
exit $ret;
|
||||
fi
|
||||
fi
|
||||
|
||||
#####################################################################################
|
||||
# state-threads
|
||||
#####################################################################################
|
||||
|
|
|
@ -8,6 +8,7 @@ The changelog for SRS.
|
|||
|
||||
## SRS 5.0 Changelog
|
||||
|
||||
* v5.0, 2022-11-22, Asan: Check libasan and show tips. v5.0.92
|
||||
* v5.0, 2022-11-21, Merge [#3264](https://github.com/ossrs/srs/pull/3264): Asan: Try to fix st_memory_leak for asan check. (#3264). v5.0.91
|
||||
* v5.0, 2022-11-21, Asan: Fix global ip address leak check. v5.0.90
|
||||
* v5.0, 2022-11-20, For [#2532](https://github.com/ossrs/srs/issues/2532): Windows: Support cygwin pipline and packager. v5.0.89
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
|
||||
#define VERSION_MAJOR 5
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 91
|
||||
#define VERSION_REVISION 92
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue