#10549: Segfault when decoding aac
-------------------------------------+-----------------------------------
Reporter: Abbott | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: avcodec
Version: git-master | Resolution:
Keywords: aac avcodec | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-----------------------------------
Comment (by Abbott):
Replying to [comment:3 kseniya-k]:
> A very similar issue is happening to me. ffprobe (which is used by
ffplay and mpv) segfaults when opening anything with using the aac audio
codec. Except, when I look at the stack trace, it segfaults at
"src/libavcodec/aacdec_template.c:2227". I am also on Gentoo Linux. Yes, I
have tried manually grabbing the source code for the recently released
version 6.0.1 from github and compiling (with fairly similar configuration
options), but that didn't help. Do you know what was the last version
where this did not happen?
>
> Glibc version: (Gentoo 2.37-r7 (patchset 10)) stable release version
2.37.
The issue I was experiencing had to do with not setting my `CPU_FLAGS_X86`
correctly and one of the functions in libavcodec is using an instruction
that I had not enabled (for me it was `vmovdqa` from avx). I had `-avx` in
my ffmpeg USE, but for some reason avx is enabled anyway when it detects
that my CPU can do it, even though the instruction is disabled in
make.conf. To check and fix this, install app-portage/cpuid2cpuflags and
populate `CPU_FLAGS_X86` in make.conf with what you get from that program.
Ensure your ffmpeg USE reflects what your CPU can do and then rebuild
ffmpeg. Your ffmpeg and ffprobe should stop segfaulting after that.
I wanted to update the big here for posterity, but because this is not a
bug with ffmpeg, this bug can be closed.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10549#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac
To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".