http://bugs.winehq.org/show_bug.cgi?id=30755
Bug #: 30755 Summary: gdiplus tests fail if stix fonts present Product: Wine Version: 1.5.4 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com Classification: Unclassified
On Centos 6, "make test" causes (among others) the failures
runtest -q -P wine -M gdiplus.dll -T ../../.. -p gdiplus_test.exe.so ~/wine-git/dlls/gdiplus/tests/font.c && touch font.ok ... font.c:396: Test failed: Expected 0, got 3 font.c:397: Test failed: got NULL font collection make[1]: *** [font.ok] Error 2 /home/dank/wine-git/tools/runtest -q -P wine -M gdiplus.dll -T ../../.. -p gdiplus_test.exe.so /home/dank/wine-git/dlls/gdiplus/tests/graphics.c && touch graphics.ok ... graphics.c:1978: Test failed: Expected 00000000, got 00000010 Unhandled exception: page fault on read access to 0x00000048 in 32-bit code (0x6834d776). Backtrace: =>0 0x6834d776 get_log_fontW+0x16() in gdiplus (0x0032f8c8) 1 0x68358d57 get_font_hfont+0xf6() in gdiplus (0x0032f9f8) 2 0x6835d1cd GdipDrawString+0x26c() in gdiplus (0x0032fb78) 3 0x71cb8763 test_GdipDrawString+0x232() in gdiplus_test (0x0032fc38) 4 0x71cc5c45 func_graphics+0xb84() in gdiplus_test (0x0032fd18) ...
Looks like GdipNewInstalledFontCollection() which calls EnumFontFamiliesExW() which calls add_font_proc() which calls GdipCreateFontFamilyFromName() and is failing because the latter function somehow chokes on the stix fonts (http://stixfonts.org) bundled with centos 6.
Doing sudo chmod 000 /usr/share/fonts/stix works around the problem.