2.2.27 panic file mail-index-map.c: line 549 (mail_index_map_lookup_seq_range): assertion failed: (first_uid > 0)

Aki Tuomi aki.tuomi at dovecot.fi
Tue Dec 6 08:00:37 UTC 2016



On 06.12.2016 09:32, Toni Mattila wrote:
> Hi,
>
> On 05-Dec-16 20:28, Toni Mattila wrote:
>> Panicing stopped when all index files where deleted.
>
> It happens again in same user account, so rebuilding indexes didn't 
> fix it.
>
> Here's bt full instead of just bt:
> #0  0x001d4402 in __kernel_vsyscall ()
> No symbol table info available.
> #1  0x00949d70 in raise () from /lib/i686/nosegneg/libc.so.6
> No symbol table info available.
> #2  0x0094b751 in abort () from /lib/i686/nosegneg/libc.so.6
> No symbol table info available.
> #3  0x003b7164 in default_fatal_finish (type=<value optimized out>, 
> status=0) at failures.c:201
>         backtrace = 0x85c0268 "/usr/lib/dovecot/libdovecot.so.0 
> [0x3b716f] -> /usr/lib/dovecot/libdovecot.so.0 [0x3b71ed] -> 
> /usr/lib/dovecot/libdovecot.so.0 [0x3b6e0b] -> 
> /usr/lib/dovecot/libdovecot-storage.so.0(mail_index_map_loo"...
> #4  0x003b71ed in i_internal_fatal_handler (ctx=0xbfe82a50, 
> format=0x527fac "file %s: line %d (%s): assertion failed: (%s)", 
> args=0xbfe82a74 "ƿS") at failures.c:670
>         status = 0
> #5  0x003b6e0b in i_panic (format=0x527fac "file %s: line %d (%s): 
> assertion failed: (%s)") at failures.c:275
>         ctx = {type = LOG_TYPE_PANIC, exit_status = 0, timestamp = 
> 0x0, timestamp_usecs = 0}
>         args = 0xbfe82a74 "ƿS"
> #6  0x00504c61 in mail_index_map_lookup_seq_range (map=0x85ffe18, 
> first_uid=0, last_uid=4294967295, first_seq_r=0xbfe82b64, 
> last_seq_r=0xbfe82b60) at mail-index-map.c:550
>         __FUNCTION__ = "mail_index_map_lookup_seq_range"
> #7  0x00519c2c in view_lookup_seq_range (view=0x85ffd50, first_uid=0, 
> last_uid=4294967295, first_seq_r=0xbfe82b64, last_seq_r=0xbfe82b60) at 
> mail-index-view.c:252
> No locals.
> #8  0x0051963c in mail_index_lookup_seq_range (view=0x85ffd50, 
> first_uid=0, last_uid=4294967295, first_seq_r=0xbfe82b64, 
> last_seq_r=0xbfe82b60) at mail-index-view.c:513
> No locals.
> #9  0x0047a39f in mailbox_get_seq_range (box=0x85e4418, uid1=0, 
> uid2=4294967295, seq1_r=0xbfe82b64, seq2_r=0xbfe82b60) at 
> mailbox-get.c:11
> No locals.
> #10 0x004697af in mailbox_uidset_change (args=0x8602500, 
> arg=0x86025d0, change_uidsets=true, search_saved_uidset=0x85e0e7c) at 
> mail-search.c:45
>         i = 1
>         seq1 = 1
>         seq2 = 78
> #11 mail_search_arg_init (args=0x8602500, arg=0x86025d0, 
> change_uidsets=true, search_saved_uidset=0x85e0e7c) at mail-search.c:72
>         _data_stack_cur_id = 4
>         thread_args = <value optimized out>
>         keywords = {0xbfe82b78 "�+�o\231F", 0x46b936 
> "\204�u�\211�\204�u�\203�\020^_]�\213E\b\211�\213P\b\213@\f�\004$\001"}
>         __FUNCTION__ = "mail_search_arg_init"
> #12 0x0046996f in mail_search_args_init (args=0x8602500, 
> box=0x85e4418, change_uidsets=true, search_saved_uidset=0x85e0e7c) at 
> mail-search.c:142
>         __FUNCTION__ = "mail_search_args_init"
> #13 0x08066c91 in imap_search_args_build (cmd=0x85e1800, 
> args=0x85e4030, charset=0x8070f89 "UTF-8", search_args_r=0xbfe82c18) 
> at imap-search-args.c:71
>         parser = 0x0
>         sargs = 0x8602500
>         error = <value optimized out>
>         ret = 0
> #14 0x08058219 in cmd_search (cmd=0x85e1800) at cmd-search.c:42
>         ctx = 0x85e18e8
>         sargs = <value optimized out>
>         args = 0x85e4030
>         charset = 0x8070f89 "UTF-8"
>         ret = <value optimized out>
> #15 0x0805f2b3 in command_exec (cmd=0x85e1800) at imap-commands.c:181
>         hook = 0x85c89b0
>         finished = <value optimized out>
>         cmd_start_timeval = {tv_sec = 1481007511, tv_usec = 140244}
>         cmd_start_bytes_in = 29
>         cmd_start_bytes_out = 712
>         cmd_start_lock_waits = 0
>         __FUNCTION__ = "command_exec"
> #16 0x0805d28f in client_command_input (cmd=0x85e1800) at 
> imap-client.c:986
> ---Type <return> to continue, or q <return> to quit---
>         client = 0x85e0db8
>         command = <value optimized out>
>         __FUNCTION__ = "client_command_input"
> #17 0x0805d30a in client_command_input (cmd=0x85e1800) at 
> imap-client.c:1046
>         client = 0x85e0db8
>         command = 0x701e
>         __FUNCTION__ = "client_command_input"
> #18 0x0805d515 in client_handle_next_command (client=0x85e0db8) at 
> imap-client.c:1088
> No locals.
> #19 client_handle_input (client=0x85e0db8) at imap-client.c:1100
>         _data_stack_cur_id = 3
>         remove_io = <value optimized out>
>         handled_commands = false
>         __FUNCTION__ = "client_handle_input"
> #20 0x0805dae1 in client_input (client=0x85e0db8) at imap-client.c:1147
>         cmd = <value optimized out>
>         output = 0x85e16f8
>         bytes = 31
>         __FUNCTION__ = "client_input"
> #21 0x003cda88 in io_loop_call_io (io=0x85e1778) at ioloop.c:599
>         ioloop = 0x85c8498
>         t_id = 2
>         __FUNCTION__ = "io_loop_call_io"
> #22 0x003cf62f in io_loop_handler_run_internal (ioloop=0x85c8498) at 
> ioloop-epoll.c:222
>         ctx = <value optimized out>
>         event = 0x85ca230
>         list = 0x85cab10
>         io = 0x6
>         tv = {tv_sec = 1799, tv_usec = 999295}
>         msecs = 1800000
>         ret = 1
>         i = 0
>         j = 0
>         call = false
>         __FUNCTION__ = "io_loop_handler_run_internal"
> #23 0x003cdc0f in io_loop_handler_run (ioloop=0x85c8498) at ioloop.c:648
> No locals.
> #24 0x003cdef8 in io_loop_run (ioloop=0x85c8498) at ioloop.c:623
>         __FUNCTION__ = "io_loop_run"
> #25 0x0034e49d in master_service_run (service=0x85c83c8, 
> callback=0x806af90 <client_connected>) at master-service.c:641
> No locals.
> #26 0x0806b927 in main (argc=Cannot access memory at address 0x0
> ) at main.c:460
>         login_set = {auth_socket_path = 0x85c0038 "P", 
> postlogin_socket_path = 0x0, postlogin_timeout_secs = 60, callback = 
> 0x806b320 <login_client_connected>,
>           failure_callback = 0x806b030 <login_client_failed>, 
> request_auth_token = 1}
>         service_flags = <value optimized out>
>         storage_service_flags = 4097
>         username = 0x0
>         auth_socket_path = 0x8074c39 "auth-master"
>         c = <value optimized out>
>         set_roots = {0x8073e80, 0x807b220, 0x0}
>
>
> Cheers,
> Toni Mattila

Hi!

Any chance to get the core file? Do you know what command was issued on 
wire?

Aki


More information about the dovecot mailing list