[Dovecot] 1.0-test40

Wouter Van Hemel wouter-dovecot at fort-knox.rave.org
Mon Sep 13 08:12:44 EEST 2004


On Sun, 12 Sep 2004, Timo Sirainen wrote:

> On 7.9.2004, at 21:51, Wouter Van Hemel wrote:
>
>> Actually I simply forgot I stripped the symbols just before it crashed, 
>> sorry. On OpenBSD at least, the core files from abort() seem fine. Anyway, 
>> I attached the stacktrace. The crash happens straight away after login, on 
>> "select INBOX".
>> 
>> Note that mmap is disabled (by configuration).
>
> Fixed in CVS now. Should have read this mail again before releasing test41..
>

That's ok, I'll just punish you with two new crashes in -test42:

Sep 13 06:36:59 hostname dovecot: imap-login: Login: username [123.123.123.123]
Sep 13 06:37:01 hostname dovecot: IMAP(username): mbox sync: UID inserted in the middle of mailbox /home/username/.mail/Trash (3 > 2)
Sep 13 06:37:01 hostname dovecot: IMAP(username): file mail-index-transaction.c: line 103 (mail_index_buffer_convert_to_uids): assertion failed: (*seq != 0)
Sep 13 06:37:02 hostname dovecot: child 1022 (imap) killed with signal 6

-and-

Sep 13 06:45:27 hostname dovecot: imap-login: Login: username2 [123.123.123.123]
Sep 13 06:45:51 hostname dovecot: child 28032 (imap) killed with signal 11

There should be some backtraces attached to this mail.

Regards,

   Wouter Van Hemel
-------------- next part --------------
# logs #####

Sep 13 06:36:59 hostname dovecot: imap-login: Login: username [123.123.123.123]
Sep 13 06:37:01 hostname dovecot: IMAP(username): mbox sync: UID inserted in the middle of mailbox /home/username/.mail/Trash (3 > 2)
Sep 13 06:37:01 hostname dovecot: IMAP(username): file mail-index-transaction.c: line 103 (mail_index_buffer_convert_to_uids): assertion failed: (*seq != 0)
Sep 13 06:37:02 hostname dovecot: child 1022 (imap) killed with signal 6

...(retry)...

Sep 13 06:49:22 hostname dovecot: imap-login: Login: username [123.123.123.123]
Sep 13 06:49:36 hostname dovecot: IMAP(username): file mail-index-transaction.c: line 103 (mail_index_buffer_convert_to_uids): assertion failed: (*seq != 0)
Sep 13 06:49:37 hostname dovecot: child 29907 (imap) killed with signal 6



# backtrace #####

