[Dovecot] Panic: file mail-index-map.c: line 547 (mail_index_map_lookup_seq_range): assertion failed: (first_uid > 0)

Urban Loesch bind at enas.net
Tue Apr 8 07:16:31 UTC 2014


Hi,

today I had the same problem with 2.2.12 on debian squeeze.

Here comes the log:

...
Apr  8 08:40:45 mailstoreul dovecot: imap(user at domain.net pid:3618 session:<9cAjIG724wDD/uGI>): Panic: file mail-index-map.c: line 547
(mail_index_map_lookup_seq_range): assertion failed: (first_uid > 0)
Apr  8 08:40:45 mailstoreul dovecot: imap(user at domain.net pid:3618 session:<9cAjIG724wDD/uGI>): Error: Raw backtrace:
/usr/lib/dovecot/libdovecot.so.0(+0x6b85a) [0x7fb17b16b85a] -> /usr/lib/dovecot/libdovecot.so.0(+0x6b8d6) [0x7fb17b16b8d6] ->
/usr/lib/dovecot/libdovecot.so.0(i_error+0) [0x7fb17b124b9f] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0xbe7b4) [0x7fb17b48d7b4] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_index_lookup_seq+0x12) [0x7fb17b49f232] -> /usr/lib/dovecot/modules/lib20_virtual_plugin.so(+0x9cbd)
[0x7fb17993dcbd] -> /usr/lib/dovecot/modules/lib20_virtual_plugin.so(+0xa5eb) [0x7fb17993e5eb] ->
/usr/lib/dovecot/modules/lib20_virtual_plugin.so(virtual_storage_sync_init+0x5f5) [0x7fb17993f4d5] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x31) [0x7fb17b450461] -> dovecot/imap(imap_sync_init+0x7a) [0x42038a] ->
dovecot/imap(cmd_sync_delayed+0x1db) [0x42068b] -> dovecot/imap(client_handle_input+0x1ed) [0x4176ad] -> dovecot/imap(client_input+0x6f) [0x41795f] ->
/usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x36) [0x7fb17b17b3e6] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0xaf) [0x7fb17b17c46f]
-> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x38) [0x7fb17b17b358] -> /usr/lib/dovecot/libdovecot.so.0(master_service_run+0x13) [0x7fb17b129953]
-> dovecot/imap(main+0x2a7) [0x420e67] -> /lib/libc.so.6(__libc_start_main+0xfd) [0x7fb17adbcc8d] -> dovecot/imap() [0x40bcc9]
Apr  8 08:40:45 mailstoreul dovecot: imap(user at domain.net pid:3618 session:<9cAjIG724wDD/uGI>): Fatal: master: service(imap): child 3618 killed with
signal 6 (core dumps disabled)
...

Now I enabled core dumps. If it happens again I will send it.
My Client is Thunderbird 24.2.0. I have no idea which operation triggerd the error. I moved some mails to different multiple subfolders
under the INBOX.

Many thanks
Urban


