ID: 14780
Updated by: yohgaki
Reported By: [EMAIL PROTECTED]
Old Status: Assigned
Status: Critical
Bug Type: Session related
Operating System: RH 7.2
PHP Version: 4.1.1
Assigned To: yohgaki
New Comment:

Changed Status to Critical.

There are many problems with external session save handlers.....

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

[2002-01-06 22:01:57] [EMAIL PROTECTED]

Found the cause and work around. (Use of session_module_name() is
causing race) I need to reconsider how to make a real fix for this
segfault :)



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

[2002-01-06 06:19:55] [EMAIL PROTECTED]

Hi,

Here is my configure statement. Notice there's no pgsql:

./configure --with-mm --enable-inline-optimization --with-zlib
--with-oci8=/u01/app/or
acle/product/8.1.7 --disable-onstatement --enable-ftp --with-apxs 
--enable-shmop --en
able-sysvsem --with-gd


John Lim

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

[2002-01-02 17:08:20] [EMAIL PROTECTED]

I noticed this problem before your report :) It's not a mm, but pgsql
save handler though. Root of the problem is the same, I guess. 
I'm not 100% sure, yet, but multiple close calls may be the cause.



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

[2001-12-31 02:12:09] [EMAIL PROTECTED]

A simple script that reproduces the problem with "mm". Works fine for a
while until "mm" breaks under stress:

<?php
error_reporting(E_ALL);
$abc1 = '';
for ($i=0;$i<20;$i++)
        session_register('abc'.$i);
@$_SESSION['abc1'] += 2;
print "<pre>$abc1\n\n";
?>



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

[2001-12-31 01:55:44] [EMAIL PROTECTED]

When stress testing my web server with

ab -n5000 -c10 <url>

after about 1000-1500 requests the child processes start to fail.

In my apache error_log I see many entries like the following:

[Fri Dec 28 19:50:06 2001] [notice] child pid 14215 exit signal
Segmentation fault (11)

If I repeat the "ab" test several times, eventually Apache will hang and
I have to restart the web server. Here are the results:

This is ApacheBench, Version 1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd,
http://www.zeustech.net/
Copyright (c) 1998-1999 The Apache Group, http://www.apache.org/

Benchmarking semut (be patient)...
Server Software:        Apache/1.3.20
Server Hostname:        semut
Server Port:            80

Document Path:          /juris/case.php
fbba51299f
Document Length:        85383 bytes

Concurrency Level:      10
Time taken for tests:   1638.945 seconds
Complete requests:      5000
Failed requests:        3446
   (Connect: 0, Length: 3446, Exceptions: 0)
Total transferred:      429091301 bytes
HTML transferred:       427029653 bytes
Requests per second:    3.05
Transfer rate:          261.81 kb/s received

Connnection Times (ms)
              min   avg   max
Connect:        0     9   197
Processing:  1692  3263 11353
Total:       1692  3272 11550

When I switch from "mm" to "files" everything works fine. I have a
suspicion that the bug is related to the fact that I am running on an
SMP processor.





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



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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to