Bug 625207 - dovecot aborts on qresync select
Summary: dovecot aborts on qresync select
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dovecot
Version: 12
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Michal Hlavinka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-18 21:08 UTC by David Woodhouse
Modified: 2010-09-09 01:24 UTC (History)
1 user (show)

Fixed In Version: dovecot-1.2.14-1.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-09-09 01:11:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Woodhouse 2010-08-18 21:08:51 UTC
Evolution now triggers this...

* PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS] Logged in as dwmw2
0 enable condstore qresync
* ENABLED CONDSTORE QRESYNC
0 OK Enabled.
A00131 SELECT lists.bluez (QRESYNC (1154090296 1861 1:* (1,120,1578,2064,2226,2280,2298 1,120,12037,12523,12685,12739,12757)))

Program received signal SIGABRT, Aborted.
0x00000034ace326c5 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.23-9.fc12.x86_64 glibc-2.11.2-1.x86_64 keyutils-libs-1.2-6.fc12.x86_64 krb5-libs-1.7.1-9.fc12.x86_64 libcom_err-1.41.9-8.fc12.x86_64 libgcc-4.4.4-10.fc12.x86_64 libselinux-2.0.90-5.fc12.x86_64 nss-softokn-freebl-3.12.6-2.fc12.1.x86_64 openldap-2.4.19-4.fc12.x86_64 openssl-1.0.0a-1.fc12.x86_64 zlib-1.2.3-23.fc12.x86_64
(gdb) bt
#0  0x00000034ace326c5 in raise () from /lib64/libc.so.6
#1  0x00000034ace33ea5 in abort () from /lib64/libc.so.6
#2  0x00000000004a2698 in default_fatal_finish (type=<value optimized out>, 
    status=0) at failures.c:160
#3  0x00000000004a273b in i_syslog_fatal_handler (type=LOG_TYPE_PANIC, 
    status=0, fmt=<value optimized out>, args=<value optimized out>)
    at failures.c:315
#4  0x00000000004a1d86 in i_panic (format=0x6 <Address 0x6 out of bounds>)
    at failures.c:207
#5  0x00000000004787f0 in mail_index_transaction_lookup (
    t=<value optimized out>, seq=<value optimized out>)
    at mail-index-transaction.c:637
#6  0x000000000047be45 in tview_lookup_uid (view=<value optimized out>, 
    seq=<value optimized out>, uid_r=<value optimized out>)
    at mail-index-transaction-view.c:162
#7  0x00000000004580fb in index_mail_set_seq (_mail=0x7282b8, seq=1578)
    at index-mail.c:1229
#8  0x0000000000423eb4 in expunges_drop_known (ctx=0x70a628)
    at imap-fetch.c:178
#9  get_expunges_fallback (ctx=0x70a628) at imap-fetch.c:269
#10 imap_fetch_send_vanished (ctx=0x70a628) at imap-fetch.c:291
#11 imap_fetch_begin (ctx=0x70a628) at imap-fetch.c:314
#12 0x000000000041e8e2 in select_qresync (cmd=<value optimized out>, 
---Type <return> to continue, or q <return> to quit---
    readonly=<value optimized out>) at cmd-select.c:243
#13 select_open (cmd=<value optimized out>, readonly=<value optimized out>)
    at cmd-select.c:320
#14 cmd_select_full (cmd=<value optimized out>, readonly=<value optimized out>)
    at cmd-select.c:382
#15 0x0000000000420ead in client_command_input (cmd=0x70a458) at client.c:612
#16 0x0000000000420f8d in client_command_input (cmd=0x70a458) at client.c:661
#17 0x00000000004211b5 in client_handle_next_command (client=0x709ff0)
    at client.c:702
#18 client_handle_input (client=0x709ff0) at client.c:714
#19 0x0000000000421a5c in client_input (client=0x709ff0) at client.c:753
#20 0x00000000004aa7cd in io_loop_handler_run (ioloop=<value optimized out>)
    at ioloop-epoll.c:208
