freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft] core dumps with freetype 2.1.9 and AIX 5.2


From: Mark Frost
Subject: [ft] core dumps with freetype 2.1.9 and AIX 5.2
Date: Wed, 23 Mar 2005 12:58:14 -0500
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Hello.  I'm trying to build freetype 2.1.9 on an AIX 5.2 platform.  I'm
using gcc 3.4.3 using AIX's ld (i.e. non-gnu).

I'm using the following simple program as a test:

 /* Cribbed from GD library's config script test */

/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char FT_Init_FreeType ();
int main ()
{
FT_Init_FreeType ();
return 0;
}

I compile that using:

/opt/www/bin/gcc -o ct -g -O2 -DFT_DEBUG_LEVEL_TRACE=1
-I/opt/www/include/freetype2 -I/opt/www/include -L/opt/www/lib
-Wl,-blibpath:/opt/www/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.3:/opt/www/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.3/../../..:/usr/lib:/lib
-L/opt/www/lib test.c -lfreetype  -lpng -lz -lm  -liconv

and it compiles fine.  When I run it I get the infamous "Segmentation
fault (core dumped)".  I had been seeing core dumps with GD and
displaying fonts and now I'm down to suspecting freetype.

Here's the little stack trace from this core dump:

$ gdb ./ct ./core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-ibm-aix5.2.0.0"...
Core was generated by `ct'.
Program terminated with signal 11, Segmentation fault.
#0  FT_New_Library (memory=0x1, alibrary=0x1)
    at /appl/wideacc/src/freetype-2.1.9/src/base/ftobjs.c:3207
3207        *alibrary = library;
(gdb) bt
#0  FT_New_Library (memory=0x1, alibrary=0x1)
    at /appl/wideacc/src/freetype-2.1.9/src/base/ftobjs.c:3207
#1  0xd3be5120 in ?? ()
#2  0xd3be5120 in ?? ()
Previous frame identical to this frame (corrupt stack?)
(gdb)

Here's info on my gcc if it's relevant:

$ gcc -v
Reading specs from /opt/www/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.3/specs
Configured with: /appl/wideacc/src/gcc-3.4.3/configure --prefix=/opt/www
--enable-languages=c,c++ --enable-threads=aix --disable-nls
Thread model: aix
gcc version 3.4.3


Unfortunately, the project I'm working on requires that this be
functional and I've spent lots of time pouring over the code and
watching it run and I've not come to any conclusions as to what's going
on.  But then again, I'm no expert either :-)

Thanks

Mark






reply via email to

[Prev in Thread] Current Thread [Next in Thread]