php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78465 Segfault in MSHUTDOWN
Submitted: 2019-08-27 14:20 UTC Modified: 2021-01-24 17:17 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:2 (100.0%)
From: remi@php.net Assigned:
Status: Open Package: gmagick (PECL)
PHP Version: 7.4.0beta4 OS: GNU/Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: remi@php.net
New email:
PHP Version: OS:

 

 [2019-08-27 14:20 UTC] remi@php.net
Description:
------------
Exactly same issue than https://github.com/Imagick/imagick/issues/295

Same workaround seems to work

PHP_MSHUTDOWN_FUNCTION(gmagick)
{
	DestroyMagick();
	usleep(4242);

	return SUCCESS;
}



Patches

gmagick-bug78465.patch (last revision 2020-02-19 10:17 UTC by remi@php.net)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-08-27 18:02 UTC] danack@php.net
Remi, you can't just add a random sleep to 'fix' bug.

*shuffles feet*

Hey, look over there, an eagle!

*exits room*
 [2020-02-19 10:17 UTC] remi@php.net
The following patch has been added/updated:

Patch Name: gmagick-bug78465.patch
Revision:   1582107421
URL:        https://bugs.php.net/patch-display.php?bug=78465&patch=gmagick-bug78465.patch&revision=1582107421
 [2021-01-24 17:17 UTC] rasmus@php.net
I have looked at this a bit. It is happening on the dlclose(). You can also prevent the crash by setting ZEND_DONT_UNLOAD_MODULES=1 or most likely by compiling PHP itself using -fopenmp. Neither are good solutions though.

Hopefully we can find a real solution, otherwise maybe we add a check to see if PHP itself is compiled with openmp support and if it isn't do the ThreadsResource=1 thing.
 [2022-12-27 10:07 UTC] melindaetinw81 at gmail dot com
ok  for the information you shared. Loved the way you explained everything in this blog.
(https://www.gomedicare.care/)github.com
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 17:01:31 2024 UTC