ImageMagick-7.0.9-21 results in crash at Image object constructor

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.
Locked
Ganesh_B
Posts: 20
Joined: 2018-03-06T05:29:40-07:00
Authentication code: 1152

ImageMagick-7.0.9-21 results in crash at Image object constructor

Post by Ganesh_B »

Hi,

We are trying to upgrade to 'ImageMagick-7.0.9-21' version and found that 'omp_init_lock(&translation_unit_mutex);' is not happening before Image object created and hence Image object constructor crashes at below line.

====
static inline void LockMagickMutex(void)
{
#if defined(MAGICKCORE_OPENMP_SUPPORT)

omp_set_lock(&translation_unit_mutex);
...
}

======

This was not the case with version - 'ImageMagick-7.0.8-12'(omp_init_lock(&semaphore_mutex);).

From some of the posts, I have found we can call optional 'InitializeMagick(*argv);' which we were not calling before.

After adding 'InitializeMagick( )' call, version 'ImageMagick-7.0.9-21' is working fine as it is initializing the mutex pointer.

My question is whether we can safely use 'InitializeMagick( )' call prior to any other Magick call with out any side effects.

Regards,
Ganesh.
(25057991)

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

Re: ImageMagick-7.0.9-21 results in crash at Image object constructor

Post by magick »

Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ http://www.imagemagick.org/download/beta/ by sometime tomorrow.

To verify our patch, post a short code snippet we can use to reproduce the problem and verify our patch is working properly.

Ganesh_B
Posts: 20
Joined: 2018-03-06T05:29:40-07:00
Authentication code: 1152

Re: ImageMagick-7.0.9-21 results in crash at Image object constructor

Post by Ganesh_B »

Hi, Please check below sample with minimal functionality.

https://drive.google.com/open?id=1FR9Cp ... F185Y-NXAc

Regards,
Ganesh.

Ganesh_B
Posts: 20
Joined: 2018-03-06T05:29:40-07:00
Authentication code: 1152

Re: ImageMagick-7.0.9-21 results in crash at Image object constructor

Post by Ganesh_B »

Hi,

When is an estimated/probable release date for final ImageMagick-7.0.9-22 version.

Regards,
Ganesh.

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

Re: ImageMagick-7.0.9-21 results in crash at Image object constructor

Post by magick »

Within a week.

Locked