[FFmpeg-devel] [PATCH] configure: remove false positives with valgrind-memcheck

James Almer jamrial at gmail.com
Sun Jun 9 04:13:16 EEST 2024


On 6/8/2024 9:59 PM, pal at sandflow.com wrote:
> From: Pierre-Anthony Lemieux <pal at palemieux.com>
> 
> If  `--toolchain=valgrind-memcheck` is selected, fate-lavf-asf fails on a false positive.

I can't reproduce this. Tried with both --disable-optimizations and 
without it, on Ubuntu 22.04 x86_64.
How are you getting these false positives?

> ---
>   configure | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/configure b/configure
> index 6c5b8aab9a..c708f2e38c 100755
> --- a/configure
> +++ b/configure
> @@ -4571,7 +4571,7 @@ case "$toolchain" in
>                   target_exec_args="--tool=massif --alloc-fn=av_malloc --alloc-fn=av_mallocz --alloc-fn=av_calloc --alloc-fn=av_fast_padded_malloc --alloc-fn=av_fast_malloc --alloc-fn=av_realloc_f --alloc-fn=av_fast_realloc --alloc-fn=av_realloc"
>                   ;;
>               valgrind-memcheck)
> -                target_exec_args="--error-exitcode=1 --malloc-fill=0x2a --track-origins=yes --leak-check=full --gen-suppressions=all --suppressions=$source_path/tests/fate-valgrind.supp"
> +                target_exec_args="--error-exitcode=1 --expensive-definedness-checks=yes --malloc-fill=0x2a --track-origins=yes --leak-check=full --gen-suppressions=all --suppressions=$source_path/tests/fate-valgrind.supp"
>                   ;;
>           esac
>       ;;


More information about the ffmpeg-devel mailing list