php.net |  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
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:2 (66.7%)
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
Have you experienced this issue?
Rate the importance of this bug to you:

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

Using:
-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:
---------------
<?php
$image = new Imagick("test.png");
$image->clear();
?>



Expected result:
----------------
Image to be loaded in the variable.

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-06-05 20:59 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2017-06-05 20:59 UTC] ab@php.net
Thanks for the report. Please provide a backtrace as described here https://bugs.php.net/bugs-generating-backtrace-win32.php 

Thanks.
 [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:	7.0.19.0
  Application Timestamp:	5911e397
  Fault Module Name:	php_imagick.dll
  Fault Module Version:	7.0.10.0
  Fault Module Timestamp:	58927660
  Exception Offset:	000000000002468c
  Exception Code:	c0000409
  Exception Data:	0000000000000002
  OS Version:	6.3.9600.2.0.0.400.8
  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: https://drive.google.com/file/d/0B5WVZ-w4E18tRWtzNDE3ZDc3MGc/view?usp=sharing
Also, here is a link to the direct DebugDiag log: https://drive.google.com/file/d/0B5WVZ-w4E18taG9UYnNiS1RLeGM/view?usp=sharing
 [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
PHP_MSHUTDOWN_FUNCTION(imagick)
{
	Sleep(100); // <------adding delay, must be some race condition
	MagickWandTerminus();
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Nov 14 03:01:30 2019 UTC