Bug#672706: Bug#672947: fcmatch.c:548: IA__FcFontMatch: Assertion `result != ((void *)0)' failed.

Reinhard Tartler siretart at gmail.com
Wed May 16 19:31:10 UTC 2012


On Wed, May 16, 2012 at 3:37 PM, Reimar Döffinger
<Reimar.Doeffinger at gmx.de> wrote:
> On Wed, May 16, 2012 at 01:07:11PM +0200, Fabian Greffrath wrote:
>> Am Montag, den 14.05.2012, 23:23 +0200 schrieb Alex Wilk:
>> > mplayer: fcmatch.c:548: IA__FcFontMatch: Assertion `result != ((void *)0)' failed.
>>
>> In line 1163 in file sub/font_load_ft.c of the mplayer2 source code the
>> following code is called:
>>
>>       fc_pattern = FcFontMatch(0, fc_pattern, 0);
>>
>> The third argument passed to FcFontMatch() is the *result pointer, which
>> is 0 in this case. Newer versions of fontconfig seem to include an
>> assertion that this may never be 0, so it fails.
>
> Really funny of them to add an assertion for an argument they don't even
> have any documentation on.
> At least nothing that I could find describes what the meaning of it is,
> nor whether NULL is supposed to be valid or not...

A bit more digging reveals this commit:

http://cgit.freedesktop.org/fontconfig/commit/src/fcmatch.c?id=a18ca17b6211f62fbd1d893811b94b8c83db4cc0

That commit references this bug:

https://bugs.freedesktop.org/show_bug.cgi?id=40452

Now go figure... :-/

-- 
regards,
    Reinhard





More information about the pkg-multimedia-maintainers mailing list