Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Cannot allocate memory

Quote Reply
Cannot allocate memory
Hi all,

A user reported the following error while using GForum.

A fatal error has occurred:
GT::SQL::Table (981): Configuration file '/htdocs/www/cgi-bin/forum/admin/defs/gforum_Message.def' has been corrupted. Reason: Cannot allocate memory at /htdocs/www/cgi-bin/forum/admin/GForum/Template.pm line 155.


Please enable debugging in setup for more details.

He didn't say what he was doing -- and no other people have reported the error so, in the big picture, I'm not really worried about it. However, I thought it may be worthy of discussion plus I'm curious about it. I checked the log file and found three in a row as below.

$GT::SQL::Table (690): Configuration file '/htdocs/www/cgi-bin/forum/admin/defs/gforum_Message.def'
has been corrupted. Reason: Cannot allocate memory at
/htdocs/www/cgi-bin/forum/admin/GForum/Template.pm line 155.

GT::SQL::Table (981): Configuration file '/htdocs/www/cgi-bin/forum/admin/defs/gforum_Message.def'
has been corrupted. Reason: Cannot allocate memory at
/htdocs/www/cgi-bin/forum/admin/GForum/Template.pm line 155.

GT::SQL::Table (6351): Configuration file '/htdocs/www/cgi-bin/forum/admin/defs/gforum_Message.def'
has been corrupted. Reason: Cannot allocate memory at
/htdocs/www/cgi-bin/forum/admin/GForum/Template.pm line 155.


Any thoughts?

Thanks,
Mike
Quote Reply
Re: [Swaylock] Cannot allocate memory In reply to
That is a rather unusual error message - I'm not exactly where it comes from - one possibility is a memory ulimit on your (or the web server's) account. Even still, the file should not be large enough to significantly change the memory footprint. Can you e-mail me a copy of the file (jason@gossamer-threads.com), so that I can see if something inside GForum caused the error?

In order to fix the problem, I recommend you delete the gforum_Message.def file, then log into the admin, go to Setup -> SQL Server, and hit "Submit" without changing anything - make sure you leave the radio button on the default option of not overwriting existing data. It'll recreate the file you just deleted appropriately, but won't changing any data, and the error should go away.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Cannot allocate memory In reply to
Jason,

Yeah, sorta weird. I explained it to my user as a "server blip." In fact I explain most unexplainable things on the web as server blips.

Which file do you want?

thanks,
Mike
Quote Reply
Re: [Swaylock] Cannot allocate memory In reply to
In Reply To:
Which file do you want?

gforum/admin/defs/gforum_Message.def

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Cannot allocate memory In reply to
attached.
Quote Reply
Re: [Swaylock] Cannot allocate memory In reply to
Strange, the file looks perfectly normal; perhaps there is a ulimit applied to your account, and the point where this file loads just happens to push it over the edge?

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Cannot allocate memory In reply to
I'll just need to keep my eyes on things. My forum is on a shared server.

Regards and thankyou for a tremendous product!!

Mike