[SA-exim] exim processes stuck using the CPU -> v1.3 released

Marc MERLIN marc at merlins.org
Tue, 21 May 2002 00:12:40 -0700


On Mon, May 20, 2002 at 11:01:56PM -0500, dman wrote:
> I've got exim 4.04 with Marc Merlin's local_scan() function (v 1.1).

Note that you will have problems (very occasionally) with anything less than
version 1.2.1, since it doesn't parse multiline headers correctly when they
come from SA (I wasn't expecting any, but the SA code has apparently been
changed to generate some now)

> The system is Linux 2.4.18 and is using an IDE disk with ext3
> filesystem.  Tonight I found 5 exim processes each consuming as much
> CPU time as possible.  Connecting to each one with gdb showed the
> following backtrace :
> 
> #0  0x40271c9c in _IO_un_link () from /lib/libc.so.6
> #1  0x402680cf in fclose () from /lib/libc.so.6

Mmmh, so there is a problem while removing messages on disk. How weird.

> The 5 running processes each have a different file open in the
> SAdevnull directory.  Each of those files are for the exact same
> (stock quote) spam messaged from an excite.com address.
 
Mmmh, they shouldn't. Once the spam is written on disk, the FH should be
closed.
Ah, yeah, I didn't close the file myself in the code (small oversight), it
only got closed when the process exited.
It  shouldn't be  fatal, but  it's not  great either,  and might  somehow be
causing the problem you see.
 
This is something that should be fixed though, so I've just released v1.3
http://marc.merlins.org/linux/exim/sa.html

Marc
-- 
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
  
Home page: http://marc.merlins.org/   |   Finger marc_f@merlins.org for PGP key