Jouni K. Seppänen <[EMAIL PROTECTED]> writes:

> Another data point: a recent svn version of matplotlib segfaults on my
> OS X system, and ktrace suggests it occurs while it is reading
> CharcoalCY.dfont. 

Looks like a freetype bug: the following code segfaults when linked
against libfreetype.6.3.10 but not when linked against
libfreetype.6.3.16. Freetype has some code to read dfont files, which
apparently had a bug in the older version, and this is triggered by the
new code that reads in all font files.

#include <ft2build.h>
#include FT_FREETYPE_H

int main()
{
  FT_Library library;
  FT_Face face;
  int error;

  error = FT_Init_FreeType(&library);
  if (error) {
    printf("FT_Init_FreeType error %d\n", error);
    return;
  }

  error = FT_New_Face(library, "/Library/Fonts/CharcoalCY.dfont", 0, &face);
  if (error) {
    printf("FT_New_Face error %d\n", error);
    return;
  }

  return;
}
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to