For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > March 2004 > session expiration causes segfault- consistently









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author session expiration causes segfault- consistently
Mike

2004-03-18, 6:27 pm


PHP 4.3.4 on Apache2, Mandrake 9.2.

I have my phpsession cookie set to expire in 14400 seconds (four hours) in
my php.ini (I do
not want browser life cookies for this application). If I come back after 5
hours, and use any of my (very simple) php apps, I just get:

"An error occured while loading http://localhost/php-bin/rtt.php:
Connection to host localhost is broken"
That's in Konquerer, I think it's a generic error printed by Konquerer, not
php. I can recreate the error in IE as well and it gives the generic IE
error page.

In my apache error log I get:

[Mon Feb 23 21:58:48 2004] [notice] child pid 4555 exit signal Segmentation
fault (11)

This is all it takes to recreate the error (after the session expires):

<?
session_start(); //take this out and the error goes away.
print 'wefwef';
?>

This is as consistent as the northern star, easy to recreate. I can set my
expiration to 200 seconds and cause the error over and over... There's
nothing unusual about either my php compile or my apache.

I've pretty much ruled out garbage collection because there's no activity
at all during those five hours, so therefore no gc happens (and my gc
probability is set to 1 anyway).

I need to insure that this doesn't keep happening on the production site or
we have to bail out of php and go to something else,

please advise tia
Mike
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com