[Dovecot] now rc25 Re: now rc24 Re: rc22 segv when over quota

Steffen Kaiser skdovecot at smail.inf.fh-bonn-rhein-sieg.de
Fri Mar 2 10:35:47 EET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 1 Mar 2007, Timo Sirainen wrote:

> On Fri, 2007-02-23 at 09:49 +0100, Steffen Kaiser wrote:
>> o_stream_send_istream(/mnt/mailcache/dvtest/MailDir/.test/tmp/1172218409.P19175Q0M237232.ux-2s11-9)
>> failed: Success
>
> Fixed: http://dovecot.org/list/dovecot-cvs/2007-March/007916.html
>
>> dovecot: Feb 23 09:13:29 Error: child 19175 (imap) killed with signal 11
>
> Fixed: http://dovecot.org/list/dovecot-cvs/2007-March/007919.html

There was one segv immediately after I switched ro rc25, but I forgot to 
issue "ulimit" before. Then I moved around lots of mail without problem.

I added some stuff to the config (mainly LDAP & SSL).

Today I saw a segv again (below).

I now copied a bunch of message around, again, but no problem.

=======

dovecot: Mar 02 11:07:08 Error: auth(default): ldap(dvtest,10.20.10.63): 
ldap_search((&(objectClass=fhMailAlias)(uid=dvtest))) failed: No such 
object
dovecot: Mar 02 11:07:08 Error: auth(default): ldap(dvtest,10.20.10.63): 
ldap_search() failed: No such object
dovecot: Mar 02 11:07:08 Error: IMAP(dvtest): 
o_stream_send_istream(/home/dvtest/MailDir/.Drafts/tmp/1172830028.P20052Q0M313522.ux-2s11-9) 
failed: Disk quota exceeded
dovecot: Mar 02 11:07:08 Error: IMAP(dvtest): Sending log messages too 
fast, throttling..
dovecot: Mar 02 11:07:08 Error: auth(default): ldap(dvtest,10.20.10.63): 
ldap_search((&(objectClass=fhMailAlias)(uid=dvtest))) failed: No such 
object
dovecot: Mar 02 11:07:08 Error: auth(default): ldap(dvtest,10.20.10.63): 
ldap_search() failed: No such object
dovecot: Mar 02 11:07:08 Error: child 20052 (imap) killed with signal 11

I wonder: There is another login right before the crash, does this 
probably mean that thunderbird tried to open yet another connection, 
and the new one abends and not the one with the "Disc quota" error?

I tried to copy a bunch of messages from one account of the server to 
another account on the server.

The bad of the crash is that the core file is just 72KB in size and it 
does not look correct:

# file core_segv11_overquota
core_segv11_overquota: ELF 32-bit LSB core file Intel 80386, version 1 
(SYSV), SVR4-style, from 'imap'
# gdb /usr/local/dovecot.rc25/libexec/dovecot/imap core_segv11_overquota
GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you 
are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for 
details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db 
library "/lib/tls/i686/cmov/libthread_db.so.1".

Cannot access memory at address 0xb7f0f4e8
(gdb) bt full
#0  i_stream_read (stream=Cannot access memory at address 0xbf823f90
) at istream.c:54
         _stream = <value optimized out>
Cannot access memory at address 0xbf823f8c

# /usr/local/dovecot.rc25/sbin/dovecot -n
# /usr/local/dovecot.rc25/etc/dovecot.conf
log_path: /var/log/dovecot/dovecot.log
info_log_path: /var/log/dovecot/dovecot.info
protocols: imap imaps pop3 pop3s
ssl_ca_file: /etc/ssl/certs/ca.crt
ssl_cert_file(default): /etc/ssl/certs/imap.pem
ssl_cert_file(imap): /etc/ssl/certs/imap.pem
ssl_cert_file(pop3): /etc/ssl/certs/pop3.pem
ssl_key_file(default): /etc/ssl/private/imap.key
ssl_key_file(imap): /etc/ssl/private/imap.key
ssl_key_file(pop3): /etc/ssl/private/pop3.key
disable_plaintext_auth: no
verbose_ssl: yes
login_dir: /usr/local/dovecot.rc25/var/run/dovecot/login
login_executable(default): 
/usr/local/dovecot.rc25/libexec/dovecot/imap-login
login_executable(imap): /usr/local/dovecot.rc25/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/dovecot.rc25/libexec/dovecot/pop3-login
login_log_format_elements: %p: user=<%u> method=%m rip=%r lip=%l %c
verbose_proctitle: yes
first_valid_uid: 1000
mail_location: 
maildir:%h/MailDir:CONTROL=/var/cache/dovecot/%i/control:INDEX=/var/cache/dovecot/%i/index
mail_debug: yes
dotlock_use_excl: yes
maildir_copy_with_hardlinks: yes
maildir_copy_preserve_filename: yes
mail_drop_priv_before_exec: yes
mail_executable(default): /usr/local/dovecot.rc25/libexec/dovecot/imap
mail_executable(imap): /usr/local/dovecot.rc25/libexec/dovecot/imap
mail_executable(pop3): /usr/local/dovecot.rc25/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/local/dovecot.rc25/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/dovecot.rc25/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/dovecot.rc25/lib/dovecot/pop3
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %u
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): oe-ns-eoh
namespace:
   type: private
   separator: .
   inbox: yes
   hidden: yes
auth default:
   mechanisms: plain login
   cache_size: 10
   username_chars: 
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890
   verbose: yes
   debug: yes
   debug_passwords: yes
   passdb:
     driver: ldap
     args: /usr/local/dovecot.rc25/etc/dovecot-ldap.conf
   passdb:
     driver: pam
     args: cache_key=%u session=yes dovecot
   userdb:
     driver: prefetch
   userdb:
     driver: ldap
     args: /usr/local/dovecot.rc25/etc/dovecot-ldap.conf
   userdb:
     driver: passwd
   socket:
     type: listen
     client:
       path: /var/run/dovecot/auth-client
       mode: 432
     master:
       path: /var/run/dovecot/auth-master
       mode: 432
       group: mail
plugin:
   quota: fs

I've built Dovecot with:


   $ ./configure --with-ldap --with-sql --with-pgsql 
- --prefix=/usr/local/dovecot.rc25


Bye,

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBRef+CC9SORjhbDpvAQLeJQf+PDEkPadX4P1jWTsUkSHORy9wTBmyhjW9
bZMHhN9RsZN6iqS1o1F/08yDHYZmjppiaGdA+BXRKuzaw5eCsdKxvqeSO2pL01Vi
2/hrnJgXWBKWin0Bg4SPw4jBWK232xSqGiMTLpnKSzSNwbHo/q9WQTtxHML5Vklw
WwOhysT29YcDkFPVgV2+hybA1oTHZIQo10IWjRDWydElHw7ovnHJr2F2BkMlTnfx
JzfeiB1ClIGXDt0PzRVJhK10k6PLol3CVic8BFpmVzS9fEwRuTIeaX/Qewjve2/X
w+7u2WxBl8p05P20er91nNtMDUPB6zlwRhCTCl5379FyqRKYvPWjsg==
=6sA7
-----END PGP SIGNATURE-----


More information about the dovecot mailing list