Page 1 of 1

[solved] Imagemagick stuck in gomp_team_end()

Posted: 2009-03-16T01:35:41-07:00
by broucaries
hi,

From debian bug
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=518771

On amd64 ImageMagick hangs on gomp_team_end()

at futex_wait
source: /build/buildd/gcc-4.3-4.3.3/build/x86_64-linux-gnu/libgomp/../../../src/libgomp/config/linux/x86/futex.h:44
at gomp_team_end
source: /build/buildd/gcc-4.3-4.3.3/build/x86_64-linux-gnu/libgomp/../../../src/libgomp/team.c:332
at AcquireImageColormap
binary: /usr/lib/libMagickCore.so.1
at RegisterXPMImage
binary: /usr/lib/ImageMagick-6.4.5/modules-Q16/coders/xpm.so
at ReadImage
binary: /usr/lib/libMagickCore.so.1
at Magick::Image::read(std::string const&)
binary: /usr/lib/libMagick++.so.1


Test case here http://bugs.debian.org/cgi-bin/bugrepor ... bug=518771

Regards

Bastien

Re: Imagemagick stuck in gomp_team_end()

Posted: 2009-03-16T05:56:45-07:00
by magick
We cannot reproduce the problem with the current release and ImageMagick 6.4.8. We ran the test under a number of different environments including Fedora 11 development X64 with gcc 4.4.0 and 2 cores and Redhat Enterprise 5.2 X64 with gcc 4.3.0 and 4 cores. We ran the test program several thousand times without any delays / hangs. Note, we do not have access to a Debian system.

In the mean-time you can test yourself by copying the program to a file magick++.cpp and compiling and executing with these commands:
  • g++ `Magick++-config --cxxflags --cppflags` -o magick++ magick++.cpp `Magick++-config --ldflags --libs`
    magick++
To fix the reported problem, you can try upgrading to the current release, 6.5.0, and see if the problem persists or try disabling OpenMP in your release. Add --disable-openmp to the configure script command line when ImageMagick is built.

Re: Imagemagick stuck in gomp_team_end()

Posted: 2009-03-26T10:31:29-07:00
by broucaries
Seems to be a bug in libgomp as new version 4.4 solve this problem.

Thank you.