#20988 [Fbk->Opn]: Apache segfaults using MM session on garbage collection
| From: | verx at implix dot com | Date: | Fri, 13 Dec 2002 13:34:33 +0000 |
| Subject: | #20988 [Fbk->Opn]: Apache segfaults using MM session on garbage collection | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-27602@lists.php.net to get a copy of this message | ||
ID: 20988
User updated by: verx@implix.com
Reported By: verx@implix.com
-Status: Feedback
+Status: Open
Bug Type: Session related
Operating System: Linux 2.4.19 (Debian)
PHP Version: 4.3.0RC3
New Comment:
I know it's not a backtrace. I have just forgot to paste apache log
segfault line example in my original posting.
However. When trying to backtrace I cannot reproduce this
behavior. It's happening under constant heavy load that
can be simulated using ab -n 10000 and the example script
I have supplied. Only after about 3000-4000 request this
one happens. I cannot execute 3000 request because httpd -X
exits after several hundred requests (normal exit - no backtrace) and I
don't know why.
Previous Comments:
------------------------------------------------------------------------
[2002-12-13 07:01:55] derick@php.net
That is not a back trace, please follow the instructions as described
here:
http://bugs.php.net/bugs-generating-backtrace.php
------------------------------------------------------------------------
[2002-12-13 07:00:15] verx@implix.com
Apache segfault log entry:
[Sat Dec 14 03:41:39 2002] [notice] child pid 3613 exit signal
Segmentation fault (11)
------------------------------------------------------------------------
[2002-12-13 06:56:27] verx@implix.com
of course there should be:
<?
session_start();
$_SESSION['temp'] = 'test';
?>
semicolon missing
------------------------------------------------------------------------
[2002-12-13 06:55:24] derick@php.net
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
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.
------------------------------------------------------------------------
[2002-12-13 06:54:22] verx@implix.com
Apache 1.3.27
PHP 4.3.0RC3:
Configure Command => './configure' '--with-mysql' '--with-dom'
'--with-dom-xslt' '--with-apxs=/usr/bin/apxs' '--with-zlib'
'--with-mm'
This can be reproduced by a script:
<?
session_start()
$_SESSION['temp'] = 'test';
?>
in php.ini set garbage collection to be called often
and set MM session handler:
session.save_handler = mm
session.gc_probability = 1
session.gc_dividend = 1
session.gc_maxlifetime = 30
To reproduce run:
ab -n 10000 http://server/above_script.php
Note that this bug is also reproducible on
FreeBSD with php 4.3.2 - will not post another
bug report.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20988&edit=1