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

2014-05-07 Thread Timo Sirainen
On 11.3.2014, at 22.00, Hardy Flor  wrote:

> 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)
..
> #6  0x7f32d2fa856d 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 = 
>seq = 
>__FUNCTION__ = "tview_lookup_seq_range"
> #7  0x7f32d2fb17c2 in mail_index_lookup_seq (view=, 
> uid=, seq_r=seq_r@entry=0x18a79e0)
>at mail-index-view.c:522
> No locals.
> #8  0x7f32d2f809b4 in index_mail_get_pvt (_mail=_mail@entry=0x18a78a0) at 
> index-mail.c:158

This should fix it: http://hg.dovecot.org/dovecot-2.2/rev/774e486a94ab


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

2014-04-08 Thread Urban Loesch
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(u...@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(u...@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(u...@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
> 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:
> ...
> 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  0x7f32d28b4475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
> (gdb) bt full
> #0  0x7f32d28b4475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
> No symbol table info available.
> #1  0x7f32d28b76f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
> No symbol table info available.
> #2  0x7f32d2c78345 in default_fatal_finish (type=, 
> status=status@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  0x7f32d2c783ae in i_internal_fatal_handler (ctx=0x7fff8d12aa30, 
> format=, args=) at failures.c:657
> status = 0
> #4  0x7f32d2c31e8e in i_panic (format=format@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  0x7f32d2fa03b2 in mail_index_map_lookup_seq_range (map= out>, first_uid=0, last_uid=,
> first_seq_r=, last_seq_r=) at 
> mail-index-map.c:549
> __FUNCTION__ = "mail_index_map_lookup_seq_range"
> #6  0x7f32d2fa856d 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 = 0x

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

2014-03-11 Thread 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
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:
...
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  0x7f32d28b4475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt full
#0  0x7f32d28b4475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x7f32d28b76f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2  0x7f32d2c78345 in default_fatal_finish (type=, 
status=status@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  0x7f32d2c783ae in i_internal_fatal_handler (ctx=0x7fff8d12aa30, 
format=, args=) at failures.c:657
status = 0
#4  0x7f32d2c31e8e in i_panic (format=format@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  0x7f32d2fa03b2 in mail_index_map_lookup_seq_range (map=, 
first_uid=0, last_uid=,
first_seq_r=, last_seq_r=) at 
mail-index-map.c:549
__FUNCTION__ = "mail_index_map_lookup_seq_range"
#6  0x7f32d2fa856d 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 = 
seq = 
__FUNCTION__ = "tview_lookup_seq_range"
#7  0x7f32d2fb17c2 in mail_index_lookup_seq (view=, 
uid=, seq_r=seq_r@entry=0x18a79e0)
at mail-index-view.c:522
No locals.
#8  0x7f32d2f809b4 in index_mail_get_pvt (_mail=_mail@entry=0x18a78a0) at 
index-mail.c:158
No locals.
#9  0x7f32d2f81082 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 = 
flags = MAIL_ANSWERED
pvt_flags_mask = 
#11 0x7f32d18371a4 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 = 
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 = 
#14 0x7f32d1c3c51b in notify_contexts_mail_save (mail=mail@entry=0x18a78a0) 
at notify-plugin.c:63
ctx = 0x1886fc0
mail_txn = 
#15 0x7f32d1c3d4b0 in notify_save_finish (ctx=) at 
notify-storage.c:145
lbox = 
dest_mail = 0x18a78a0
#16 0x7f32d2f64582 in mailbox_save_finish (_ctx=_ctx@entry=0x189a280) at 
mail-storage.c:2073
ctx = 0x18a9590
t = 0x18ab220
keywords = 0x0
pvt_flags = MAIL_SEEN
copying_via_save = false
ret = 
__FUNCTION__ = "mailbox_save_finish"
#17 0x0040cef1 in cmd_append_continue_message (cmd=0x189a120) at 
cmd-append.c:858
lit_offset = 228081
client = 0x1899540
ctx = 0x189a228
ret = 
#18 0x004183cc in command_exec (cmd=0x189a120) at imap-commands.c:158
hook = 0x18760f0
ret = 
#19 0x0040c9a3 in client_input_append (cmd=0xac8) at cmd-append.c:116
ctx = 0x189a228
client = 0x1899540
reason = 
finished = 
lit_offset = 
__FUNCTION__ = "client_input_append"
#20 0x7f32d2c88ab6