ID:               21804
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

Bug #21948 may be a related issue.

------------------------------------------------------------------------

[2003-01-23 13:08:56] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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

Reply via email to