[Bug lto/85132] ffmpeg runtime segfault with lto

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Mar 31 10:15:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85132

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #9 from Martin Liška <marxin at gcc dot gnu.org> ---
So it's really caused by --enable-hardcoded-tables. With that you have in
sinewin.c pre-processed source file:

extern const INTFLOAT __attribute__ ((aligned (32))) ff_sine_960[960];

As you can se, it's const (a.k.a. READONLY). Thus doing a write to it in
ff_sine_window_init causes a segfault.

Thus closing as invalid.


More information about the Gcc-bugs mailing list