I tested it with gcc and with clang (the result below) * ERROR: media-video/ffmpeg-4.4.2::gentoo failed (test phase): * emake failed emerge -info Portage 3.0.30 (python 3.10.5-final-0, default/linux/amd64/17.1/desktop, gcc-11.3.0, glibc-2.34-r13, 5.18.12-gentoo-HL_01 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.18.12-gentoo-HL_01-x86_64-Intel-R-_Core-TM-_i5-6400_CPU_@_2.70GHz-with-glibc2.34 KiB Mem: 24512892 total, 12084464 free KiB Swap: 8388604 total, 8305660 free Timestamp of repository gentoo: Sat, 16 Jul 2022 00:30:01 +0000 Head commit of repository gentoo: b2af7644c6a077992cfdb18f231f3d35a365422e sh bash 5.1_p16 ld GNU ld (Gentoo 2.37_p1 p2) 2.37 app-misc/pax-utils: 1.3.4::gentoo app-shells/bash: 5.1_p16::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.1-r3::gentoo dev-lang/python: 3.9.13::gentoo, 3.10.5::gentoo dev-lang/rust: 1.60.0::gentoo dev-util/cmake: 3.22.4::gentoo dev-util/meson: 0.62.2::gentoo sys-apps/baselayout: 2.8::gentoo sys-apps/openrc: 0.44.10::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.13-r2::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.37_p1-r2::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/clang: 14.0.4::gentoo sys-devel/gcc: 11.3.0::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.7::gentoo sys-devel/lld: 14.0.4::gentoo sys-devel/llvm: 14.0.4::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.15-r3::gentoo (virtual/os-headers) sys-libs/glibc: 2.34-r13::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: crossdev location: /var/db/repos/portage-crossdev masters: gentoo priority: 10 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" AR="llvm-ar" CBUILD="x86_64-pc-linux-gnu" CC="clang" CFLAGS="-O2 -pipe -march=skylake -fstack-protector-strong -D_FORTIFY_SOURCE=2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXX="clang++" CXXFLAGS="-O2 -pipe -march=skylake -fstack-protector-strong -D_FORTIFY_SOURCE=2" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ https://ftp.gwdg.de/pub/linux/gentoo/ https://mirror.netcologne.de/gentoo/ https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed -Wl,-z,relro,-z,now" MAKEOPTS="-j8" NM="llvm-nm" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" RANLIB="llvm-ranlib" SHELL="/bin/bash" USE="X a52 aac acl acpi alsa amd64 blas bluetooth branding btrfs bzip2 cairo cdda cdio cdr clang cli colord corefonts cpudetection crypt cups cxx dbus default-compiler-rt default-lld dig dri dts dvd dvdr elogind emacs encode exif ffmpeg fftw flac fontconfig fortran fpx gdbm gegl gif gles2 gphoto2 gpm graphicsmagick graphite gstreamer gtk gui harfbuzz hdri hscolour iconv icu introspection ipv6 jpeg jpeg2k lapack lcms lensfun libaom libaribb24 libass libcaca libdrm libglvnd libilbc libnotify librtmp libsoxr libtesseract libtirpc libxml2 llvm-libunwind lm-sensors mad mariadb mng mp3 mp4 mpeg mpi multilib ncurses nls nptl ogg openexr opengl openmp pam pango pcre pcre16 pcre32 pdf perl png policykit ppds pulseaudio python q32 q8 qt5 raw readline sdl seccomp sensord sensors smp sound spell split-usr ssl startup-notification svg system-boost system-ffmpeg system-icu system-png test tiff tls-heartbeat truetype udev udisks unicode upower usb uxa v4l valgrind vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xmp xpm xv xvid xwayland xwidgets zeroconf zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon fuji kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 pentax" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="intel i915 i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, ARFLAGS, AS, ASFLAGS, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= media-video/ffmpeg-4.4.2::gentoo was built with the following: USE="X alsa bzip2 cdio cpudetection dav1d encode fontconfig gnutls gpl iconv jpeg2k libaom libaribb24 libass libcaca libdrm libilbc librtmp libsoxr libtesseract libxml2 mp3 network opengl postproc pulseaudio sdl svg threads truetype v4l vorbis vulkan x264 xvid zlib (-amf) -amr -amrenc (-appkit) -bluray -bs2b -chromaprint -chromium -codec2 (-cuda) -debug -doc -fdk -flite -frei0r -fribidi -gcrypt -gme -gmp -gsm -hardcoded-tables -iec61883 -ieee1394 -jack -kvazaar -ladspa -libv4l -lv2 -lzma (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -nvenc -openal -opencl -openh264 -openssl -opus -oss -pic -rav1e -rubberband -samba -snappy -sndio -speex -srt -ssh -static-libs -svt-av1 -test -theora -twolame -vaapi -vdpau -verify-sig -vidstab (-vmaf) -vpx -webp -x265 -zeromq -zimg -zvbi" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 -3dnow -3dnowext -fma4 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" FEATURES="distlocks userpriv binpkg-dostrip news merge-sync strict splitdebug ebuild-locks xattr multilib-strict usersandbox parallel-fetch usersync network-sandbox config-protect-if-modified unmerge-orphans buildpkg-live pid-sandbox qa-unresolved-soname-deps unknown-features-warn assume-digests sfperms userfetch protect-owned ipc-sandbox unmerge-logs fixlafiles preserve-libs binpkg-logs binpkg-docompress sandbox binpkg-multi-instance" [ebuild R ] media-video/ffmpeg-4.4.2 USE="X alsa bzip2 cdio cpudetection dav1d encode fontconfig gnutls gpl iconv jpeg2k libaom libaribb24 libass libcaca libdrm libilbc librtmp libsoxr libtesseract libxml2 mp3 network opengl postproc pulseaudio sdl svg test* threads truetype v4l vorbis vulkan x264 xvid zlib (-amf) -amr -amrenc (-appkit) -bluray -bs2b -chromaprint -chromium -codec2 (-cuda) -debug -doc -fdk -flite -frei0r -fribidi -gcrypt -gme -gmp -gsm -hardcoded-tables -iec61883 -ieee1394 -jack -kvazaar -ladspa -libv4l -lv2 -lzma (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -nvenc -openal -opencl -openh264 -openssl -opus -oss -pic -rav1e -rubberband -samba -snappy -sndio -speex -srt -ssh -static-libs -svt-av1 -theora -twolame -vaapi -vdpau -verify-sig -vidstab (-vmaf) -vpx -webp -x265 -zeromq -zimg -zvbi" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 -3dnow -3dnowext -fma4 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher"
Please include the full build.log.
How to do? It is huge.
Created attachment 792161 [details] build.log
(In reply to Sam James from comment #1) > Please include the full build.log. attached it
(In reply to Herbert from comment #4) > (In reply to Sam James from comment #1) > > Please include the full build.log. > > attached it I need to change the wording: It is a clang-test-issue. I switched ffmpeg to gcc compiler, and test does not fail.
/var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64.amd64/libavformat/tests/seek /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64.amd64/tests/data/fate/acodec-pcm-s8.mov Test seek-acodec-flac failed. Look at tests/data/fate/seek-acodec-flac.err for details. /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64.amd64/libavformat/tests/seek /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64.amd64/tests/data/fate/acodec-pcm-u8.wav /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2/tests/fate-run.sh: line 78: 14576 Segmentation fault $target_exec $target_path/"$@" TEST seek-acodec-pcm-s16be /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2/tests/fate-run.sh fate-seek-acodec-pcm-s16be "" "" "/var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64.amd64" 'run libavformat/tests/seek /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64.amd64/tests/data/fate/acodec-pcm-s16be.mov' '' '/var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2/tests/ref/seek/acodec-pcm-s16be' '' '1' '' '' '' '' '' '' '' '' '' '' make: *** [/var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2/tests/Makefile:256: fate-seek-acodec-flac] Error 139 make: *** Waiting for unfinished jobs.... /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64.amd64/libavformat/tests/seek /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64.amd64/tests/data/fate/acodec-pcm-s16be.mov /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64.amd64/ffmpeg -nostdin -nostats -noauto_conversion_filters -y -cpuflags all -auto_conversion_filters -flags +bitexact -idct simple -sws_flags +accurate_rnd+bitexact -fflags +bitexact -threads 1 -i /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64.amd64/tests/data/lavf/lavf.apng -pix_fmt rgb24 -f crc /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64.amd64/tests/data/lavf-apng.lavf.crc ---- Two things: 1. Share tests/data/fate/seek-acodec-flac.err 2. Try get a backtrace from the segfaulting test?
(In reply to Sam James from comment #6) > /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64. > amd64/libavformat/tests/seek > /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64.amd64/ > tests/data/fate/acodec-pcm-s8.mov > Test seek-acodec-flac failed. Look at tests/data/fate/seek-acodec-flac.err > for details. > /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64. > amd64/libavformat/tests/seek > /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64.amd64/ > tests/data/fate/acodec-pcm-u8.wav > /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2/tests/fate-run. > sh: line 78: 14576 Segmentation fault $target_exec $target_path/"$@" > TEST seek-acodec-pcm-s16be > /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2/tests/fate-run. > sh fate-seek-acodec-pcm-s16be "" "" > "/var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64. > amd64" 'run libavformat/tests/seek > /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64.amd64/ > tests/data/fate/acodec-pcm-s16be.mov' '' > '/var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2/tests/ref/seek/ > acodec-pcm-s16be' '' '1' '' '' '' '' '' '' '' '' '' '' > make: *** > [/var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2/tests/Makefile: > 256: fate-seek-acodec-flac] Error 139 > make: *** Waiting for unfinished jobs.... > /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64. > amd64/libavformat/tests/seek > /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64.amd64/ > tests/data/fate/acodec-pcm-s16be.mov > /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64.amd64/ > ffmpeg -nostdin -nostats -noauto_conversion_filters -y -cpuflags all > -auto_conversion_filters -flags +bitexact -idct simple -sws_flags > +accurate_rnd+bitexact -fflags +bitexact -threads 1 -i > /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64.amd64/ > tests/data/lavf/lavf.apng -pix_fmt rgb24 -f crc > /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2-abi_x86_64.amd64/ > tests/data/lavf-apng.lavf.crc > > ---- > Two things: > 1. Share tests/data/fate/seek-acodec-flac.err > 2. Try get a backtrace from the segfaulting test? /tests/data/fate/seek-acodec-flac.err: /var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2/tests/fate-run.sh: line 78: 14590 Segmentation fault $target_exec $target_path/"$@" This is line 78: run(){ test "${V:-0}" -gt 0 && echo "$target_exec" $target_path/"$@" >&3 $target_exec $target_path/"$@" I do not know how to get a backtrace in the running emerge process. If you help me I can do it.
Sorry, I'd missed your reply. I'm not sure how to make ffmpeg's test suite run under gdb because it uses a wrapper. However... I came across this bug when adding a patch for a Clang 14 issue reported in #gentoo. Looking into the test you mentioned which fails, I get https://reviews.llvm.org/D105169?id=368033#3069158 (which is linked in the patch I've added) which mentions ff_seek_frame_binary. I suspect it's the same bug :) So, please retest with 4.4.3, but I think it should be fine now. Thanks for the report and I'm sorry we didn't get to the bottom of it sooner.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f499582f7119a0485f60e1f2cd741eacc58c0fba commit f499582f7119a0485f60e1f2cd741eacc58c0fba Author: Sam James <sam@gentoo.org> AuthorDate: 2022-10-09 23:04:21 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-10-09 23:10:34 +0000 media-video/ffmpeg: add 4.4.3 * Drop -latomic workaround added for bug 782811, bug 790590. Fixed upstream in https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/78062c6d71324fa89708211213b4267d2a57b806. * Fix UB in ff_seek_frame_binary-crash causing a crash with >= Clang 14. Might be the issue hit in bug 858806 (seems very likely). Bug: https://bugs.gentoo.org/782811 Bug: https://bugs.gentoo.org/790590 Closes: https://bugs.gentoo.org/858806 Signed-off-by: Sam James <sam@gentoo.org> media-video/ffmpeg/Manifest | 2 + media-video/ffmpeg/ffmpeg-4.4.3.ebuild | 598 +++++++++++++++++++++ ...4.4.3-clang-14-ff_seek_frame_binary-crash.patch | 46 ++ 3 files changed, 646 insertions(+)