Apache Crash

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Apache Crash

Postby marandi » 11. November 2011 20:12

hi
i install xampp 1.7.7 in windows 7 and wordpress on it
when i first time run wordpress everythings was fine but after that always my apache server crashs so till now i cant run wordpress in local webserver
this is the error log file of apache :
Code: Select all
[Fri Nov 11 22:34:34 2011] [notice] Parent: child process exited with status 3221225725 -- Restarting.
[Fri Nov 11 22:34:34 2011] [notice] Digest: generating secret for digest authentication ...
[Fri Nov 11 22:34:34 2011] [notice] Digest: done
[Fri Nov 11 22:34:36 2011] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri Nov 11 22:34:36 2011] [notice] Server built: Sep 10 2011 11:34:11
[Fri Nov 11 22:34:36 2011] [notice] Parent: Created child process 4108
[Fri Nov 11 22:34:37 2011] [notice] Digest: generating secret for digest authentication ...
[Fri Nov 11 22:34:37 2011] [notice] Digest: done
[Fri Nov 11 22:34:38 2011] [notice] Child 4108: Child process is running
[Fri Nov 11 22:34:38 2011] [notice] Child 4108: Acquired the start mutex.
[Fri Nov 11 22:34:38 2011] [notice] Child 4108: Starting 150 worker threads.
[Fri Nov 11 22:34:38 2011] [notice] Child 4108: Starting thread to listen on port 443.
[Fri Nov 11 22:34:38 2011] [notice] Child 4108: Starting thread to listen on port 443.
[Fri Nov 11 22:34:38 2011] [notice] Child 4108: Starting thread to listen on port 80.
[Fri Nov 11 22:34:38 2011] [notice] Child 4108: Starting thread to listen on port 80.

Image
please someone help me ...
Code: Select all
Problem signature:
  Problem Event Name:   APPCRASH
  Application Name:   httpd.exe
  Application Version:   2.2.21.0
  Application Timestamp:   4e6b3136
  Fault Module Name:   php5ts.dll
  Fault Module Version:   5.3.8.0
  Fault Module Timestamp:   4e537a04
  Exception Code:   c00000fd
  Exception Offset:   0018a7a3
  OS Version:   6.1.7600.2.0.0.256.1
  Locale ID:   1033
  Additional Information 1:   e339
  Additional Information 2:   e339f2594e7f681a95b166793376bebb
  Additional Information 3:   a678
  Additional Information 4:   a678cf9a382d32616a30d964e9b600a1

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt
marandi
 
Posts: 3
Joined: 11. November 2011 19:55
XAMPP Version: 5.6.3
Operating System: Windows 7

Re: Apache Crash

Postby Altrea » 11. November 2011 20:19

Hi marandi,

marandi wrote:
Code: Select all
[Fri Nov 11 22:34:34 2011] [notice] Parent: child process exited with status 3221225725 -- Restarting.


If you google the code 3221225725 in relation with Apache, you find out that this is a stack overflow which
occures mainly on Windows systems.

One reason for this can be recursive php loops. Difficult to debug for us.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6596
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: W7Ux64

Re: Apache Crash

Postby marandi » 11. November 2011 20:38

hi altrea
what do u mean ? im stupid in english can u explain to me more simply ?
marandi
 
Posts: 3
Joined: 11. November 2011 19:55
XAMPP Version: 5.6.3
Operating System: Windows 7

Re: Apache Crash

Postby Altrea » 11. November 2011 20:46

No i can't, sorry. Maybe someone else can.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6596
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: W7Ux64

Re: Apache Crash

Postby hackattack142 » 11. November 2011 21:12

You might be having an issue with one of your PHP extensions. If PHP has trouble initializing any PHP extensions, it will cause Apache to crash. Did you enable any extensions in the php.ini file that were not enabled by default?
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 703
Joined: 20. May 2011 23:29
XAMPP Version: 5.6.3
Operating System: Windows 7 Ultimate SP1 64-Bit

Re: Apache Crash

Postby marandi » 11. November 2011 22:26

No i did not !
marandi
 
Posts: 3
Joined: 11. November 2011 19:55
XAMPP Version: 5.6.3
Operating System: Windows 7

Re: Apache Crash

Postby Sharley » 12. November 2011 00:02

Try these solutions first:
viewtopic.php?f=16&t=48526

Then look at this topic:
viewtopic.php?f=16&t=48549

