[Dovecot] Dovecot v2.0.rc2 (875598cd7e26): Core dump upon client login

Thomas Leuxner tlx at leuxner.net
Sat Jul 17 09:20:44 EEST 2010


Latest HG dies upon client login. Rolling back to 2.0.rc2 (7dd7adba1c9e) restores functionality. Dump attached.

Jul 17 07:31:04 spectre dovecot: master: Dovecot v2.0.rc2 (875598cd7e26) starting up
[…]
Jul 17 07:32:06 spectre dovecot: master: Error: service(imap): child 29169 killed with signal 11 (core dumped)

GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib/dovecot/libdovecot-storage.so.0...Reading symbols from /usr/lib/debug/usr/lib/dovecot/libdovecot-storage.so.0.0.0...done.
done.
Loaded symbols for /usr/lib/dovecot/libdovecot-storage.so.0
Reading symbols from /usr/lib/dovecot/libdovecot.so.0...Reading symbols from /usr/lib/debug/usr/lib/dovecot/libdovecot.so.0.0.0...done.
done.
Loaded symbols for /usr/lib/dovecot/libdovecot.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib/dovecot/modules/lib01_acl_plugin.so...Reading symbols from /usr/lib/debug/usr/lib/dovecot/modules/lib01_acl_plugin.so...done.
done.
Loaded symbols for /usr/lib/dovecot/modules/lib01_acl_plugin.so
Reading symbols from /usr/lib/dovecot/modules/lib02_imap_acl_plugin.so...Reading symbols from /usr/lib/debug/usr/lib/dovecot/modules/lib02_imap_acl_plugin.so...done.
done.
Loaded symbols for /usr/lib/dovecot/modules/lib02_imap_acl_plugin.so
Reading symbols from /usr/lib/dovecot/modules/lib10_quota_plugin.so...Reading symbols from /usr/lib/debug/usr/lib/dovecot/modules/lib10_quota_plugin.so...done.
done.
Loaded symbols for /usr/lib/dovecot/modules/lib10_quota_plugin.so
Reading symbols from /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so...Reading symbols from /usr/lib/debug/usr/lib/dovecot/modules/lib11_imap_quota_plugin.so...done.
done.
Loaded symbols for /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so
Reading symbols from /usr/lib/dovecot/modules/lib15_notify_plugin.so...Reading symbols from /usr/lib/debug/usr/lib/dovecot/modules/lib15_notify_plugin.so...done.
done.
Loaded symbols for /usr/lib/dovecot/modules/lib15_notify_plugin.so
Reading symbols from /usr/lib/dovecot/modules/lib20_mail_log_plugin.so...Reading symbols from /usr/lib/debug/usr/lib/dovecot/modules/lib20_mail_log_plugin.so...done.
done.
Loaded symbols for /usr/lib/dovecot/modules/lib20_mail_log_plugin.so
Core was generated by `dovecot/imap'.
Program terminated with signal 11, Segmentation fault.
[New process 29301]
#0  notify_transaction_commit (t=0x1ae5a40, changes_r=0x7fff65c9cd10) at notify-storage.c:164
164     notify-storage.c: No such file or directory.
        in notify-storage.c
#0  notify_transaction_commit (t=0x1ae5a40, changes_r=0x7fff65c9cd10) at notify-storage.c:164
        lt = (struct notify_transaction_context *) 0x0
#1  0x00007f4518416aed in mailbox_transaction_commit_get_changes (_t=<value optimized out>, changes_r=0x7fff65c9cd10) at mail-storage.c:1194
        _data_stack_cur_id = 4
        t = (struct mailbox_transaction_context *) 0x1ae5a40
        ret = <value optimized out>
#2  0x00007f4518416b26 in mailbox_transaction_commit (t=0x28) at mail-storage.c:1178
        changes = {pool = 0xbc1, uid_validity = 7456, saved_uids = {arr = {buffer = 0x1ae4960, element_size = 0}, v = 0x1ae4960, v_modifiable = 0x1ae4960}, ignored_modseq_changes = 28149240}
        ret = <value optimized out>
#3  0x0000000000412823 in imap_fetch_deinit (ctx=0x1ad85e0) at imap-fetch.c:568
        handler = (const struct imap_fetch_context_handler *) 0x1aedca8
#4  0x000000000040a823 in cmd_fetch_finish (ctx=0x28) at cmd-fetch.c:144
        cmd = (struct client_command_context *) 0x1ad83b8
        tagged_reply = 0x419c38 "OK Fetch completed."
        ok_message = 0x419c38 "OK Fetch completed."
#5  0x000000000040ad0a in cmd_fetch (cmd=0x1ad83b8) at cmd-fetch.c:236
        client = <value optimized out>
        ctx = (struct imap_fetch_context *) 0x1ad85e0
        args = (const struct imap_arg *) 0x1adac10
        next_arg = <value optimized out>
        list_arg = (const struct imap_arg *) 0x7f45181b8c0d
        search_args = (struct mail_search_args *) 0x1ae49b8
        messageset = 0x1adad00 "5195:*"
        ret = <value optimized out>
#6  0x000000000041035c in client_command_input (cmd=0x1ad83b8) at imap-client.c:652
        client = (struct client *) 0x1ad7c58
        command = <value optimized out>
        __FUNCTION__ = "client_command_input"
#7  0x000000000041040d in client_command_input (cmd=0x1ad83b8) at imap-client.c:702
        client = (struct client *) 0x1ad7c58
        command = (struct command *) 0x8
        __FUNCTION__ = "client_command_input"
#8  0x0000000000410585 in client_handle_input (client=0x1ad7c58) at imap-client.c:743
        _data_stack_cur_id = 3
        ret = 66
        remove_io = <value optimized out>
        handled_commands = false
        __FUNCTION__ = "client_handle_input"
#9  0x0000000000410fb2 in client_input (client=0x1ad7c58) at imap-client.c:794
        cmd = <value optimized out>
        output = (struct ostream *) 0x1ad8238
        bytes = <value optimized out>
        __FUNCTION__ = "client_input"
#10 0x00007f45181b3ceb in io_loop_handler_run (ioloop=<value optimized out>) at ioloop-epoll.c:212
        ctx = (struct ioloop_handler_context *) 0x1aab7d0
        event = (const struct epoll_event *) 0x1aab840
        list = (struct io_list *) 0x1ad8310
        io = (struct io_file *) 0x1ad82d0
        tv = {tv_sec = 1799, tv_usec = 999737}
        t_id = 2
        msecs = <value optimized out>
        ret = 1
        call = <value optimized out>
#11 0x00007f45181b2e68 in io_loop_run (ioloop=0x1aab5c0) at ioloop.c:350
No locals.
#12 0x00007f45181a27d3 in master_service_run (service=0x1aab490, callback=0x28) at master-service.c:495
No locals.
#13 0x0000000000419171 in main (argc=1, argv=0x1aab370) at main.c:358
        service_flags = <value optimized out>
        storage_service_flags = <value optimized out>
        postlogin_socket_path = 0x0
        username = 0x0
        c = <value optimized out>
        set_roots = {0x41c360, 0x0}

# dovecot -n (older HG)

# 2.0.rc2 (7dd7adba1c9e): /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-amd64 x86_64 Debian 5.0.5 
auth_verbose = yes
mail_location = mdbox:~/mdbox
mail_plugins = acl quota
managesieve_notify_capability = mailto
managesieve_sieve_capability = comparator-i;octet comparator-i;ascii-casemap fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date spamtest spamtestplus virustest
namespace {
  hidden = no
  inbox = yes
  location = 
  prefix = 
  separator = /
  type = private
}
namespace {
  list = yes
  location = maildir:/var/vmail/public:LAYOUT=fs:INDEX=~/public
  prefix = Public/
  separator = /
  subscriptions = no
  type = public
}
passdb {
  args = username_format=%u /var/vmail/auth.d/%d/passwd
  driver = passwd-file
}
plugin {
  acl = vfile:/var/vmail/conf.d/%d/acls:cache_secs=300
  mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
  quota = dict:user::file:%h/mdbox/dovecot-quota
  quota_rule = *:storage=1GB
  quota_rule2 = Trash:storage=+10%%
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
  sieve_global_dir = /var/vmail/conf.d/%d/sieve
}
protocols = imap lmtp
service auth-worker {
  user = doveauth
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  user = doveauth
}
service imap-login {
  inet_listener imap {
    address = 1.2.3.4
    port = 143
  }
  inet_listener imaps {
    port = 0
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0660
    user = postfix
  }
}
ssl_cert = </etc/ssl/certs/host_domain_tld.crt
ssl_key = </etc/ssl/private/host_domain_tld.key
syslog_facility = local1
userdb {
  args = username_format=%u /var/vmail/auth.d/%d/passwd
  driver = passwd-file
}
verbose_proctitle = yes
protocol lmtp {
  mail_plugins = $mail_plugins sieve
}
protocol imap {
  mail_plugins = $mail_plugins imap_acl imap_quota mail_log notify
}




More information about the dovecot mailing list