#21 0x00000000004a9c38 in io_loop_run (ioloop=0x707cc0) at ioloop.c:335
#22 0x0000000000429726 in main (argc=<value optimized out>, 
    argv=<value optimized out>, envp=<value optimized out>) at main.c:327


Aug 18 22:07:01 twosheds IMAP(dwmw2): : Disconnected: Logged out bytes=163/488
Aug 18 22:07:31 twosheds IMAP(dwmw2): : Panic: file mail-index-transaction.c: line 637 (mail_index_transaction_lookup): assertion failed: (seq >= t->first_new_seq && seq <= t->last_new_seq)
Aug 18 22:07:31 twosheds IMAP(dwmw2): : Raw backtrace: imap() [0x4a268a] -> imap(i_syslog_fatal_handler+0x2b) [0x4a273b] -> imap() [0x4a1d86] -> imap() [0x4787f0] -> imap() [0x47be45] -> imap(index_mail_set_seq+0x6b) [0x4580fb] -> imap(imap_fetch_begin+0x534) [0x423eb4] -> imap(cmd_select_full+0x5f2) [0x41e8e2] -> imap() [0x420ead] -> imap() [0x420f8d] -> imap(client_handle_input+0x135) [0x4211b5] -> imap(client_input+0x5c) [0x421a5c] -> imap(io_loop_handler_run+0xbd) [0x4aa7cd] -> imap(io_loop_run+0x18) [0x4a9c38] -> imap(main+0x526) [0x429726] -> /lib64/libc.so.6(__libc_start_main+0xfd) [0x34ace1eb1d] -> imap() [0x419b89]

Comment 1 Michal Hlavinka 2010-08-19 07:36:49 UTC
Thanks for reporting this. Is this happening after dovecot update/evolution update or is this first time you installed dovecot?

Comment 2 David Woodhouse 2010-08-19 09:23:03 UTC
I've been running dovecot+evolution for years, but I only recently implemented QRESYNC support in evolution. I saw dovecot 1.2.12 crash, applied the current Fedora 12 updates, saw dovecot 1.2.13 crash too, then reported it here and upstream.

The Maildir folder which causes it to crash with this particular QRESYNC SELECT command is at http://david.woodhou.se/bluez-maildir.tar.gz

Comment 3 David Woodhouse 2010-08-19 12:31:53 UTC
FWIW I've reproduced this on F-13 too by extracting that tarball, installing dovecot, running 'dovecot --exec-mail imap' and issuing the commands shown above.

That's more notable for its confirmation of the fact that you should be able to reproduce this at will, than for the fact that it happens with the identical version of dovecot in F-13.

Comment 4 David Woodhouse 2010-08-19 18:24:50 UTC
Should be fixed by http://hg.dovecot.org/dovecot-1.2/rev/70fa6178380e

Comment 5 David Woodhouse 2010-08-19 19:07:54 UTC
I have tested locally and confirmed that the fix is working.

Comment 6 Michal Hlavinka 2010-08-20 08:26:35 UTC
thanks

Comment 7 Fedora Update System 2010-08-20 08:27:51 UTC
dovecot-1.2.13-2.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/dovecot-1.2.13-2.fc12

Comment 8 Fedora Update System 2010-08-20 08:27:57 UTC
dovecot-1.2.13-2.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/dovecot-1.2.13-2.fc13

Comment 9 Fedora Update System 2010-08-21 04:24:32 UTC
dovecot-1.2.13-2.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update dovecot'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/dovecot-1.2.13-2.fc12

Comment 10 David Woodhouse 2010-08-21 11:24:44 UTC
Verified that it's fixed by your packages on both F-12 and F-13 with the offending mailbox referenced in comment 2. Thanks for the quick update.

Comment 11 Fedora Update System 2010-08-25 13:21:31 UTC
dovecot-1.2.14-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/dovecot-1.2.14-1.fc12

Comment 12 Fedora Update System 2010-08-25 13:21:36 UTC
dovecot-1.2.14-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/dovecot-1.2.14-1.fc13

Comment 13 Fedora Update System 2010-09-09 01:10:55 UTC
dovecot-1.2.14-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2010-09-09 01:24:35 UTC
dovecot-1.2.14-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.