All from a search of this XAMPP for Windows English forum.

Good luck.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
XAMPP Version: 5.6.3
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Apache Crash

Postby u60 » 16. January 2013 12:56

One problem that makes me nuts was a white screen under some conditions.
The only log entry I've found was in the apache_error.log ->
[notice] Parent: child process exited with status 3221225725 -- Restarting.

After one week of deep analyze I could identify the problem down to a buffer overflow .....

Ok, step by step ...
I've started a Joomla 1.5 to 2.5 migration with the ZOO extension, on WAMP with apache 2.2.17 and php 5.3.5 on a win32 plattform while running into this exception.
(in analyze process I've also tested with apache revisions 2.2.11, 2.2.14, and php revisions 5.2.8, different combinations)

In further analyze I could reduce the error scenario to an unusual comment post, once the website did come online to the internet. The unusual comment post was a text of about 1500 bytes, where 1209 bytes within this text was posted without any spaces and carriage returns/line feeds. The text looks strange, many "special" characters were added in hex form eg %20, %3A, %3E and so on .. all text in a row, as said, all without any spaces ...
I've analysed the comment.php routine and didn't find any unusual except one line of code:
// set content in session
$this->app->session->set('com_zoo.comment.content', $content);
After some trial and errors to split the long line of content text with \n's a re-posting of the text passes without the apache crash ....
Not the %hex codes are the problem, but takes into account, that the text line couldn't be split down into smaller junks.

Another note regarding the 3221225725 exception, that a long line of configuration definition of another application causes apache exception, directed me to the solution, to isolate the problem with php's wordwrap(text,x,"\n",1) function.

With 75 characters wordwrap the text passes, with 999 characters, apache crashes.
Again by trial and error I've nailed down the problem to a limit of 677 characters that passes, and starting the 678'th character, apache crashed. This is unrelated to the apache revision used, win32 OS used, php revision used !!!

All this looks like a buffer overflow in the session environment according to the "$this->app->session->set('com_zoo.comment.content', $content);" code line ....

Current emergency fix, that works for me is the joomla2.5.x/components/com_zoo/controllers/comment.php fix
l.68 -> $content = $this->app->comment->filterContentInput(wordwrap($content,677,"\n",1));
where a line limitation of 677 characters and below works ...
to say, that the addtl. 4th parameter in the php wordwrap function cuts the long lines explicitly

One problem might be, that the comment text and meta data is stored to the session environment. As I cannot discover, if this session environment also effects cookies handling, I cannot say if this problem is only session environment related or a specific cookies problem. All I can say is, that this problem at application layer level passes down to the session handling.

What it makes me wonder is this unusual value of 677 characters that passes, and 678 that results in the apache crash.
Well known limits like 256, 512, 768, 1024 I can understand, but where does this 677 characters limit comes from?
I've still searched the web for 677 and 678 limitations and all what I've found are 32677 bytes SQL limitations ... that isn't identical to the 677 bytes problem that I've identified :-P

As the problem goes into the session environment handling, I'll suppose that this problem is a buffer overflow condition to the session environment, that cannot handle strings longer then 677 bytes or 677 double-bytes (utf-8 ?) ?!?

As the found solution doesn't relate directly to a special application, nor a special apache or php revision, I've posted this found solution to this forum under this topic, as it relates directly to the
[notice] Parent: child process exited with status 3221225725 -- Restarting.
apache exception. Maybe my findings are useful for others too, that tries to identify their apache crash problem .... :)

regards, uli ;-)
u60
 
Posts: 1
Joined: 16. January 2013 10:17
XAMPP Version: 5.6.3
Operating System: w2k, w2k3, winxp, w7

Re: Apache Crash

Postby nakohdo » 23. May 2013 11:03

Seems to be caused by a PHP bug reported at https://bugs.php.net/bug.php?id=60231
The bug report confirms the relation to certain string lengths.
There's also a test script at http://pastebin.com/dg38zb5J
nakohdo
 
Posts: 5
Joined: 06. April 2011 18:38

Re: Apache Crash

Postby nakohdo » 27. May 2013 16:12

The solution is increasing the ThreadStackSize from 1 MB (default under Windows) to 8 MB (default under Linux), see http://stackoverflow.com/questions/5058845/how-do-i-increase-the-stack-size-for-apache-running-under-windows-7 for details.
nakohdo
 
Posts: 5
Joined: 06. April 2011 18:38


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 82 guests