[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mailq output error



On Thu, Mar 01, 2001 at 03:17:35PM +0200, Matti Aarnio wrote:

> Subject: Re: Mailq output error

>   This is very old problem, but where, that I haven't been able to
>   locate, as I see it so damn rarely myself.
> 
>   And it is a beauty-wart, not real system threatening thing, that
>   is why I havent' burned very much effort there (of lately).
> 
>   Do you see any odd things mentioned at your  $LOGDIR/scheduler ?
>   Of the machine which has the decrementing counters ?
>   I would like to know which part of the internal book-keeping is
>   doing double-free, or some such.  (To have even some *hint* at it!)

I've reported this already some time ago; after sending below mail I
figured out that ETRN was a reliable way for me to reproduce the problem.
The zmailer I used was the latest cvs version of that time.

Date: 	Fri, 24 Nov 2000 17:57:14 +0100
From: Ralf Baechle <ralf@uni-koblenz.de>
To: zmailer@nic.funet.fi
Subject: accounting bug
Message-ID: <20001124175714.A11793@bacchus.dhis.org>

Zmailer's internal accounting as displayed by mailq -Q seems to be a bit
broken.  This happend with the CVS snapshot of November 23 on RH 6.2/i386.

[ralf@lappi ralf]$ mailq -Q
smtp/*/0
    smtp/oss.sgi.com/0		R=2   A=17 P={9811} HA={1}s FA={3}s OF={2} S={STUFF} UF=0 QA=2h19m46s
	Threads:    1 Msgs:     2 Procs:   2 Idle:   1 Plim:  50 Flim: 150 Tlim: 1
Kids: 2  Idle:  1  Msgs:   1  Thrds:   1  Rcpnts:    2  Uptime: 2h35m19s
Msgs in 8 out 5 stored 1 Rcpnts in 7 out 5 stored 2
[ralf@lappi ralf]$

Now I start a ETRN queue run in a separate window and a few seconds later:

[ralf@lappi ralf]$ mailq -Q
smtp/*/0
	Threads:    0 Msgs:     0 Procs:   2 Idle:   2 Plim:  50 Flim: 150 Tlim: 1
Kids: 2  Idle:  2  Msgs:  -1  Thrds:   0  Rcpnts:    0  Uptime: 2h35m30s
Msgs in 8 out 7 stored 4294967295 Rcpnts in 7 out 7 stored 0
[ralf@lappi ralf]$

4294967295 is 0xffffffff or -1.

And a bit later:

[ralf@lappi ralf]$ mailq -Q
Kids: 0  Idle:  0  Msgs:  -2  Thrds:   0  Rcpnts:    0  Uptime: 2h58m34s
Msgs in 9 out 7 stored 4294967294 Rcpnts in 7 out 7 stored 0
[ralf@lappi ralf]$

4294967294 is 0xfffffffe or -2.

Hard to deduce the previous queue content but at that point there are no
more files left in the queue and transport directories.

Btw, is there a way to start a full queue run?  ETRN allows to rune queue
runs only destination per destination so isn't what I want on the dial
machine which I use to evaluate zmailer snapshots before use on real
servers.

  Ralf