|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74695 PHP Page Crash
Submitted: 2017-06-02 21:50 UTC Modified: 2017-06-21 01:47 UTC
Avg. Score:4.8 ± 0.4
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:3 (75.0%)
From: rpesta at gmail dot com Assigned:
Status: Open Package: imagick (PECL)
PHP Version: 7.0.19 OS: Windows Server 2012 R2 x64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: rpesta at gmail dot com
New email:
PHP Version: OS:


 [2017-06-02 21:50 UTC] rpesta at gmail dot com
When running the script below, Chrome shows a "Connection Reset" error.

-Apache 2.4.18
-PHP 7.0.19 x64 TS
-ImageMagick 6.9.3-7 VC14 x64
-Imagick DLL v3.4.3

The PHP error log shows the following:
[Fri Jun 02 16:43:13.193142 2017] [mpm_winnt:notice] [pid 9228:tid 496] AH00354: Child: Starting 150 worker threads.
[Fri Jun 02 16:43:18.130842 2017] [mpm_winnt:notice] [pid 5176:tid 552] AH00428: Parent: child process 9228 exited with status 3221226505 -- Restarting.
[Fri Jun 02 16:43:18.177721 2017] [mpm_winnt:notice] [pid 5176:tid 552] AH00455: Apache/2.4.18 (Win64) PHP/7.0.19 configured -- resuming normal operations
[Fri Jun 02 16:43:18.177721 2017] [mpm_winnt:notice] [pid 5176:tid 552] AH00456: Apache Lounge VC14 Server built: Dec  9 2015 11:13:29
[Fri Jun 02 16:43:18.177721 2017] [core:notice] [pid 5176:tid 552] AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24'
[Fri Jun 02 16:43:18.177721 2017] [mpm_winnt:notice] [pid 5176:tid 552] AH00418: Parent: Created child process 10552
[Fri Jun 02 16:43:18.537110 2017] [mpm_winnt:notice] [pid 10552:tid 492] AH00354: Child: Starting 150 worker threads.

Test script:
$image = new Imagick("test.png");

Expected result:
Image to be loaded in the variable.

Actual result:
It appears the script crashes. Page shows: "Connection Reset" general error instead.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-06-05 20:59 UTC]
-Status: Open +Status: Feedback
 [2017-06-05 20:59 UTC]
Thanks for the report. Please provide a backtrace as described here 

 [2017-06-05 21:52 UTC] rpesta at gmail dot com
-Status: Feedback +Status: Open
 [2017-06-05 21:52 UTC] rpesta at gmail dot com
The tutorial there is a bit different on Server 2012 and the new version of DebugDiag, but I think I got the relevant info.

The following is the crash from php.exe when the script runs.

  Problem Event Name:	BEX64
  Application Name:	php.exe
  Application Version:
  Application Timestamp:	5911e397
  Fault Module Name:	php_imagick.dll
  Fault Module Version:
  Fault Module Timestamp:	58927660
  Exception Offset:	000000000002468c
  Exception Code:	c0000409
  Exception Data:	0000000000000002
  OS Version:	6.3.9600.
  Locale ID:	1033
  Additional Information 1:	394a
  Additional Information 2:	394ab678edc3bd22fa022164e75e2a67
  Additional Information 3:	6d6a
  Additional Information 4:	6d6ae784015ea2688c0d5ad03bfd57a6

And the following is a link to the report generated by DebugDiag:
Also, here is a link to the direct DebugDiag log:
 [2017-06-21 01:47 UTC] rpesta at gmail dot com
Just wondering if y'all have received my last update to the case and checking on the status.
 [2017-07-23 00:28 UTC] alex at zoosmart dot us
image magick seems to be problematic in windows, adding this seemed to help though

imagick.c line 3782
	Sleep(100); // <------adding delay, must be some race condition
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Jan 25 17:01:27 2021 UTC