Disable sanitizer by default to fix memory leak. #4364

This commit is contained in:
winlin
2025-10-14 20:29:02 -04:00
parent ac868852e4
commit 22e71a39e7
4 changed files with 7 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ WORKDIR /srs/trunk
# Note that we must enable the gcc7 or link failed.
# Please note that we must disable the ffmpeg-opus, as it negatively impacts performance. We may consider
# enabling it in the future when support for multi-threading transcoding is available.
RUN ./configure --srt=on --gb28181=on --srt=on --apm=on --h265=on --utest=on --ffmpeg-opus=off --build-cache=on
RUN ./configure --srt=on --gb28181=on --srt=on --apm=on --h265=on --utest=on --sanitizer=on --ffmpeg-opus=off --build-cache=on
RUN make utest ${MAKEARGS}
# Build benchmark tool.

View File

@@ -549,6 +549,10 @@ function apply_auto_options() {
SRS_SANITIZER=YES
fi
if [[ $SRS_SANITIZER == RESERVED && $SRS_UTEST == YES ]]; then
SRS_SANITIZER=YES
fi
# If enable gperf, disable sanitizer.
if [[ $SRS_GPERF == YES && $SRS_SANITIZER == YES ]]; then
echo "Disable sanitizer for gperf"

View File

@@ -7,6 +7,7 @@ The changelog for SRS.
<a name="v6-changes"></a>
## SRS 6.0 Changelog
* v6.0, 2025-10-14, Disable sanitizer by default to fix memory leak. (#4364) v6.0.181
* v6.0, 2025-10-01, SRT: Support configurable default_streamid option. v6.0.180
* v6.0, 2025-09-27, For Edge, only support RTMP or HTTP-FLV. v6.0.179 (#4512)
* v6.0, 2025-09-20, Fix WHIP with transcoding bug. v6.0.178 (#4495)

View File

@@ -9,6 +9,6 @@
#define VERSION_MAJOR 6
#define VERSION_MINOR 0
#define VERSION_REVISION 180
#define VERSION_REVISION 181
#endif