Hi! Thank you reporting this, we'll look into it
---Aki TuomiDovecot oy
-------- Original message --------From: John van der Kamp <jkamp at
amazon.nl> Date: 15/02/2018 16:55 (GMT+02:00) To: Dovecot Mailing List
<dovecot at dovecot.org> Subject: Segfault on selecting mailbox twice in a
row
Hi,
I was doing some testing with new 2.2 changes. I?m using commit 15d5b8a from
origin/master-2.2. The setup is using imapc to connect to a different imap
server.
If I use the following commands, dovecot will crash every time:
A login username password
B select inbox
C select inbox
The logfile snippit is at the end of the mail. Let me know if you need more
information.
John
----
Feb 15 15:43:06 imap(user1 at domain.com): Debug: imapc:
root=/tmp/tmpVuVTYr/dovecot1/users/user1 at domain.com/imapc, index=, indexpvt=,
control=, inbox=, altFeb 15 15:43:06 imap(user1 at domain.com): Debug:
maildir++: root=/tmp/tmpVuVTYr/dovecot1/users/user1 at domain.com/imapc, index=,
indexpvt=, control=, inbox=, altFeb 15 15:43:09 imap(user1 at domain.com):
Debug: INBOX: Mailbox opened because: SELECT
Feb 15 15:43:12 imap(user1 at domain.com): Debug: INBOX: Mailbox opened because:
SELECT
Feb 15 15:43:14 imap(user1 at domain.com): Error: Log synchronization error at
seq=2,offset=80372 for /tmp/tmpVuVTYr/dovecot1/users/user1 at
domain.com/imapc/.INBOX/dovecot.index: Append with UID 10, but next_uid = 10421
Feb 15 15:43:14 imap(user1 at domain.com): Warning: fscking index file
/tmp/tmpVuVTYr/dovecot1/users/user1 at domain.com/imapc/.INBOX/dovecot.index
Feb 15 15:43:14 imap(user1 at domain.com): Warning: imapc(127.0.0.1:31513):
Mailbox 'INBOX' state corrupted: Expunged message uid=10 reappeared -
reconnecting (delay 0 ms)
Feb 15 15:43:14 imap(user1 at domain.com): Debug: imapc(127.0.0.1:31513):
Disconnected
Feb 15 15:43:14 imap(user1 at domain.com): Debug: imapc(127.0.0.1:31513):
Looking up IP address (reconnect_ok=false, last_connect=1518705794)
Feb 15 15:43:14 imap(user1 at domain.com): Debug: imapc(127.0.0.1:31513):
Connecting to 127.0.0.1:31513
Feb 15 15:43:14 imap(user1 at domain.com): Panic: file imapc-client.c: line 410
(imapc_client_mailbox_reconnect): assertion failed: (!box->reconnecting)
Feb 15 15:43:14 imap(user1 at domain.com): Error: Raw backtrace:
/usr/local/lib/dovecot/libdovecot.so.0(+0x9fe12) [0x7f2a05301e12] ->
/usr/local/lib/dovecot/libdovecot.so.0(+0x9fefd) [0x7f2a05301efd] ->
/usr/local/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f2a052924d1] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0x99704) [0x7f2a0562f704] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(imapc_mailbox_set_corrupted+0xe3)
[0x7f2a05628e63] -> /usr/local/lib/dovecot/libdovecot-storage.so.0(+0x97cf5)
[0x7f2a0562dcf5] -> /usr/local/lib/dovecot/libdovecot-storage.so.0(+0x97d70)
[0x7f2a0562dd70] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(imapc_mailbox_sync_init+0x8bd)
[0x7f2a0562e89d] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x44)
[0x7f2a055e1c14] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x37)
[0x7f2a055e1cb7] -> dovecot/imap(cmd_select_full+0x171) [0x413e51] ->
dovecot/imap(command_exec+0x5c) [0x41b06c] -> dovecot/imap() [0x419662] ->
dovecot/imap() [0x4196ec] -> dovecot/imap(client_handle_input+0x155)
[0x419a85] -> dovecot/imap(client_input+0x82) [0x419ff2] ->
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x52) [0x7f2a053180d2]
-> /usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x109)
[0x7f2a053197c9] ->
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x3c)
[0x7f2a0531816c] -> /usr/local/lib/dovecot/libdovecot.so.0(io_loop_run+0x38)
[0x7f2a05318318] ->
/usr/local/lib/dovecot/libdovecot.so.0(master_service_run+0x13) [0x7f2a0529cd93]
-> dovecot/imap(main+0x302) [0x40cb92] ->
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f2a04eb8830] ->
dovecot/imap(_start+0x29) [0x40cd19]
Feb 15 15:43:14 imap(user1 at domain.com): Fatal: master: service(imap): child
9496 killed with signal 6 (core dumped)
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<https://dovecot.org/pipermail/dovecot/attachments/20180215/9dd50183/attachment.html>