Segmentation Fault on convert -resize

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
mr_sarge

Segmentation Fault on convert -resize

Post by mr_sarge »

Hi,

I have somebug with convert. On Ubuntu linux 9.04. Installed imagemagick with all dependancy (apt-get build-dep imagemagick).

If I try to resize a picture I got a segmentation fault.

command: convert 1.jpg -resize 300x300 2.jpg

in syslog I have:
Sep 7 22:33:21 serveur kernel: [387054.357626] convert[3043]: segfault at 2c ip b78fa851 sp bfb5cb20 error 6 in libgomp.so.1.0.0[b78f5000+7000]



If I run it in DBG I get:

Code: Select all

(gdb) run 1.jpg -resize 300x300 2.jpg
Starting program: /usr/bin/convert 1.jpg -resize 300x300 2.jpg
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb7900720 (LWP 3104)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7900720 (LWP 3104)]
0xb7a97851 in gomp_barrier_wait (barrier=0x2c) at ../../../src/libgomp/config/linux/mutex.h:47
47      ../../../src/libgomp/config/linux/mutex.h: No such file or directory.
        in ../../../src/libgomp/config/linux/mutex.h
Tested: convert a.jpg b.png and it work great. I don't know why resize failed....

Thanks
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Segmentation Fault on convert -resize

Post by magick »

Looks like a bug in libgomp. The solution is to download / install the latest release of ImageMagick and see if that fixes the problem or rebuild your release of ImageMagick without OpenMP support (e.g. ./configure --disable-openmp).
mr_sarge

Re: Segmentation Fault on convert -resize

Post by mr_sarge »

I have instalelled from source with the option you tell me.

I now have an error when try to convert something:

error while loading shared libraries: libMagickCore.so.2: cannot open shared object file: No such file or directory

The file is there: /usr/local/lib/libMagickCore.so.2

Do it need to be somewhere else?

Thanks
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Segmentation Fault on convert -resize

Post by magick »

Try 'ldconfig /usr/local/lib'. The command may be different on your host. Look for the command used to configure dynamic linker run-time bindings.
mr_sarge

Re: Segmentation Fault on convert -resize

Post by mr_sarge »

It works ! thanks !
Post Reply