[Mimedefang] Just noticed a strange "frame_nn stack oerflow" error
Paul Murphy
pjm at ousekjarr.org
Wed May 24 16:15:22 EDT 2006
Ken,
> Has anyone seen this error, or know what it's trying to tell me?
>
> May 24 09:00:49 mail01 mimedefang-multiplexor[21989]: Slave
> 24 stderr: #
> Warning: frame_nn stack oerflow
Ah, Watson - I deduce that you are using SpamAssassin 3.1, and have installed
the recent OCR plugin which uses "gocr".
Google shows a terrible wrapped representation of the raw TAR file with a
link to the CVS server which is down at the moment, but taking a look at the
source via http://jocr.sourceforge.net/ works
See src/pgm2asc.c, line 548:
546 if (overflow==1){
547 overflow|=2;
548 fprintf(stderr,"# Warning: frame_nn stack oerflow\n");
549 }
550 free(buf);
>From looking at the code, it looks like the image is too complex, and the
code has a recursion check which fires when its internal stack (actually a
buffer) gets too large, which is defined as a constant value of 1024.
It appears from a very quick glance that it sets the flag when the memory
allocation hits 1024 bytes, checks it at the end of the block and sets it to
2 if it was set to 1 and complains to stderr, and then does nothing else, so
it can be safely ignored. In theory you could set it higher and recompile,
or take out the warning...
Re "oerflow" - spelling mistakes can be _so_ useful sometimes!
Paul.
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.7.0/346 - Release Date: 23/05/2006
More information about the MIMEDefang
mailing list