[vlc-devel] Heads up: VLC needs glibc 2.13 or later
Laurent Aimar
fenrir at elivagar.org
Thu May 5 21:44:13 CEST 2011
Hi,
On Thu, May 05, 2011 at 10:36:15PM +0300, Rémi Denis-Courmont wrote:
> Hello,
>
> Once again, a GNU/libc bug can kill VLC. This time, it is really freakin'
> stupid: glibc < 2.13 marked the memmove() parameters as restricted pointers.
> Nevermind that memmove() is The One Typical Example function that MUST NOT
> have restricted pointers.
>
> This bug is known to cause VLC to crash at run-time if compiled with
> optimization enabled, at least on GCC 4.6 or later. I do realize glibc 2.13 is
> very recent and upgrading it is not easy. But there is nothing I can do about
> that. As a work-around, you can also fix your C headers by hand to remove the
> bogus __restrict qualifiers from the memmove() declaration.
Maybe adding something like
-Drestrict
in the gcc flags in the case of the bad glibc + gcc combination would
workaround the segfault(but may create performance issues).
--
fenrir
More information about the vlc-devel
mailing list