Toni Mattila
2016-Dec-05 18:28 UTC
2.2.27 panic file mail-index-map.c: line 549 (mail_index_map_lookup_seq_range): assertion failed: (first_uid > 0)
Hi, Dec 5 20:24:31 dovecot: imap(xx at yy.zz,7ckWZu1CuZFVTILa): Fatal: master: service(imap): child 7292 killed with signal 6 (core dumped) Dec 5 20:24:32 dovecot: imap(xx at yy.zz,LnAlZu1COBVVTILa): Panic: file mail-index-map.c: line 549 (mail_index_map_lookup_seq_range): assertion failed: (first_uid > 0) Dec 5 20:24:32 dovecot: imap(xx at yy.zz,LnAlZu1COBVVTILa): Error: Raw backtrace: /usr/lib/dovecot/libdovecot.so.0 [0x32416f] -> /usr/lib/dovecot/libdovecot.so.0 [0x3241ed] -> /usr/lib/dovecot/libdovecot.so.0 [0x323e0b] -> /usr/lib/dovecot/libdovecot-storage.so.0(mail_index_map_lookup_seq_range+0xf1) [0x234c61] -> /usr/lib/dovecot/libdovecot-storage.so.0 [0x249c2c] -> /usr/lib/dovecot/libdovecot-storage.so.0(mail_index_lookup_seq_range+0x2c) [0x24963c] -> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_get_seq_range+0x3f) [0x1aa39f] -> /usr/lib/dovecot/libdovecot-storage.so.0(mail_search_arg_init+0x26f) [0x1997af] -> /usr/lib/dovecot/libdovecot-storage.so.0(mail_search_args_init+0x6f) [0x19996f] -> dovecot/imap(imap_search_args_build+0x91) [0x8066c91] -> dovecot/imap(cmd_search+0xb9) [0x8058219] -> dovecot/imap(command_exec+0x83) [0x805f2b3] -> dovecot/imap [0x805d28f] -> dovecot/imap [0x805d30a] -> dovecot/imap(client_handle_input+0x45) [0x805d515] -> dovecot/imap(client_input+0x71) [0x805da (gdb) bt #0 0x00635402 in __kernel_vsyscall () #1 0x00949d70 in raise () from /lib/i686/nosegneg/libc.so.6 #2 0x0094b751 in abort () from /lib/i686/nosegneg/libc.so.6 #3 0x00224164 in default_fatal_finish (type=<value optimized out>, status=0) at failures.c:201 #4 0x002241ed in i_internal_fatal_handler (ctx=0xbf8627d0, format=0x5b7fac "file %s: line %d (%s): assertion failed: (%s)", args=0xbf8627f4 "?\\") at failures.c:670 #5 0x00223e0b in i_panic (format=0x5b7fac "file %s: line %d (%s): assertion failed: (%s)") at failures.c:275 #6 0x00594c61 in mail_index_map_lookup_seq_range (map=0x89afc50, first_uid=0, last_uid=4294967295, first_seq_r=0xbf8628e4, last_seq_r=0xbf8628e0) at mail-index-map.c:550 #7 0x005a9c2c in view_lookup_seq_range (view=0x89af670, first_uid=0, last_uid=4294967295, first_seq_r=0xbf8628e4, last_seq_r=0xbf8628e0) at mail-index-view.c:252 #8 0x005a963c in mail_index_lookup_seq_range (view=0x89af670, first_uid=0, last_uid=4294967295, first_seq_r=0xbf8628e4, last_seq_r=0xbf8628e0) at mail-index-view.c:513 #9 0x0050a39f in mailbox_get_seq_range (box=0x8995418, uid1=0, uid2=4294967295, seq1_r=0xbf8628e4, seq2_r=0xbf8628e0) at mailbox-get.c:11 #10 0x004f97af in mailbox_uidset_change (args=0x89b4d40, arg=0x89b4e10, change_uidsets=true, search_saved_uidset=0x8991e7c) at mail-search.c:45 #11 mail_search_arg_init (args=0x89b4d40, arg=0x89b4e10, change_uidsets=true, search_saved_uidset=0x8991e7c) at mail-search.c:72 #12 0x004f996f in mail_search_args_init (args=0x89b4d40, box=0x8995418, change_uidsets=true, search_saved_uidset=0x8991e7c) at mail-search.c:142 #13 0x08066c91 in imap_search_args_build (cmd=0x8992800, args=0x8995030, charset=0x8070f89 "UTF-8", search_args_r=0xbf862998) at imap-search-args.c:71 #14 0x08058219 in cmd_search (cmd=0x8992800) at cmd-search.c:42 #15 0x0805f2b3 in command_exec (cmd=0x8992800) at imap-commands.c:181 #16 0x0805d28f in client_command_input (cmd=0x8992800) at imap-client.c:986 #17 0x0805d30a in client_command_input (cmd=0x8992800) at imap-client.c:1046 #18 0x0805d515 in client_handle_next_command (client=0x8991db8) at imap-client.c:1088 #19 client_handle_input (client=0x8991db8) at imap-client.c:1100 #20 0x0805dae1 in client_input (client=0x8991db8) at imap-client.c:1147 #21 0x0023aa88 in io_loop_call_io (io=0x8992778) at ioloop.c:599 #22 0x0023c62f in io_loop_handler_run_internal (ioloop=0x8979498) at ioloop-epoll.c:222 #23 0x0023ac0f in io_loop_handler_run (ioloop=0x8979498) at ioloop.c:648 #24 0x0023aef8 in io_loop_run (ioloop=0x8979498) at ioloop.c:623 #25 0x001bb49d in master_service_run (service=0x89793c8, callback=0x806af90 <client_connected>) at master-service.c:641 #26 0x0806b927 in main (argc=Cannot access memory at address 0x0 ) at main.c:460 (gdb) Panicing stopped when all index files where deleted. Cheers, Toni Mattila
Toni Mattila
2016-Dec-06 07:32 UTC
2.2.27 panic file mail-index-map.c: line 549 (mail_index_map_lookup_seq_range): assertion failed: (first_uid > 0)
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
Aki Tuomi
2016-Dec-06 08:00 UTC
2.2.27 panic file mail-index-map.c: line 549 (mail_index_map_lookup_seq_range): assertion failed: (first_uid > 0)
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 MattilaHi! Any chance to get the core file? Do you know what command was issued on wire? Aki
Possibly Parallel Threads
- 2.2.27 panic file mail-index-map.c: line 549 (mail_index_map_lookup_seq_range): assertion failed: (first_uid > 0)
- 2.2.27 panic file mail-index-map.c: line 549 (mail_index_map_lookup_seq_range): assertion failed: (first_uid > 0)
- 2.2.27 panic file mail-index-map.c: line 549 (mail_index_map_lookup_seq_range): assertion failed: (first_uid > 0)
- Panic: file mail-transaction-log-file.c: line 105 (mail_transaction_log_file_free): assertion failed: (!file->locked)
- Some issues in Dovecot 1.2.5 after upgrade from 1.0.15