Search found 6 matches

by pmevawala
2011-02-02T05:51:22-07:00
Forum: Bugs
Topic: Segfault in wandtest on sparc10.
Replies: 9
Views: 16386

Re: Segfault in wandtest on sparc10.

Looks like I've uncovered the bug in IM.
I was getting segfaults with the annotation functions. This was happening only on sparc10 with all the IM releases including the latest 6.6.7-4. We have same version working properly on other platforms (Solaris 10 x86_64 etc.)

Changed this code and segfault ...
by pmevawala
2011-02-01T05:47:00-07:00
Forum: Bugs
Topic: Segfault in wandtest on sparc10.
Replies: 9
Views: 16386

Re: Segfault in wandtest on sparc10.

Basically code gets segfault because of these two lines in wand/wandtest.c

(void) DrawAnnotation(drawing_wand,15,5,(const unsigned char *) "Magick");
...
status=MagickAnnotateImage(magick_wand,drawing_wand,70,5,90,"Image");

Firstly I commented status=MagickAnnotateImage(magick_wand,drawing_wand ...
by pmevawala
2011-01-24T21:15:02-07:00
Forum: Bugs
Topic: Segfault in wandtest on sparc10.
Replies: 9
Views: 16386

Re: Segfault in wandtest on sparc10.

Did you try with the exact same configuration on sparc10 with gcc343?

./configure CC="gcc -m64 -static-libgcc" CXX="g++ -m64 -static-libgcc" CXXFLAGS="-DNDEBUG -g -O2" CFLAGS="-DNDEBUG -g -O2" --with-quantum-depth=8 --without-perl --without-tiff --without-x --without-gslib --without-freetype ...
by pmevawala
2011-01-23T22:54:11-07:00
Forum: Bugs
Topic: Segfault in wandtest on sparc10.
Replies: 9
Views: 16386

Re: Segfault in wandtest on sparc10.

No luck with ImageMagick-6.6.7-1 as well. I even tried to use system libs instead of our built it binaries ( for zlib, bz2, jpeg, png). I'm building as 64 bit binaries. (see -m64 flag)
by pmevawala
2011-01-21T22:34:14-07:00
Forum: Bugs
Topic: Segfault in wandtest on sparc10.
Replies: 9
Views: 16386

Re: Segfault in wandtest on sparc10.

If I comment these lines in ImageMagick-6.5.5-6/wand/wandtest.c then segfault goes away.
(void) DrawAnnotation(drawing_wand,15,5,(const unsigned char *) "Magick");
status=MagickAnnotateImage(magick_wand,drawing_wand,70,5,90,"Image");

Further debugging shows that,
If I comment this line in ...
by pmevawala
2011-01-20T09:57:40-07:00
Forum: Bugs
Topic: Segfault in wandtest on sparc10.
Replies: 9
Views: 16386

Segfault in wandtest on sparc10.

#export PLATFORM=sparc-sun-solaris2.10

ImageMagick-6.5.5-6 Configured as
./configure CC="gcc -m64 -static-libgcc" CXX="g++ -m64 -static-libgcc" CXXFLAGS="-DNDEBUG -g -O2" CFLAGS="-DNDEBUG -g -O2" CPPFLAGS="-I${EXT_HOME}/${PLATFORM}/include" LDFLAGS="-L${EXT_HOME}/${PLATFORM}/lib" --with-quantum ...