[Dovecot] Dovecot v2.0.beta5 (2d6cf78982dc): Crashes upon client login
Core dump upon client login with latest changes, gdb attached:
==> /var/log/dovecot.log <== Jun 8 19:26:05 spectre dovecot: master: Dovecot v2.0.beta5 (2d6cf78982dc) starting up Jun 8 19:26:21 spectre dovecot: imap-login: Login: user=tlx@leuxner.net, method=PLAIN, rip=10.10.10.10, lip=1.2.3.4, mpid=9997, TLS Jun 8 19:26:21 spectre dovecot: master: Error: service(imap): child 9997 killed with signal 11 (core dumped) Jun 8 19:26:21 spectre dovecot: imap-login: Login: user=tlx@leuxner.net, method=PLAIN, rip=10.10.10.10, lip=1.2.3.4, mpid=9999, TLS Jun 8 19:26:21 spectre dovecot: master: Error: service(imap): child 9999 killed with signal 11 (core dumped) Jun 8 19:26:26 spectre dovecot: imap-login: Login: user=tlx@leuxner.net, method=PLAIN, rip=10.10.10.10, lip=1.2.3.4, mpid=10001, TLS Jun 8 19:26:28 spectre dovecot: master: Error: service(imap): child 10001 killed with signal 11 (core dumped) Jun 8 19:26:32 spectre dovecot: master: Warning: Killed with signal 15 (by pid=10021 uid=0 code=kill)
Core was generated by `dovecot/imap'. Program terminated with signal 11, Segmentation fault. [New process 10001] #0 quota_mailbox_transaction_commit (ctx=0x1d66660, changes_r=0x7fffec59fd80) at quota-storage.c:91 91 quota-storage.c: No such file or directory. in quota-storage.c #0 quota_mailbox_transaction_commit (ctx=0x1d66660, changes_r=0x7fffec59fd80) at quota-storage.c:91 qbox = (struct quota_mailbox *) 0x1d5df50 qt = (struct quota_transaction_context *) 0x0 #1 0x00007fcfcaf5b69d in mailbox_transaction_commit_get_changes (_t=<value optimized out>, changes_r=0x7fffec59fd80) at mail-storage.c:1194 _data_stack_cur_id = 4 t = (struct mailbox_transaction_context *) 0x1d66660 ret = <value optimized out> #2 0x00007fcfcaf5b6d6 in mailbox_transaction_commit (t=0x18) at mail-storage.c:1178 changes = {pool = 0xa0, uid_validity = 0, saved_uids = {arr = {buffer = 0x0, element_size = 30553128}, v = 0x0, v_modifiable = 0x0}, ignored_uid_changes = 30770416, ignored_modseq_changes = 0} ret = <value optimized out> #3 0x0000000000415a93 in imap_search_deinit (ctx=0x1d584e0) at imap-search.c:575 ret = 0 #4 0x00000000004160cc in cmd_search_more (cmd=0x1d583d8) at imap-search.c:402 ctx = (struct imap_search_context *) 0x1d584e0 opts = SEARCH_RETURN_ALL sync_flags = <value optimized out> end_time = {tv_sec = 30988688, tv_usec = 1024} id = 18766 id_min = <value optimized out> id_max = 0 time_msecs = <value optimized out> tryagain = false lost_data = false __FUNCTION__ = "cmd_search_more" #5 0x0000000000416484 in imap_search_start (ctx=0x1d584e0, sargs=0x1d65698, sort_program=0x0) at imap-search.c:550 cmd = (struct client_command_context *) 0x1d583d8 wanted_fields = 0 wanted_headers = (struct mailbox_header_lookup_ctx *) 0x0 #6 0x000000000040d443 in cmd_search (cmd=0x1d583d8) at cmd-search.c:45 ctx = <value optimized out> sargs = (struct mail_search_args *) 0x1d65698 args = (const struct imap_arg *) 0x1d5ac30 charset = 0x41a0cc "UTF-8" ret = 0 #7 0x000000000041030c in client_command_input (cmd=0x1d583d8) at imap-client.c:646 client = (struct client *) 0x1d57c78 command = <value optimized out> __FUNCTION__ = "client_command_input" #8 0x00000000004103bd in client_command_input (cmd=0x1d583d8) at imap-client.c:696 client = (struct client *) 0x1d57c78 command = (struct command *) 0x8 __FUNCTION__ = "client_command_input" #9 0x0000000000410535 in client_handle_input (client=0x1d57c78) at imap-client.c:737 _data_stack_cur_id = 3 ret = 34 remove_io = <value optimized out> handled_commands = false __FUNCTION__ = "client_handle_input" #10 0x0000000000410f82 in client_input (client=0x1d57c78) at imap-client.c:788 cmd = <value optimized out> output = (struct ostream *) 0x1d58258 bytes = <value optimized out> __FUNCTION__ = "client_input" #11 0x00007fcfcacf98eb in io_loop_handler_run (ioloop=<value optimized out>) at ioloop-epoll.c:212 ctx = (struct ioloop_handler_context *) 0x1d2b7d0 event = (const struct epoll_event *) 0x1d2b840 list = (struct io_list *) 0x1d58330 io = (struct io_file *) 0x1d582f0 tv = {tv_sec = 1799, tv_usec = 999330} t_id = 2 msecs = <value optimized out> ret = 1 call = <value optimized out> #12 0x00007fcfcacf8a68 in io_loop_run (ioloop=0x1d2b5c0) at ioloop.c:350 No locals. #13 0x00007fcfcace8563 in master_service_run (service=0x1d2b490, callback=0x18) at master-service.c:480 No locals. #14 0x0000000000419121 in main (argc=1, argv=0x1d2b370) at main.c:359 service_flags = <value optimized out> storage_service_flags = <value optimized out> postlogin_socket_path = 0x0 username = 0x0 c = <value optimized out> set_roots = {0x41c320, 0x0}
On ti, 2010-06-08 at 19:36 +0200, Thomas Leuxner wrote:
#0 quota_mailbox_transaction_commit (ctx=0x1d66660, changes_r=0x7fffec59fd80) at quota-storage.c:91 qbox = (struct quota_mailbox *) 0x1d5df50 qt = (struct quota_transaction_context *) 0x0
Well, qt=NULL just shouldn't be happening.. Try make clean and make install again? If that doesn't help, show your doveconf -n output.
Am 08.06.2010 um 21:57 schrieb Timo Sirainen:
On ti, 2010-06-08 at 19:36 +0200, Thomas Leuxner wrote:
#0 quota_mailbox_transaction_commit (ctx=0x1d66660, changes_r=0x7fffec59fd80) at quota-storage.c:91 qbox = (struct quota_mailbox *) 0x1d5df50 qt = (struct quota_transaction_context *) 0x0
Well, qt=NULL just shouldn't be happening.. Try make clean and make install again? If that doesn't help, show your doveconf -n output.
Recompiling leads to the same result. Rolling back to Dovecot v2.0.beta5 (6f5d3e035652) restores functionality.
# 2.0.beta5 (6f5d3e035652): /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-3-amd64 x86_64 Debian 5.0.4 auth_verbose = yes mail_location = mdbox:~/mdbox mail_plugins = acl quota 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 =
On ti, 2010-06-08 at 22:05 +0200, Thomas Leuxner wrote:
Am 08.06.2010 um 21:57 schrieb Timo Sirainen:
On ti, 2010-06-08 at 19:36 +0200, Thomas Leuxner wrote:
#0 quota_mailbox_transaction_commit (ctx=0x1d66660, changes_r=0x7fffec59fd80) at quota-storage.c:91 qbox = (struct quota_mailbox *) 0x1d5df50 qt = (struct quota_transaction_context *) 0x0
Well, qt=NULL just shouldn't be happening.. Try make clean and make install again? If that doesn't help, show your doveconf -n output.
Recompiling leads to the same result. Rolling back to Dovecot v2.0.beta5 (6f5d3e035652) restores functionality.
http://hg.dovecot.org/dovecot-2.0/rev/6d32cf98b5f3 should fix this.
On Wed, Jun 09, 2010 at 06:03:27PM +0100, Timo Sirainen wrote:
Recompiling leads to the same result. Rolling back to Dovecot v2.0.beta5 (6f5d3e035652) restores functionality.
http://hg.dovecot.org/dovecot-2.0/rev/6d32cf98b5f3 should fix this.
Looks good now. Thanks.
Am 08.06.2010 um 21:57 schrieb Timo Sirainen:
On ti, 2010-06-08 at 19:36 +0200, Thomas Leuxner wrote:
#0 quota_mailbox_transaction_commit (ctx=0x1d66660, changes_r=0x7fffec59fd80) at quota-storage.c:91 qbox = (struct quota_mailbox *) 0x1d5df50 qt = (struct quota_transaction_context *) 0x0
Well, qt=NULL just shouldn't be happening.. Try make clean and make install again? If that doesn't help, show your doveconf -n output.
Revisited with latest changes, still the same. Again reverting restores it.
Jun 9 05:02:51 spectre dovecot: master: Dovecot v2.0.beta5 (1aaa4b51cb14) starting up Jun 9 05:02:54 spectre dovecot: imap-login: Login: user=tlx@leuxner.net, method=PLAIN, rip=10.10.10.10, lip=1.2.3.4, mpid=18084, TLS Jun 9 05:02:55 spectre dovecot: master: Error: service(imap): child 18084 killed with signal 11 (core dumped)
participants (2)
-
Thomas Leuxner
-
Timo Sirainen