Re: Resize filters

Bob Friesenhahn <[email protected]> Mon, 23 May 2011 14:40:24 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.apis
Message-ID <[email protected]>
On Mon, 23 May 2011, [email protected] wrote:
>>
>> Segmentation faults are likely your fault.  However, it is wise to
>> invoke InitializeMagick(NULL) at the start of your program.
>
> InitializeMagick() was done. That the segfaults would turn out to be
> my fault wouldn't be surprising, but it's not yet obvious to me what
> needs repair.

Add '-g -ggdb' to your build options in order to enable debugging and 
then use GDB to debug the issue.  Make sure that you have installed 
the 'graphicsmagick-dbg' Ubuntu package so that you can see what is 
going on inside GraphicsMagick.

Use

   ulimit -c unlimited

in your shell configuration in order to allow core dump files to be 
created.

Many people find Kdbg ('kdgb' Ubtuntu package) to provide a 
user-friendly way to do debugging.

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay