[solved] Imagemagick stuck in gomp_team_end()

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
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

[solved] Imagemagick stuck in gomp_team_end()

Post 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
Last edited by broucaries on 2009-03-26T10:31:44-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Imagemagick stuck in gomp_team_end()

Post 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.
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Re: Imagemagick stuck in gomp_team_end()

Post by broucaries »

Seems to be a bug in libgomp as new version 4.4 solve this problem.

Thank you.
Post Reply