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: 2021-03-16 12:52 UTC
Votes:4
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: cmb (profile)
Status: Duplicate Package: imagick (PECL)
PHP Version: 7.0.19 OS: Windows Server 2012 R2 x64
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rpesta at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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();
 [2021-03-16 12:52 UTC] cmb@php.net
-Status: Open +Status: Duplicate -Assigned To: +Assigned To: cmb
 [2021-03-16 12:52 UTC] cmb@php.net
This is also tracked as issue on Github[1] with more relevant
information and discussion, so I'm closing this ticket as
duplicate.

[1] <https://github.com/Imagick/imagick/issues/295>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC