php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39581 Apache crash on php5ts.dll
Submitted: 2006-11-22 08:19 UTC Modified: 2009-11-01 19:25 UTC
Votes:18
Avg. Score:4.5 ± 0.8
Reproduced:17 of 17 (100.0%)
Same Version:11 (64.7%)
Same OS:11 (64.7%)
From: durumdara at gmail dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.2.0 OS: win2k3 sp1
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
39 - 38 = ?
Subscribe to this entry?

 
 [2006-11-22 08:19 UTC] durumdara at gmail dot com
Description:
------------
New site:
Apache 2.2.3
PHP 5.2.0

When I start a common request on phpinfo, apache crashed on.
The event log containing similar events:

Faulting application httpd.exe, version 2.2.3.0, faulting module php5ts.dll, version 5.2.0.0, fault address 0x000974cd.

and

Faulting application httpd.exe, version 2.2.3.0, faulting module unknown, version 0.0.0.0, fault address 0x01dc2dc0.




Reproduce code:
---------------
<?php
     phpinfo();
php?> 

Expected result:
----------------
The apache crashed, service stopped...


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-22 09:52 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2006-11-30 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2006-12-06 15:00 UTC] jason dot egan at gmail dot com
I'm getting the exact same error with the exact same setup (Apache 2.2.3 and PHP 5.2.0) While I'm unable to do a backtrace, I was able to find this in the error.log generated by Apache:

[Wed Dec 06 08:43:01 2006] [notice] Apache/2.2.3 (Win32) PHP/5.2.0 configured -- resuming normal operations
[Wed Dec 06 08:43:01 2006] [notice] Server built: Jul 27 2006 16:49:49
[Wed Dec 06 08:43:01 2006] [notice] Parent: Created child process 168
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\PHP\\ext\\php_exif.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\PHP\\ext\\php_ifx.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\PHP\\ext\\php_oci8.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\PHP\\ext\\php_pdo_oci.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\PHP\\ext\\php_pdo_oci8.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\PHP\\ext\\php_pspell.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\PHP\\ext\\php_sybase_ct.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\PHP\\ext\\php_ibm_db2.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\PHP\\ext\\php_imagick.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\PHP\\ext\\php_ingres.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\PHP\\ext\\php_netools.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\PHP\\ext\\php_oracle.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\PHP\\ext\\php_svn.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\PHP\\ext\\php_yaz.dll' - The specified procedure could not be found.\r\n in Unknown on line 0
PHP Notice:  Constant XML_ELEMENT_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_TEXT_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_CDATA_SECTION_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_ENTITY_REF_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_ENTITY_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_PI_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_COMMENT_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_DOCUMENT_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_DOCUMENT_TYPE_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_DOCUMENT_FRAG_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_NOTATION_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_HTML_DOCUMENT_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_DTD_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_ELEMENT_DECL_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_DECL_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_ENTITY_DECL_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_NAMESPACE_DECL_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_LOCAL_NAMESPACE already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_CDATA already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_ID already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_IDREF already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_IDREFS already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_ENTITY already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_NMTOKEN already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_NMTOKENS already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_ENUMERATION already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_NOTATION already defined in Unknown on line 0
[Wed Dec 06 08:43:02 2006] [notice] Child 168: Child process is running
[Wed Dec 06 08:43:02 2006] [notice] Child 168: Acquired the start mutex.
[Wed Dec 06 08:43:02 2006] [notice] Child 168: Starting 250 worker threads.
[Wed Dec 06 08:43:02 2006] [notice] Child 168: Starting thread to listen on port 80.

All of the 'missing' modules are, in fact, there. Hopefully someone else here understands more about this than I do.

Follow-up:
Repairing the install of PHP (via running php-5.2.0-win32-installer.msi) did not work. I uninstalled PHP altogether. Upon reinstallation there is an error that stops the installation. This happens every time and I remember it happening before as well. If you acknowledge the error and run the setup file again, and then choose "repair", it completes the install successfully.

Upon reinstalling PHP5 it still crashes out the same way. This is frustrating because I set the machine up yesterday and it worked just fine. I shut it down, went home for the day, and upon returning to start some basic development it crashes. Hopefully this information helps!
 [2006-12-06 18:32 UTC] swummer at gmail dot com
Hi...
Maybe i have the answer for our problems.
I change the ../../PHP/php5apache2.dll to ../../PHP/php5apache2_2.dll and the error doesn?t appear again. I?m still testing, and everything it?s seems ok.
Hug.
 [2006-12-06 20:44 UTC] jason dot egan at gmail dot com
swummer, would you mind clarifying that a little? My current install uses php5apache2_2.dll as the default file name. I've gone ahead and changed it to php5apache2.dll, updated my httpd.conf, and restarted the server. I still have the same issues no matter how it is named.
 [2006-12-22 10:15 UTC] johnr at silver-bullet dot co dot nz
I had EXACTLY the same issue. Same error when installing PHP, etc. 

When I went to uninstall I noticed thaat I had TWO versions of PHP installed... 4.3 and 5.2. 

I uninstalled both and then reinstalled PHP 5.2 and everything worked sweet. 

BUT I also ONLY installed the MySQL extension the second time around so was the answer having two versions installed or was it one of the extensions?
 [2007-02-07 14:42 UTC] abel dot online at xs4all dot nl
This bug appeared next to impossible to workaround. However, after several hours, I found that the following sequence of actions removed the error. I assume W2K3, PHP52 and MySql50.

1) Install using the wizard, set option for integrating in Apache 2.2, do NOT set any extensions.

2) Restart Apache and test its stability

3) Run the wizard again. Now install ONE/TWO extension(s), only "MySql" and/or "MySqli".

4) Manually edit php.ini (in c:\program files\php). Change the line with the ext-dir to (including quotes):
extension_dir="C:\Program Files\PHP\ext"

5) Uncomment the line with php_mysql.dll

6) Restart Apache and test (careful, gently, php may crash again!)

It worked for me. Any other sequence of actions, including installing some other extensions, crashed it. Selecting all extensions always crashed Apache in php5ts.dll (I consider it a severe bug, because it php actually crashes its host Apache, which is evil).
 [2007-12-20 12:02 UTC] azatyar at gmail dot com
You should disable the following module (php.ini):
;extension=php_threads.dll
After that the Apache won't.

p.s. php 5.2.5, apache 2.2.6.
 [2009-11-01 19:21 UTC] info at silkcode dot com
Guys, after hours of investigations I finally found the reason - old 
DLLs in system32 - so just copy all DLLs from your latest PHP 
distribution into system32 - they'll overwrite the potentially old ones. 
These olds were present from earlier dances with old PHP versions.

Regards, hope this helps, too easy.
 [2009-11-01 19:25 UTC] pajoye@php.net
DLL mess. no bug > bogus.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC