Hi,
When the Dovecot 1.0.rc19 IMAP server encounters X-UID headers with
gaps in them, it hangs indefinitely. I've attached a sample mailbox (in
mbox format) which repeatably exhibits this behavior. The mbox contains
only three messages with the following X-UIDs in order: 774, 785, 787.
If I remove the X-UID headers from each message, Dovecot handles the
mailbox without any problems. UW-IMAP is able to handle the sample mbox
_with_ X-UID headers.
A full backtrace is also included. When Dovecot hangs, it appears to
continually lock and unlock the mailbox. I'm using dotlocking so a
mailbox.lock file appears and disappears constantly. I have to kill the
process to log back in.
I'm not familiar enough with Dovecot to offer a patch, but if anybody
feels they can fix this or needs more information, please let me know.
Regards,
Benjamin Howell
bhowell at iglou.com
-------------- next part -------------->From ksalas at cisco.com Thu Dec 14 16:15:07 2006
Return-path: <ksalas at cisco.com>
Envelope-to: bhowell at iglou.com
Received: from [171.68.227.75] (helo=av-tac-sj.cisco.com)
by iglou2.iglou.com with esmtp (8.12.5/8.12.5)
(envelope-from <ksalas at cisco.com>)
id 1Guxuj-00046o-Jv
for bhowell at iglou.com; Thu, 14 Dec 2006 16:15:07 -0500
X-TACSUNS: Virus Scanned
Received: from halftime.cisco.com (localhost [127.0.0.1])
by av-tac-sj.cisco.com (8.11.7p2+Sun/8.11.7) with ESMTP id kBELEc719166
for <bhowell at iglou.com>; Thu, 14 Dec 2006 13:14:38 -0800 (PST)
Received: from MXDKLS00971 (gtrn1-mx-pat2.cisco.com [172.30.149.18])
by halftime.cisco.com (8.13.7+Sun/8.13.7) with SMTP id kBELEafF017192;
Thu, 14 Dec 2006 13:14:36 -0800 (PST)
Message-ID: <0b9001c71fc4$dc2064b0$b6d86ca1 at americas.unity>
From: "Karina Salas" <ksalas at cisco.com>
To: "Benjamin Howell" <bhowell at iglou.com>
Cc: "attach" <attach at cisco.com>
References: <-222703450.1166056579088.JavaMail.javamailuser at localhost>
<20061214173129.GA23781 at iglou.com> <0b5101c71fb9$2d338370$b6d86ca1
at americas.unity> <20061214203811.GA15079 at iglou.com>
Subject: 604995471 7500 routers / upgrade issue
Date: Thu, 14 Dec 2006 15:14:31 -0600
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1807
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807
X-Foreign-Sender: 171.68.227.75
Lines: 23
X-UIDL: bede86a1f4ce46e7770b0aaf59a541e3
Status: RO
X-Status: A
X-Keywords:
X-UID: 774
Hi Benjamin:
I think that the following link will give you an idea for what you need to
know:
http://www.cisco.com/warp/customer/620/roadmap_b.shtml
This is for the naming:
http://www.cisco.com/en/US/products/sw/iosswrel/ps1818/products_tech_note09186a0080101cda.shtml
In this case 11.1CC goes to 12.0T and 12.0T migrate to 12.1 mainline. Do not
you worry you will not loose anything with the new IOS version.
Please let me know if you have any question.
Best regards
Karina Salas
Customer Support Engineer, Cisco TAC
Cisco Systems
ksalas at cisco.com
978 858 7776
Monday - Friday 11:00 am to 8:00 pm CTM
>From ksalas at cisco.com Fri Dec 15 12:47:22 2006
Return-path: <ksalas at cisco.com>
Envelope-to: bhowell at iglou.com
Received: from [171.68.227.75] (helo=av-tac-sj.cisco.com)
by iglou4.iglou.com with esmtp (8.12.5/8.12.5)
(envelope-from <ksalas at cisco.com>)
id 1GvH9E-0002ys-Bu
for bhowell at iglou.com; Fri, 15 Dec 2006 12:47:22 -0500
X-TACSUNS: Virus Scanned
Received: from halftime.cisco.com (localhost [127.0.0.1])
by av-tac-sj.cisco.com (8.11.7p2+Sun/8.11.7) with ESMTP id kBFHkxp14442
for <bhowell at iglou.com>; Fri, 15 Dec 2006 09:46:59 -0800 (PST)
Received: from MXDKLS00971 (gtrn1-mx-pat2.cisco.com [172.30.149.18])
by halftime.cisco.com (8.13.7+Sun/8.13.7) with SMTP id kBFHkvp9003897;
Fri, 15 Dec 2006 09:46:58 -0800 (PST)
Message-ID: <007d01c72071$050e6050$b6d86ca1 at americas.unity>
From: "Karina Salas" <ksalas at cisco.com>
To: "Benjamin Howell" <bhowell at iglou.com>
Cc: "attach" <attach at cisco.com>
References: <-222703450.1166056579088.JavaMail.javamailuser at localhost>
<20061214173129.GA23781 at iglou.com> <0b5101c71fb9$2d338370$b6d86ca1
at americas.unity> <20061214203811.GA15079 at iglou.com>
<0b9001c71fc4$dc2064b0$b6d86ca1 at americas.unity>
<20061214214913.GA25734 at iglou.com> <0bdb01c71fce$658fb7b0$b6d86ca1
at americas.unity> <20061215163149.GA22313 at iglou.com>
Subject: 604995471 7500 routers / upgrade issue
Date: Fri, 15 Dec 2006 11:46:52 -0600
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1807
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807
X-Foreign-Sender: 171.68.227.75
Lines: 14
X-UIDL: 72f3b577f3bce7eebb2232ab2021ad6d
Status: RO
X-Status: A
X-Keywords:
X-UID: 785
Hi Benjamin:
Please send to me the show diag an run of the device with 12.0 IOS and the
errors appearing at boot.
Thank you and Best regards
Karina Salas
Customer Support Engineer, Cisco TAC
Cisco Systems
ksalas at cisco.com
978 858 7776
Monday - Friday 11:00 am to 8:00 pm CTM
>From ksalas at cisco.com Fri Dec 15 18:30:55 2006
Return-path: <ksalas at cisco.com>
Envelope-to: bhowell at iglou.com
Received: from [171.68.227.75] (helo=av-tac-sj.cisco.com)
by iglou4.iglou.com with esmtp (8.12.5/8.12.5)
(envelope-from <ksalas at cisco.com>)
id 1GvMVg-0006EC-R0
for bhowell at iglou.com; Fri, 15 Dec 2006 18:30:55 -0500
X-TACSUNS: Virus Scanned
Received: from halftime.cisco.com (localhost [127.0.0.1])
by av-tac-sj.cisco.com (8.11.7p2+Sun/8.11.7) with ESMTP id kBFNUUv26975
for <bhowell at iglou.com>; Fri, 15 Dec 2006 15:30:30 -0800 (PST)
Received: from MXDKLS00971 (gtrn1-mx-pat2.cisco.com [172.30.149.18])
by halftime.cisco.com (8.13.7+Sun/8.13.7) with SMTP id kBFNUPcN019844;
Fri, 15 Dec 2006 15:30:29 -0800 (PST)
Message-ID: <027001c720a1$01fbc850$b6d86ca1 at americas.unity>
From: "Karina Salas" <ksalas at cisco.com>
To: "Benjamin Howell" <bhowell at iglou.com>
Cc: "attach" <attach at cisco.com>
References: <-222703450.1166056579088.JavaMail.javamailuser at localhost>
<20061214173129.GA23781 at iglou.com> <0b5101c71fb9$2d338370$b6d86ca1
at americas.unity> <20061214203811.GA15079 at iglou.com>
<0b9001c71fc4$dc2064b0$b6d86ca1 at americas.unity>
<20061214214913.GA25734 at iglou.com> <0bdb01c71fce$658fb7b0$b6d86ca1
at americas.unity> <20061215163149.GA22313 at iglou.com>
<007d01c72071$050e6050$b6d86ca1 at americas.unity>
<20061215193255.GA9698 at iglou.com>
Subject: 604995471 7500 routers / upgrade issue
Date: Fri, 15 Dec 2006 17:30:20 -0600
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1807
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807
X-Foreign-Sender: 171.68.227.75
Lines: 12
X-UIDL: abc6f72a4f19d963937955dabe49a5f0
Status: RO
X-Status: A
X-Keywords: NonJunk
X-UID: 787
Hi Benjamin:
Please wait for me I will test in in the lab.
Thank you and Best regards
Karina Salas
Customer Support Engineer, Cisco TAC
Cisco Systems
ksalas at cisco.com
978 858 7776
Monday - Friday 11:00 am to 8:00 pm CTM
-------------- next part --------------
(gdb) bt full
#0 0x7fa1ce38 in _private_close () from /usr/lib/libc.so.1
No symbol table info available.
#1 0x7f965fe0 in close () from /usr/lib/libaio.so.1
No symbol table info available.
#2 0x7cdc0 in file_dotlock_create (set=0x1,
path=0xdd2a0 "/home4/bhowell/Mail/Inbox.inbtest", flags=0,
dotlock_r=0xdd230) at file-dotlock.c:514
dotlock = (struct dotlock *) 0xeaf58
lock_path = 0x10d7d0 "/home4/bhowell/Mail/Inbox.inbtest.lock"
st = {st_dev = 0, st_pad1 = {5594600, 33152, 1},
st_ino = 216350387601509, st_mode = 0, st_nlink = 0, st_uid = 0, st_gid = 0,
st_rdev = 0, st_pad2 = {-4263120, 0}, st_size = 0, st_atim = {tv_sec = 0,
tv_nsec = 0}, st_mtim = {tv_sec = 16, tv_nsec = 34}, st_ctim = {
tv_sec = 34, tv_nsec = -4263504}, st_blksize = 136192,
st_blocks = -18312022562992632,
st_fstype =
"\000\000\000\000\000\000\000\020\000\000\000\000\000\000\000",
st_pad4 = {0, 0, 0, 0, 173, 0, 2141451620, 0}}
fd = 18
ret = 1
#3 0x38bc8 in mbox_lock_dotlock (ctx=0xffbef2c0, lock_type=2,
max_wait_time=1169749509) at mbox-lock.c:259
mbox = (struct mbox_mailbox *) 0xdd100
set = {temp_prefix = 0x0, lock_suffix = 0x0, timeout = 300,
stale_timeout = 120, callback = 0x38a04 <dotlock_callback>,
context = 0xffbef2c0, use_excl_lock = 0}
ret = 1
#4 0x38fe0 in mbox_lock_list (ctx=0xffbef2c0, lock_type=2,
max_wait_time=1169749509, idx=1) at mbox-lock.c:448
lock_types = (enum mbox_lock_type *) 0xaedf0
i = 1
ret = -4263232
#5 0x390a0 in mbox_update_locking (mbox=0xdd100, lock_type=-4263232)
at mbox-lock.c:492
ctx = {mbox = 0xdd100, lock_status = {1, 0, 0, 0},
checked_file = false, lock_type = 2, dotlock_last_stale = true}
max_wait_time = -4263232
ret = 905472
i = 1169749509
drop_locks = false
#6 0x3932c in mbox_lock (mbox=0xdd100, lock_type=2, lock_id_r=0xffbef3ec)
at mbox-lock.c:534
ret = 905472
#7 0x3ef14 in mbox_sync (mbox=0xdd100, flags=44) at mbox-sync.c:1642
lock_type = 2
index_sync_ctx = (struct mail_index_sync_ctx *) 0x156e1302
sync_view = (struct mail_index_view *) 0x395c0
sync_ctx = {mbox = 0xe4234234, flags = 0, input = 0x0,
file_input = 0x0, write_fd = 0, index_sync_ctx = 0x0, sync_view = 0xdd100,
t = 0x1, hdr = 0x0, header = 0x1, from_line = 0x1, base_uid_validity = 0,
base_uid_last = 3, base_uid_last_offset = 0, mails = {buffer = 0x0,
element_size = 0}, syncs = {buffer = 0xdd100, element_size = 0},
sync_rec = {uid1 = 1, uid2 = 4, type = 4290704368, add_flags = 0
'\000',
remove_flags = 0 '\000', keyword_idx = 0}, mail_keyword_pool = 0x0,
saved_keywords_pool = 0xdf570, prev_msg_uid = 913752, next_uid = 1,
idx_next_uid = 4290704655, prev_next_uid = 4290704776,
need_space_next_uid = 1, seq = 4290704552, idx_seq = 235160,
need_space_seq = 0, expunged_space = 0, space_diff = 0, dest_first_mail = 0,
first_mail_crlf_expunged = 0, delay_writes = 1}
seq = 900784
offset = 8585671828
lock_id = 0
ret = 905472
changed = 1
#8 0x396f8 in mbox_mail_seek (mail=0xdf570) at mbox-mail.c:47
t = (struct mbox_transaction_context *) 0xdbeb0
mbox = (struct mbox_mailbox *) 0xdd100
sync_flags = 44
ret = 905472
deleted = false
#9 0x39798 in mbox_mail_get_received_date (_mail=0xdf570) at mbox-mail.c:100
data = (struct index_mail_data *) 0xdf5d8
mbox = (struct mbox_mailbox *) 0xdd100
t = 938304
#10 0x6b800 in mail_get_received_date (mail=0xdf570) at mail.c:54
No locals.
#11 0x24b50 in fetch_internaldate (ctx=0xd5760, mail=0xdf570, context=0x0)
at imap-fetch.c:518
time = 6
#12 0x24334 in imap_fetch (ctx=0xd5760) at imap-fetch.c:291
handlers = (struct imap_fetch_context_handler *) 0xd5880
count = 4
ret = 874592
#13 0x1f188 in cmd_fetch (cmd=0xcfeec) at cmd-fetch.c:163
client = (struct client *) 0xcfea8
ctx = (struct imap_fetch_context *) 0xd5760
args = (struct imap_arg *) 0xd3718
search_arg = (struct mail_search_arg *) 0xd5728
messageset = 0xd5760 ""
ret = 874336
#14 0x21eec in cmd_uid (cmd=0xcfeec) at cmd-uid.c:19
cmd_name = 0xd37c8 "FETCH"
#15 0x22ab8 in client_handle_input (cmd=0xcfeec) at client.c:331
client = (struct client *) 0xcfea8
#16 0x22a3c in client_handle_input (cmd=0xcfeec) at client.c:388
client = (struct client *) 0xcfea8
#17 0x22bb0 in _client_input (context=0xcfea8) at client.c:428
client = (struct client *) 0xcfea8
cmd = (struct client_command_context *) 0xcfeec
ret = 715776
#18 0x80e58 in io_loop_handler_run (ioloop=0xcfe78) at ioloop-poll.c:199
ctx = (struct ioloop_handler_context *) 0xb8f20
pollfd = (struct pollfd *) 0x2
tv = {tv_sec = 0, tv_usec = 421865}
io = (struct io *) 0xb9248
t_id = 2
msecs = 0
ret = 0
call = true
#19 0x80764 in io_loop_run (ioloop=0xcfe78) at ioloop.c:281
No locals.
#20 0x2b3d0 in main (argc=0, argv=0xffbefae4, envp=0xffbefaf4) at main.c:280
No locals.