Menu

#164 Memory Leak in base_cache.inc.php [1.3.5(marie)]

BASE
closed-fixed
Interface (166)
5
2007-03-02
2007-02-26
No

See also: request 1649659

There is a memory leak created in includes/base_cache.inc.php

This causes BASE to die when attempting to display any alert data at all.

Our working theory is that this only becomes apparent as the number of sensors increases.

if ( ($archive_exists == 1) && (@$_COOKIE['archive'] != 1) ) {
$db2 = NewBASEDBConnection($DBlib_path, $DBtype);
$db2->baseConnect($archive_dbname, $archive_host, $archive_port,
$archive_user, $archive_password);
$archive_ccid_lst = $db2->baseExecute("SELECT MAX(cid) FROM acid_event WHERE sid='".$sid."'");
$archive_ccid_row = $archive_ccid_lst->baseFetchRow();
$archive_ccid = $archive_ccid_row[0];
if ( $archive_ccid == NULL ) $archive_ccid = 0;
} else {
$archive_ccid = 0;
}

A Fix is attached

Discussion

  • Stephen Sadowski

    Patch for base_cache.inc.php in the 1.3.5 release

     
  • Kevin Johnson

    Kevin Johnson - 2007-02-27
    • assigned_to: nobody --> secureideas
     
  • Kevin Johnson

    Kevin Johnson - 2007-02-27

    Logged In: YES
    user_id=836228
    Originator: NO

    I will look at this today.....

     
  • Kevin Johnson

    Kevin Johnson - 2007-03-02
    • status: open --> closed
     
  • Kevin Johnson

    Kevin Johnson - 2007-03-02

    Logged In: YES
    user_id=836228
    Originator: NO

    Checked into CVS. Will be part of 1.3.6

    Kevin

     
  • Kevin Johnson

    Kevin Johnson - 2007-03-02
    • status: closed --> closed-fixed