On Mon, Apr 12, 2004 at 02:46:47PM -0700, Raghu Ram Murthy wrote: > Hi, > > I enable freetype support and compiled. When I run > pgserver, it crashed with segmentation fault > immediately while starting. > > I tacked the problem and here is the description.
Please include a backtrace from gdb, this description really doesn't say anything useful. If the crash is on this ft_strdup line, look at the value of pfid->fs.name and if it's wrong, find out why. > > In the file vidbase/font_freetype.c and in the > function ft_face_load and at the line > pfid->fs.name = ft_strdup(pfid->fs.name); > > I am thinking that the argument to ft_strdup fn is > something else, because there is no point in assigning > pfid->fs.name the same value. Yes, there is a point. fs.name starts out owned by Freetype, duplicating it now gives pgserver a copy of that string it can deallocate or keep around at will. IIRC this is because the original copy of that string is stored in a cache and may disappear later, so the font engine needs a separate copy for its permanent face list. As I said above, if there is a problem with fs.name, tell us what it is (NULL, a bad name, a bad address?) and try to find out why. That's coming from freetype pretty much directly, so you may just be trying to load a font format that confuses freetype or does something odd with face names. --Micah -- Only you can prevent creeping featurism! ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Pgui-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/pgui-devel
