OpenMP stable yet?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Danack
Posts: 73
Joined: 2013-10-14T10:00:25-07:00
Authentication code: 6789

OpenMP stable yet?

Post by Danack »

Hi,

I've just spent a few hours trying to figure out why ImageMagick was segfaulting in libgomp. Referencing this post from 2007 it seems that OpenMP crashing is a known issue.

Is there a version that is known to be stable on Centos 6.4, or a set of flags that need to be set to make it stable with OpenMP? Or should I just disable OpenMP when compiling ImageMagick?

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

Re: OpenMP stable yet?

Post by magick »

OpenMP support has been stable for years now. Your could try downloading ImageMagick 6.9.0, the current release and see if that helps. If you still get faults, try setting the MAGICK_THREAD_LIMIT environment variable to 2 and see if that makes a difference. If it still fails, disable OpenMP support in ImageMagick.
Danack
Posts: 73
Joined: 2013-10-14T10:00:25-07:00
Authentication code: 6789

Re: OpenMP stable yet?

Post by Danack »

For reference then, using libgomp.x86_64 version 4.4.7-11.el6 on Centos when using ImageMagick 6.9.9.0 through Imagick has issues; namely it segfaults on exit in the libgomp library.

They may be caused by using OpenMP inside an application that is also managing its own threads.

So yeah, I'll just keep OpenMP disabled.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: OpenMP stable yet?

Post by fmw42 »

Just curious if it is Imagick. Does it fail when using the terminal and command line or putting the command line in PHP exec()?
Danack
Posts: 73
Joined: 2013-10-14T10:00:25-07:00
Authentication code: 6789

Re: OpenMP stable yet?

Post by Danack »

Hi fmw,

To be precise the segfault appeared I was testing with PHP cli and the segfault was being generated during the PHP shutdown phase.

Yes, it is almost certainly a problem caused by libgomp interacting either with just Imagick, or with some aspect of the PHP internal engine, but I don't have the tools/time to investigate that much further.

cheers
Dan
Post Reply