[Dovecot] possible bug leading to lmtp crashes

Trever L. Adams trever.adams at gmail.com
Tue Jun 7 07:57:40 EEST 2011


On 05/19/2011 07:20 AM, Trever L. Adams wrote:
>
> May 17 04:01:02 dovecot: auth: Panic: file ../../src/lib/array.h: line
> 189 (array_idx_i): assertion failed: (idx * array->element_size <
> array->buffer->used)
>
> This is usually repeated 2 or more times near a crash. On the machine
> that doesn't crash, I NEVER see this. On the machines that crash, there
> isn't (or doesn't seem to be) a 1:1 correlation. ** THERE IS A 1:1 FOUND LATER **
>
> Trever
Ok, I think I have figured out the cause, but no the problem in the
code. There were three machines TS, PP, ST. TS and ST had identical
configurations with auth_username_format = %Lu. PP had it = %u. PP
started crashing when I changed it to %Lu.

As mentioned the kerberos/ldap setup is Samba4 here. PP had
administrator and guest all lower case, ST had administrator but Guest.
TS had Administrator and Guest. When I changed all
auth_username_format=%u and ST Guest to guest (in userPrincipalName, I
didn't mess with anything else), ST and PP stopped having any problems
(at least for the last 6 hours even with things like the doveadm calls
below which would always have at least one crash).

I just changed TS to be administrator and guest and did the doveadm and
some other things. No crashes. So, why is this the case when it will
deliver (dovecot deliver) the email but will cause crashes some times? I
do not know why. And logins work to imaps.

The doveadm:

doveadm expunge -A mailbox TRASH savedbefore 30d
doveadm expunge -A mailbox SPAM savedbefore 30d
doveadm expunge -A mailbox SPAM savedbefore 2d SEEN
doveadm expunge -A mailbox Dangerous savedbefore 1w
doveadm expunge -A mailbox Infected savedbefore 1w

(complete backtraces of some things found at:
https://bugzilla.redhat.com/show_bug.cgi?id=697325)

Thank you,
Trever Adams
-- 
"To fall in love is to create a religion that has a fallible god." -- JLB

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20110606/09e5e1f8/attachment.bin>


More information about the dovecot mailing list