Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » PHP
  • » [PHP-DEV] Debugging possible Apache php_admin_value crash - Win32 crash trace possible? [RSS Feed]

#1 Nov. 16, 2005 22:08:52

Jani T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] Debugging possible Apache php_admin_value crash - Win32 crash trace possible?


Do you hit the same issue with using the latest PHP 5.1 snapshot?

--Jani

On Wed, 16 Nov 2005, Michael Sisolak wrote:I'm trying to debug an issue I'm seeing with PHP 5.0.5 and Apache
2.0.55 (using apache2handler SAPI) running under Windows 2000 Server.
I need to set the mssql.max_procs setting to 300. If I change it in
php.ini everything works fine and the system is quite stable. To keep
all my config changes in one place, however, I wanted to use
php_admin_value in httpd.conf instead. As soon as I switched on
"php_admin_value mssql.max_procs 300", however, Apache2 started
resetting about every 10 minutes or so with errors like:

Parent: child process exited with status 3221225477 --
Restarting.

I've tested several times and it routinely crashes when I use
php_admin_value and doesn't when I stick with just php.ini. Now
3221225477 = 0xC0000005 = Access Violation so I assume there is some
kind of memory corruption happening, but I can't find a way to debug to
see what is going on here. Of course it only happens on my production
servers and I can't get it to reproduce anywhere else.

Does anyone have suggestions about my next step to debug this? I need
to find out where the access violation is happening, but Apache eats
the error and restarts the process. Is there any magic that can be
used to tell Apache to let the error fall though so it can be caught by
Dr. Watson or something similar? Or a way to tell PHP to at least
record where the violation occurs on the crash?

Michael Sisolak




__________________________________
Start your day with Yahoo! - Make it your home page!http://www.yahoo.com/r/hs--
Give me your money at @ <http://pecl.php.net/wishlist.php/sniper>
Donating money may make me happier and friendlier for a limited period!
Death to all 4 letter abbreviations starting with P!

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#2 Nov. 17, 2005 15:25:31

Jani T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] Debugging possible Apache php_admin_value crash - Win32 crash trace possible?


Then there is no problem. Next please. :)

--Jani


On Thu, 17 Nov 2005, Michael Sisolak wrote:Jani,

Unfortunately I can't get this to reproduce in my development
environment and it's too early for me to switch to 5.1 in production.

Michael

--- Jani Taskinen <> wrote:Do you hit the same issue with using the latest PHP 5.1
snapshot?

--Jani

On Wed, 16 Nov 2005, Michael Sisolak wrote:I'm trying to debug an issue I'm seeing with PHP 5.0.5 and Apache
2.0.55 (using apache2handler SAPI) running under Windows 2000Server.I need to set the mssql.max_procs setting to 300. If I change itinphp.ini everything works fine and the system is quite stable. Tokeepall my config changes in one place, however, I wanted to use
php_admin_value in httpd.conf instead. As soon as I switched on
"php_admin_value mssql.max_procs 300", however, Apache2 started
resetting about every 10 minutes or so with errors like:

Parent: child process exited with status 3221225477 --
Restarting.

I've tested several times and it routinely crashes when I use
php_admin_value and doesn't when I stick with just php.ini. Now
3221225477 = 0xC0000005 = Access Violation so I assume there issomekind of memory corruption happening, but I can't find a way todebug tosee what is going on here. Of course it only happens on myproductionservers and I can't get it to reproduce anywhere else.

Does anyone have suggestions about my next step to debug this? Ineedto find out where the access violation is happening, but Apacheeatsthe error and restarts the process. Is there any magic that can be
used to tell Apache to let the error fall though so it can becaught byDr. Watson or something similar? Or a way to tell PHP to at least
record where the violation occurs on the crash?

Michael Sisolak




__________________________________
Start your day with Yahoo! - Make it your home page!http://www.yahoo.com/r/hs--
Give me your money at @ <http://pecl.php.net/wishlist.php/sniper>
Donating money may make me happier and friendlier for a limited
period!
Death to all 4 letter abbreviations starting with P!__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005http://mail.yahoo.com--
Give me your money at @ <http://pecl.php.net/wishlist.php/sniper>
Donating money may make me happier and friendlier for a limited period!
Death to all 4 letter abbreviations starting with P!

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#3 Nov. 17, 2005 15:39:05

Jani T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] Debugging possible Apache php_admin_value crash - Win32 crash trace possible?


I understood you. You don't test 5.1 -> then there is not problem with it.
5.1 is the next release. Not 5.0.x.

--Jani


On Thu, 17 Nov 2005, Michael Sisolak wrote:Jani,

Sorry I wasn't clear - I'm running 5.0.5 in development also. There is
something that happens with 5.0.5 + php_admin_value (or at least my
specific one) in production that I can't reproduce on another 5.0.5
machine. I assume it has to do with me not being able to accurately
reproduce the load and page usage of real users. I can't speak at all
to if I do or don't see the same issue in 5.1 yet.

Michael

--- Jani Taskinen <> wrote:Then there is no problem. Next please. :)

--Jani


On Thu, 17 Nov 2005, Michael Sisolak wrote:Jani,

Unfortunately I can't get this to reproduce in my development
environment and it's too early for me to switch to 5.1 inproduction.Michael

--- Jani Taskinen <> wrote:Do you hit the same issue with using the latest PHP 5.1
snapshot?

--Jani

On Wed, 16 Nov 2005, Michael Sisolak wrote:I'm trying to debug an issue I'm seeing with PHP 5.0.5 and Apache
2.0.55 (using apache2handler SAPI) running under Windows 2000Server.I need to set the mssql.max_procs setting to 300. If I change itinphp.ini everything works fine and the system is quite stable. Tokeepall my config changes in one place, however, I wanted to use
php_admin_value in httpd.conf instead. As soon as I switched on
"php_admin_value mssql.max_procs 300", however, Apache2 started
resetting about every 10 minutes or so with errors like:

Parent: child process exited with status 3221225477 --
Restarting.

I've tested several times and it routinely crashes when I use
php_admin_value and doesn't when I stick with just php.ini. Now
3221225477 = 0xC0000005 = Access Violation so I assume there issomekind of memory corruption happening, but I can't find a way todebug tosee what is going on here. Of course it only happens on myproductionservers and I can't get it to reproduce anywhere else.

Does anyone have suggestions about my next step to debug this? Ineedto find out where the access violation is happening, but Apacheeatsthe error and restarts the process. Is there any magic that canbeused to tell Apache to let the error fall though so it can becaught byDr. Watson or something similar? Or a way to tell PHP to atleastrecord where the violation occurs on the crash?

Michael Sisolak




__________________________________
Start your day with Yahoo! - Make it your home page!http://www.yahoo.com/r/hs--
Give me your money at @ <http://pecl.php.net/wishlist.php/sniper>
Donating money may make me happier and friendlier for a limited
period!
Death to all 4 letter abbreviations starting with P!__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005http://mail.yahoo.com--
Give me your money at @ <http://pecl.php.net/wishlist.php/sniper>
Donating money may make me happier and friendlier for a limited
period!
Death to all 4 letter abbreviations starting with P!__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.http://farechase.yahoo.com--
Give me your money at @ <http://pecl.php.net/wishlist.php/sniper>
Donating money may make me happier and friendlier for a limited period!
Death to all 4 letter abbreviations starting with P!

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

  • Root
  • » PHP
  • » [PHP-DEV] Debugging possible Apache php_admin_value crash - Win32 crash trace possible? [RSS Feed]

Board footer

Moderator control

Enjoy the 20th of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support