Re: DBI errors with create_from_cgi ?

[prev] [thread] [next] [Date index for 2004/05/19]

From: Perrin Harkins
Subject: Re: DBI errors with create_from_cgi ?
Date: 22:58 on 19 May 2004
On Wed, 2004-05-19 at 18:45, Jesse Sheidlower wrote:
> When I run this on an existing object, and leave out a required column,
> it works as expected: an error gets set and Maypole bounces me back to
> the edit page. However, when I try to create a new object, and leave out
> a required column, it hangs and eventually dumps acres of:
> 
> Out of memory during request for 104 bytes, total sbrk() is 489920512 bytes!
> Out of memory during request for 112 bytes, total sbrk() is 489920512 bytes!
> Out of memory during request for 112 bytes, total sbrk() is 489920512 bytes!
> [...]
> 
> into my Apache error logs.
> 
> Is there anything I am missing here? Or could this be some nasty underlying
> problem? Out-of-memory errors are way beyond me; that's why I use Perl ;-).

It means there's an endless loop somewhere in the code.  If it were in
Class::DBI->create() it probably would have been seen before, so I'm
guessing it's in the create_from_cgi() code.  You can probably debug it
by going through that code in the debugger or adding logging statements
to it.  You might want to double-check that the arguments you're passing
to create_from_cgi() are really what you think they are.

- Perrin

DBI errors with create_from_cgi ?
Jesse Sheidlower 22:45 on 19 May 2004

Re: DBI errors with create_from_cgi ?
Perrin Harkins 22:58 on 19 May 2004

Re: DBI errors with create_from_cgi ?
Jesse Sheidlower 23:07 on 19 May 2004

Generated at 11:35 on 01 Dec 2004 by mariachi v0.52