#23275 [Fbk->NoF]: serialize(), $_SESSION, seg fault
| From: | sniper@php.net | Date: | Tue, 20 May 2003 17:32:39 +0000 |
| Subject: | #23275 [Fbk->NoF]: serialize(), $_SESSION, seg fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-40075@lists.php.net to get a copy of this message | ||
ID: 23275
Updated by: sniper@php.net
Reported By: moxley at moxleydata dot com
-Status: Feedback
+Status: No Feedback
Bug Type: Session related
Operating System: Linux 4.2
PHP Version: 4.3.2-RC
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2003-05-15 13:27:07] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
And if it still crashes, add the backtrace here.
------------------------------------------------------------------------
[2003-04-21 10:03:40] sniper@php.net
I get this with latest STABLE CVS:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 136337046 bytes) in Unknown on line 0
------------------------------------------------------------------------
[2003-04-18 16:18:46] moxley at moxleydata dot com
PHP apparently crashes under these contidions:
1. Use of serialize() on the $_SESSION variable
-AND-
2. $_SESSION contains an object
-AND-
3. object's class is not defined within the context of the serialize()
call
Please contact me for gdb backtrace, php.ini, or other information if
you cannot reproduce the problem with the script below.
Code that breaks:
<?php
if( isset($_GET['serialize']) )
{
session_start();
$serialized = serialize($_SESSION); // Causes seg fault
print "Did not crash";
}
else
{
session_start();
class Simple {}
$_SESSION['simpleObj'] = new Simple();
print '<a href="' . $_SERVER['PHP_SELF'] .
'?serialize">serialize</a>';
}
?>
Apache 1.3.27 error log:
[Fri Apr 18 14:04:05 2003] [notice] child pid 15705 exit signal
Segmentation fault (11)
[Fri Apr 18 14:04:05 2003] [notice] child pid 15697 exit signal
Segmentation fault (11)
[Fri Apr 18 14:04:05 2003] [notice] child pid 15693 exit signal
Segmentation fault (11)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23275&edit=1