Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002553 [Quercus] minor always 03-25-08 14:10 03-26-08 16:59
Reporter mo View Status public  
Assigned To mo
Priority normal Resolution fixed  
Status closed   Product Version 3.1.6
Summary 0002553: OutOfMemoryError in phpBB3 on database restore
Description This is under WinXP with PhpBB 3.0.0.

In the Admin Control Panel, create a database backup of
all tables and store it with the gzip option selected.
Then, do a restore operation after selecting the backup
that was just created. This generates a OutOfMemoryError
with the following stack:

  $this->module->main() (functions_module.php)
    function main() (acp_database.php)

On line 323, the fgetd function is invoked to parse the contents
of the gzipped file. The JVM runs out of memory in the fgetd()
function (also defined in acp_database.php).

The file descriptor passed to this method was opened by bzopen(),
so it is likely that the combination of the bzip file and the
seek() operations in the fgetd() function are the cause of this

A database backup/restore in plain text (not gzip) works as expected.
Additional Information
Attached Files

- Relationships

- Notes
03-26-08 16:54

Looking into this bug uncovered a number of issues with gzseek:


A couple of file module APIs were also broken when dealing with
write only files:

03-26-08 16:59

Confirmed that this fixes restore from gzip backup functionality in phpBB3.

- Issue History
Date Modified Username Field Change
03-25-08 14:10 mo New Issue
03-26-08 16:50 mo Status new => assigned
03-26-08 16:50 mo Assigned To  => mo
03-26-08 16:54 mo Note Added: 0002917
03-26-08 16:59 mo Status assigned => closed
03-26-08 16:59 mo Note Added: 0002918
03-26-08 16:59 mo Resolution open => fixed
03-26-08 16:59 mo Fixed in Version  => 3.1.6

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker