#21804 [Opn]: php crashes iPlanet - php4_execute
| From: | dwells at amgen dot com | Date: | Fri, 31 Jan 2003 07:10:19 +0000 |
| Subject: | #21804 [Opn]: php crashes iPlanet - php4_execute | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-31731@lists.php.net to get a copy of this message | ||
ID: 21804
User updated by: dwells@amgen.com
Reported By: dwells@amgen.com
Status: Open
Bug Type: Reproducible crash
Operating System: Solaris 8
PHP Version: 4.3.1-dev
New Comment:
I've had more time to look into this, and found that the script below
will recreate the crash. Still using http_load -parallel 5, of course.
Oh, and I noticed that I accidentally posted the 4.2.3 bt here. I'll
post the 4.3.1-dev bt tomorrow.
Thanks
<?php
putenv("SOME_VAR=/this/is/some/value/here/dont/you/think");
?>
Previous Comments:
------------------------------------------------------------------------
[2003-01-29 16:17:37] dwells@amgen.com
Bug #21948 is a bit different. The crash we get is always in strlen,
and only occurs under load when we set environment variables in the
script. It sounds like #21948 happens every time, not just under load.
My naive WAG is that the load causes a resource starvation that php
does not catch. Thus a segv. But somehow this is related to environment
variables. Hmm... Perhaps a bug in the section that allocates memory
for env vars?
Thanks
------------------------------------------------------------------------
[2003-01-29 15:10:45] jmt@purplehat.net
Bug #21948 may be a related issue.
------------------------------------------------------------------------
[2003-01-23 13:08:56] dwells@amgen.com
It crashes with other scripts as well. Our developers experienced this
problem, and I found that these two
scripts reliably reproduce it.
We set the Oracle variables in the script because multiple applications
run in one web server instance - they may not use the same version of
Oracle, and they certainly use different sids.
However, when I commented out the putenv/getenv statements, the test
ran cleanly. The "byte count wrong" messages went away too. So we do
have a kludge of a work-around. It would be nice to have this fixed.
I'm not clear why setting environment variables in the php script is a
bad idea. I would expect each thread to have it's own environment...
Thanks,
David
------------------------------------------------------------------------
[2003-01-22 21:58:58] sniper@php.net
Does the crash happen only with the provided script?
And btw. you should set those envinronment variables
in the system, NOT in the script..
------------------------------------------------------------------------
[2003-01-21 13:29:00] dwells@amgen.com
Had the wrong email addr...
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21804
--
Edit this bug report at http://bugs.php.net/?id=21804&edit=1