[magick-users] NewMagicWand causes segmentation fault

Stefano Giorgetti sgiorgetti at katamail.com
Fri Jul 20 14:42:27 PDT 2007


I've make a program using libwand.so.9 on a Kubuntu machine, and it 
works really well.
I've uploaded source files on a debian based server and then recompiled 
the program.
When I run the program, I've got a segmentation fault at these lines:
------------------------------------
PUBLIC void initWand(){
    MagickWandGenesis();
    printf("init A\n");
    pMW = NewMagickWand();            /*<---- this is the point that 
causes segmentation fault */
    printf("init B\n");
    pDW = NewDrawingWand();
    printf("init C\n");
}
------------------------------------
pMW and PDW are externally defined in globals.h

------------------------------------
#ifndef GLOBALS_H_
#define GLOBALS_H_

#include <wand/magick_wand.h>
#include <wand/drawing-wand.h>

GLOBAL        MagickWand             *pMW;
GLOBAL        DrawingWand            *pDW;

#endif /*GLOBALS_H_*/
------------------------------------

I can't get out of here.
Thanks


More information about the Magick-users mailing list