[FFmpeg-trac] #11479(avcodec:new): Segfault with LTO - MacOS M4

FFmpeg trac at avcodec.org
Thu Feb 20 19:01:51 EET 2025


#11479: Segfault with LTO - MacOS M4
-------------------------------------+-------------------------------------
             Reporter:  Levon        |                    Owner:  (none)
  Gevorgyan                          |
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  SEGFAULT     |               Blocked By:
  macos arm                          |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Description changed by Levon Gevorgyan:

Old description:

> Summary of the bug:
> Any build of ffmpeg/ffprobe from e504247db6edb1cb47a9c562277f6e671f4bde1d
> or onwards results in segfault 11 when LTO is enabled on MacOS arm64 (M4
> base model). Specific commit using git bisect. Big buck bunny is used as
> an example, but I can confirm the segfault occurs on a wide range of
> media types and codecs (including mp3 audio).
>
> How to reproduce:
> {{{
> $ ./configure --enable-lto --disable-doc --disable-htmlpages --disable-
> podpages --disable-txtpages
> $ make
> $ ./ffprobe big-buck-bunny.mp4
> Segmentation fault: 11
>
> # environment
> $ clang --version
> Apple clang version 16.0.0 (clang-1600.0.26.6)
> Target: arm64-apple-darwin24.3.0
> Thread model: posix
>
> $ uname -mrs
> Darwin 24.3.0 arm64
> 24.3.0 Darwin Kernel Version 24.3.0
> }}}

New description:

 Summary of the bug:
 Any build of ffmpeg/ffprobe from e504247db6edb1cb47a9c562277f6e671f4bde1d
 or onwards results in segfault 11 when LTO is enabled on MacOS arm64 (M4
 base model). Specific commit found using git bisect. Big buck bunny is
 used as an example, but I can confirm the segfault occurs on a wide range
 of media types and codecs (including mp3 audio).

 How to reproduce:
 {{{
 $ ./configure --enable-lto --disable-doc --disable-htmlpages --disable-
 podpages --disable-txtpages
 $ make
 $ ./ffprobe big-buck-bunny.mp4
 Segmentation fault: 11

 # environment
 $ clang --version
 Apple clang version 16.0.0 (clang-1600.0.26.6)
 Target: arm64-apple-darwin24.3.0
 Thread model: posix

 $ uname -mrs
 Darwin 24.3.0 arm64
 24.3.0 Darwin Kernel Version 24.3.0
 }}}

--
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11479#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list