[Dovecot] Segfault in dovecot-lda 2.0.5

Stephan Bosch stephan at rename-it.nl
Sun Oct 10 18:48:17 EEST 2010


  Op 10-10-2010 17:30, Sean Cardus schreef:
> Hi,
>
> I've recently started using dovecot-lda to handle my local maildir 
> deliveries from Exim.  Unfortunately I've been experiencing the 
> occasional failed delivery - My Exim logs were showing:
>
>     Child process of virtual_dovecot_delivery transport (running 
> command "/usr/local/libexec/dovecot/dovecot-lda -d $local_part@$domain 
> -f $sender_address -a $original_local_part@$original_domain") was 
> terminated by signal 11 (Segmentation fault)
>
> I originally thought a specific mail was causing the crash, but 
> calling the command myself delivered the mail without any issues.  
> However, I found if I ran a script that delivered the same mail 10 
> times, I could reliably cause multiple segfaults all with the 
> following backtrace:
>
> #0  0x005581e9 in maildir_sync_set_new_msgs_count (ctx=0x0, count=1) 
> at maildir-sync-index.c:50
> No locals.
> #1  0x0055f3c0 in maildir_save_move_files_to_newcur (_ctx=0x85afe60) 
> at maildir-save.c:857
>         files = {arr = {buffer = 0x8555a08, element_size = 4}, v = 
> 0x8555a08,
>           v_modifiable = 0x8555a08}
>         mfp = 0x8555a2c
>         new_changed = false
>         mf = 0x85affa8
>         newdir = true
[...]

> Any ideas?
>

Yes, this was reported several times already. First thread:

http://www.dovecot.org/list/dovecot/2010-October/053475.html

Apply this change:

http://hg.dovecot.org/dovecot-2.0/rev/e2f9baa436f2

That should fix it.

Regards,

Stephan.


More information about the dovecot mailing list