Am 11.03.2014 21:00, schrieb Hardy Flor:
> Version: 2.2.12
> OS: Debian wheezy x86_64
> 
> 2014 Mar 11 20:06:53 ptb-test imap(flor_hardy): Panic: file mail-index-map.c: line 547 (mail_index_map_lookup_seq_range): assertion failed: (first_uid
>> 0)
> 2014 Mar 11 20:06:53 ptb-test imap(flor_hardy): Fatal: master: service(imap): child 2760 killed with signal 6 (core dumped)
> 
> GNU gdb (GDB) 7.4.1-debian
> Copyright (C) 2012 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later<http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /usr/lib/dovecot/imap...Reading symbols from /usr/lib/debug/usr/lib/dovecot/imap...done.
> done.
> [New LWP 2760]
> 
> warning: Can't read pathname for load map: Eingabe-/Ausgabefehler.
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> Core was generated by `dovecot/imap'.
> Program terminated with signal 6, Aborted.
> #0  0x00007f32d28b4475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
> (gdb) bt full
> #0  0x00007f32d28b4475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
> No symbol table info available.
> #1  0x00007f32d28b76f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
> No symbol table info available.
> #2  0x00007f32d2c78345 in default_fatal_finish (type=<optimized out>, status=status at entry=0) at failures.c:193
>         backtrace = 0x186d768 "/usr/lib/dovecot/libdovecot.so.0(+0x6b34f) [0x7f32d2c7834f] -> /usr/lib/dovecot/libdovecot.so.0(+0x6b3ae)
> [0x7f32d2c783ae] -> /usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f32d2c31e8e] -> /usr/lib/d"...
> #3  0x00007f32d2c783ae in i_internal_fatal_handler (ctx=0x7fff8d12aa30, format=<optimized out>, args=<optimized out>) at failures.c:657
>         status = 0
> #4  0x00007f32d2c31e8e in i_panic (format=format at entry=0x7f32d2fbc098 "file %s: line %d (%s): assertion failed: (%s)") at failures.c:267
>         ctx = {type = LOG_TYPE_PANIC, exit_status = 0, timestamp = 0x0}
>         args = {{gp_offset = 40, fp_offset = 48, overflow_arg_area = 0x7fff8d12ab20, reg_save_area = 0x7fff8d12aa60}}
> #5  0x00007f32d2fa03b2 in mail_index_map_lookup_seq_range (map=<optimized out>, first_uid=0, last_uid=<optimized out>,
>     first_seq_r=<optimized out>, last_seq_r=<optimized out>) at mail-index-map.c:549
>         __FUNCTION__ = "mail_index_map_lookup_seq_range"
> #6  0x00007f32d2fa856d in tview_lookup_seq_range (view=0x18a6850, first_uid=0, last_uid=0, first_seq_r=0x18a79e0, last_seq_r=0x18a79e0)
>     at mail-index-transaction-view.c:178
>         tview = 0x18a6850
>         rec = <optimized out>
>         seq = <optimized out>
>         __FUNCTION__ = "tview_lookup_seq_range"
> #7  0x00007f32d2fb17c2 in mail_index_lookup_seq (view=<optimized out>, uid=<optimized out>, seq_r=seq_r at entry=0x18a79e0)
>     at mail-index-view.c:522
> No locals.
> #8  0x00007f32d2f809b4 in index_mail_get_pvt (_mail=_mail at entry=0x18a78a0) at index-mail.c:158
> No locals.
> #9  0x00007f32d2f81082 in index_mail_get_pvt (_mail=0x18a78a0) at index-mail.c:152
>         mail = 0x18a78a0
> #10 index_mail_get_flags (_mail=0x18a78a0) at index-mail.c:177
>         mail = 0x18a78a0
>         rec = <optimized out>
>         flags = MAIL_ANSWERED
>         pvt_flags_mask = <optimized out>
> #11 0x00007f32d18371a4 in mail_log_append_mail_message_real (desc=0x7f32d1837504 "save", event=MAIL_LOG_EVENT_SAVE, mail=0x18a78a0,
>     ctx=0x18c62f0) at mail-log-plugin.c:297
>         muser = <optimized out>
>         msg = 0x18c6308
>         text = 0x186d310
>         size = 224891
> #12 mail_log_append_mail_message (desc=0x7f32d1837504 "save", event=MAIL_LOG_EVENT_SAVE, mail=0x18a78a0, ctx=0x18c62f0)
>     at mail-log-plugin.c:335
>         _data_stack_cur_id = 3
> #13 mail_log_append_mail_message (ctx=0x18c62f0, mail=0x18a78a0, event=MAIL_LOG_EVENT_SAVE, desc=0x7f32d1837504 "save")
>     at mail-log-plugin.c:320
>         muser = <optimized out>
> #14 0x00007f32d1c3c51b in notify_contexts_mail_save (mail=mail at entry=0x18a78a0) at notify-plugin.c:63
>         ctx = 0x1886fc0
>         mail_txn = <optimized out>
> #15 0x00007f32d1c3d4b0 in notify_save_finish (ctx=<optimized out>) at notify-storage.c:145
>         lbox = <optimized out>
>         dest_mail = 0x18a78a0
> #16 0x00007f32d2f64582 in mailbox_save_finish (_ctx=_ctx at entry=0x189a280) at mail-storage.c:2073
>         ctx = 0x18a9590
>         t = 0x18ab220
>         keywords = 0x0
>         pvt_flags = MAIL_SEEN
>         copying_via_save = false
>         ret = <optimized out>
>         __FUNCTION__ = "mailbox_save_finish"
> #17 0x000000000040cef1 in cmd_append_continue_message (cmd=0x189a120) at cmd-append.c:858
>         lit_offset = 228081
>         client = 0x1899540
>         ctx = 0x189a228
>         ret = <optimized out>
> #18 0x00000000004183cc in command_exec (cmd=0x189a120) at imap-commands.c:158
>         hook = 0x18760f0
>         ret = <optimized out>
> #19 0x000000000040c9a3 in client_input_append (cmd=0xac8) at cmd-append.c:116
>         ctx = 0x189a228
>         client = 0x1899540
>         reason = <optimized out>
>         finished = <optimized out>
>         lit_offset = <optimized out>
>         __FUNCTION__ = "client_input_append"
> #20 0x00007f32d2c88ab6 in io_loop_call_io (io=0x18ab150) at ioloop.c:388
>         ioloop = 0x1875740
>         t_id = 2
> #21 0x00007f32d2c89957 in io_loop_handler_run (ioloop=ioloop at entry=0x1875740) at ioloop-epoll.c:220
>         ctx = 0x18763d0
>         events = 0x0
>         event = 0x1877230
>         list = 0x1877e00
>         io = <optimized out>
>         tv = {tv_sec = 5, tv_usec = 398615}
>         events_count = <optimized out>
>         msecs = <optimized out>
>         ret = 1
>         i = <optimized out>
>         call = <optimized out>
>         __FUNCTION__ = "io_loop_handler_run"
> #22 0x00007f32d2c885c8 in io_loop_run (ioloop=0x1875740) at ioloop.c:412
>         __FUNCTION__ = "io_loop_run"
> #23 0x00007f32d2c37233 in master_service_run (service=0x18755d0, callback=callback at entry=0x420c50 <client_connected>) at master-service.c:566
> No locals.
> #24 0x000000000040c128 in main (argc=1, argv=0x1875390) at main.c:400
>         set_roots = {0x4287c0, 0x0}
>         login_set = {auth_socket_path = 0x186d048 "\001", postlogin_socket_path = 0x0, postlogin_timeout_secs = 60,
>           callback = 0x420ae0 <login_client_connected>, failure_callback = 0x4207f0 <login_client_failed>, request_auth_token = 1}
>         service_flags = <optimized out>
>         storage_service_flags = <optimized out>
>         username = 0x0
>         c = <optimized out>
> 
> 
> ********************************************************
> 
> In the "Projekte" folder several subfolderswere created.
> Now, when a user wants to save more e-mails in this subfolder does this Stop message.
> The e-mails are all but saved.
> 
> 


More information about the dovecot mailing list