This GDB was configured as "i386-unknown-openbsd2.9"...
Core was generated by `imap'.
Program terminated with signal 6, Abort trap.
Reading symbols from /usr/libexec/ld.so...done.
Reading symbols from /usr/lib/libc.so.26.2...done.
#0  0x400b26ff in _thread_sys_kill ()
(gdb) bt
#0  0x400b26ff in _thread_sys_kill ()
#1  0x400de680 in abort ()
#2  0x4194b in i_internal_panic_handler (
    fmt=0x2b480 "file %s: line %d (%s): assertion failed: (%s)",
    args=0xdfbfd8bc "b?\002") at failures.c:374
#3  0x414e7 in i_panic (
    format=0x2b480 "file %s: line %d (%s): assertion failed: (%s)")
    at failures.c:173
#4  0x2b594 in mail_index_buffer_convert_to_uids (t=0x65c00, buf=0x5b4a0,
    record_size=8, range=1) at mail-index-transaction.c:103
#5  0x2b646 in mail_index_transaction_convert_to_uids (t=0x65c00)
    at mail-index-transaction.c:135
#6  0x2b6db in mail_index_transaction_commit (t=0x65c00,
    log_file_seq_r=0xdfbfd9a8, log_file_offset_r=0xdfbfd9ac)
    at mail-index-transaction.c:163
#7  0x1c0ad in mbox_sync (ibox=0x65800, flags=0) at mbox-sync.c:1232
#8  0x1c374 in mbox_storage_sync_init (box=0x65800, flags=0)
    at mbox-sync.c:1326
#9  0x3561d in mailbox_sync_init (box=0x65800, flags=0) at mail-storage.c:329
#10 0xba5b in imap_sync_nonselected (box=0x65800, flags=0) at imap-sync.c:153
#11 0x4c43 in get_mailbox_status (client=0x69100, storage=0x69080,
    mailbox=0x6b0c8 "Trash", items=31, status=0xdfbfdb6c) at cmd-status.c:68
#12 0x4da6 in cmd_status (client=0x69100) at cmd-status.c:110
#13 0x5f66 in client_handle_input (client=0x69100) at client.c:323
#14 0x6039 in _client_input (context=0x69100) at client.c:367
#15 0x45d8c in io_loop_handler_run (ioloop=0x66040) at ioloop-poll.c:184
#16 0x45605 in io_loop_run (ioloop=0x66040) at ioloop.c:218
#17 0xd668 in main (argc=1, argv=0xdfbfdcd4, envp=0xdfbfdcdc) at main.c:214

-------------- next part --------------
# logs #####

Sep 13 06:45:27 hostname dovecot: imap-login: Login: username2 [123.123.123.123]
Sep 13 06:45:51 hostname dovecot: child 28032 (imap) killed with signal 11


# backtrace #####

This GDB was configured as "i386-unknown-openbsd2.9"...
Core was generated by `imap'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.so...done.
Reading symbols from /usr/lib/libc.so.26.2...done.
#0  0x19e65 in mbox_sync_parse_match_mail (ibox=0x65c00, view=0x75500, seq=1) at mbox-sync-parse.c:526
526             return memcmp(data, ctx.hdr_md5_sum, 16) == 0;
(gdb) bt
#0  0x19e65 in mbox_sync_parse_match_mail (ibox=0x65c00, view=0x75500, seq=1) at mbox-sync-parse.c:526
#1  0x16476 in mbox_file_seek (ibox=0x65c00, view=0x75500, seq=1, deleted_r=0xdfbfd774) at mbox-file.c:131
#2  0x1afff in mbox_sync_seek_to_seq (sync_ctx=0xdfbfd9c8, seq=1) at mbox-sync.c:631
#3  0x1b161 in mbox_sync_loop (sync_ctx=0xdfbfd9c8, mail_ctx=0xdfbfd858, min_message_count=4294967295, partial=1) at mbox-sync.c:691
#4  0x1bac8 in mbox_sync_do (sync_ctx=0xdfbfd9c8, flags=0) at mbox-sync.c:1029
#5  0x1c073 in mbox_sync (ibox=0x65c00, flags=0) at mbox-sync.c:1227
#6  0x1c374 in mbox_storage_sync_init (box=0x65c00, flags=0) at mbox-sync.c:1326
#7  0x3561d in mailbox_sync_init (box=0x65c00, flags=0) at mail-storage.c:329
#8  0xba5b in imap_sync_nonselected (box=0x65c00, flags=0) at imap-sync.c:153
#9  0x4c43 in get_mailbox_status (client=0x69100, storage=0x69080, mailbox=0x6b0c8 "Trash", items=31, status=0xdfbfdb74) at cmd-status.c:68
#10 0x4da6 in cmd_status (client=0x69100) at cmd-status.c:110
#11 0x5f66 in client_handle_input (client=0x69100) at client.c:323
#12 0x6039 in _client_input (context=0x69100) at client.c:367
#13 0x45d8c in io_loop_handler_run (ioloop=0x66040) at ioloop-poll.c:184
#14 0x45605 in io_loop_run (ioloop=0x66040) at ioloop.c:218
#15 0xd668 in main (argc=1, argv=0xdfbfdcdc, envp=0xdfbfdce4) at main.c:214



More information about the dovecot mailing list