ID:               39020
 Updated by:       [EMAIL PROTECTED]
 Reported By:      hugo at leisink dot net
-Status:           Open
+Status:           Assigned
 Bug Type:         Reproducible crash
 Operating System: Debian Linux
 PHP Version:      5.1.6
-Assigned To:      
+Assigned To:      dmitry


Previous Comments:
------------------------------------------------------------------------

[2006-10-11 09:47:26] hugo at leisink dot net

#0  0x4028daff in memcpy () from /lib/libc.so.6
#1  0x082343d9 in zend_strndup (s=0xe485454 <Address 0xe485454 out of
bounds>, length=3221225471)
    at /usr/src/php/php5.2-200610030830/Zend/zend_alloc.c:1779
#2  0x082adaa3 in fcgi_get_params (req=0xe485454,
    p=0xbffedc20 "P_COOKIEpma_collation_connection=utf8_unicode_ci;
pma_lang=en-iso-8859-1; pma_charset=iso-8859-1;
pma_cookie_username-1=wckGFw8uHyROd%2Bz3D6DaiQ%3D%3D", end=0xbffedcb6
"")
    at /usr/src/php/php5.2-200610030830/sapi/cgi/fastcgi.c:422
#3  0x082ae092 in fcgi_read_request (req=0xbfffdc20) at
/usr/src/php/php5.2-200610030830/sapi/cgi/fastcgi.c:506
#4  0x082ae673 in fcgi_accept_request (req=0xbfffdc20) at
/usr/src/php/php5.2-200610030830/sapi/cgi/fastcgi.c:703
#5  0x082b042b in main (argc=3, argv=0xbffffd24) at
/usr/src/php/php5.2-200610030830/sapi/cgi/cgi_main.c:1361

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

[2006-10-11 09:19:35] [EMAIL PROTECTED]

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-10-07 06:50:38] hugo at leisink dot net

New problem: for some of my sites, I got FastCGI working. For some
sites not. PHP dumps a 200MB core file in /tmp. I think we really got a
crash here.

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

[2006-10-03 12:25:40] hugo at leisink dot net

Ok, I've got something interesting. I've been digging through the
source and found the statement PHP_FCGI_MAX_REQUESTS. I've found the
file /sapi/cgi/README.FastCGI, which says some things about the
environment settings PHP_FCGI_CHILDREN and PHP_FCGI_MAX_REQUESTS. I'm
running PHP now with 5 children and everything looks oke (Don't close
this bugreport yet, please. Wanna do some more tests first). It even
survived several stresstests with 'ab'.

But now I have this question: Why is this important (read: necessary)
information NOT in the manualpage!?!?!

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

[2006-10-03 11:19:50] hugo at leisink dot net

5.2.0RC5-dev also quits/crashes. I agree that Valgrind doesn't show any
crash. But the result is the same: PHP stops running.  I'm trying real
hard to find out what is happing or what causes PHP to quit/crash. It
looks like it's random. Somethings it stops after 100 requests,
somethings after 5000. 

I'm using Debian sarge, which comes with PHP 4.3.10. This version has
the same problem.

I'm writing my own webserver and I'm now implementing FastCGI support.
So, it is possible that my webserver doesn't send the right FastCGI
commands/record information. But if so, it shouldn't make PHP to stop
running.

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

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/39020

-- 
Edit this bug report at http://bugs.php.net/?id=39020&edit=1

Reply via email to