Page 1 of 1

Segmentation Fault on convert -resize

Posted: 2009-09-07T20:28:14-07:00
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

Re: Segmentation Fault on convert -resize

Posted: 2009-09-08T05:29:49-07:00
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).

Re: Segmentation Fault on convert -resize

Posted: 2009-09-08T08:29:18-07:00
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

Re: Segmentation Fault on convert -resize

Posted: 2009-09-08T08:39:27-07:00
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.

Re: Segmentation Fault on convert -resize

Posted: 2009-09-08T08:42:57-07:00
by mr_sarge
It works ! thanks !