File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -269,6 +269,9 @@ Developer options (useful when working on FFmpeg itself):
269
269
--disable-optimizations disable compiler optimizations
270
270
--enable-extra-warnings enable more compiler warnings
271
271
--disable-stripping disable stripping of executables and shared libraries
272
+ --valgrind=VALGRIND run "make fate" tests through valgrind to detect memory
273
+ leaks and errors, using the specified valgrind binary.
274
+ Cannot be combined with --target-exec
272
275
--samples=PATH location of test samples for FATE, if not set use
273
276
\$ FATE_SAMPLES at make invocation time.
274
277
@@ -1315,6 +1318,7 @@ CMDLINE_SET="
1315
1318
target_exec
1316
1319
target_os
1317
1320
target_path
1321
+ valgrind
1318
1322
"
1319
1323
1320
1324
CMDLINE_APPEND="
3239
3243
3240
3244
enabled debug && add_cflags -g" $debuglevel " && add_asflags -g" $debuglevel "
3241
3245
enabled coverage && add_cflags " -fprofile-arcs -ftest-coverage" && add_ldflags " -fprofile-arcs -ftest-coverage"
3246
+ test -n " $valgrind " && target_exec=" $valgrind --error-exitcode=1 --malloc-fill=0x2a --track-origins=yes --leak-check=full --gen-suppressions=all --suppressions=tests/fate-valgrind.supp"
3242
3247
3243
3248
# add some useful compiler flags if supported
3244
3249
check_cflags -Wdeclaration-after-statement
Original file line number Diff line number Diff line change
1
+ # seems fixed in newer versions
2
+ # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=577135
3
+ {
4
+ zlib-inflate
5
+ Memcheck:Cond
6
+ fun:inflateReset2
7
+ fun:inflateInit2_
8
+ }
9
+ # libc overreads on purpose
10
+ # http://sourceware.org/bugzilla/show_bug.cgi?id=12424
11
+ {
12
+ eval-strtod
13
+ Memcheck:Addr8
14
+ fun:__GI___strncasecmp_l
15
+ fun:____strtod_l_internal
16
+ fun:av_strtod
17
+ }
18
+ {
19
+ eval-strtod
20
+ Memcheck:Value8
21
+ fun:__GI___strncasecmp_l
22
+ fun:____strtod_l_internal
23
+ fun:av_strtod
24
+ }
25
+ {
26
+ eval-strtod
27
+ Memcheck:Cond
28
+ fun:__GI___strncasecmp_l
29
+ fun:____strtod_l_internal
30
+ fun:av_strtod
31
+ }
You can’t perform that action at this time.
0 commit comments