[Dovecot] Problems with Virtual and mail-search.c
First, I don't know why but dovecot gots this error. Oct 15 13:24:02 widder dovecot: imap(limon): Panic: file mail-search.c: line 90 (mail_search_args_init_sub): assertion failed: (arg->value.keywords == NULL) Then, when I tried to run SELECT "INBOX/Code" (UNSEEN) virtual plugin got a segfault. Oct 15 13:24:03 widder kernel: imap[22749]: segfault at 2c ip b757f8ec sp bfa3a160 error 4 in lib20_virtual_plugin.so[b7579000+d000][b74b0000+d000]
I'm running gentoo with kernel 2.6.32.12. My dovecot version is 2.1.10. I applied
http://hg.dovecot.org/dovecot-2.1/raw-diff/0306792cc843/src/lib-storage/mail...
But still, i'm getting this problem.
Thanks, Levent Dane
On 18.10.2012, at 1.40, Levent Dane wrote:
First, I don't know why but dovecot gots this error. Oct 15 13:24:02 widder dovecot: imap(limon): Panic: file mail-search.c: line 90 (mail_search_args_init_sub): assertion failed: (arg->value.keywords == NULL) Then, when I tried to run SELECT "INBOX/Code" (UNSEEN) virtual plugin got a segfault. Oct 15 13:24:03 widder kernel: imap[22749]: segfault at 2c ip b757f8ec sp bfa3a160 error 4 in lib20_virtual_plugin.so[b7579000+d000][b74b0000+d000]
I can't reproduce this. What contents do you have in dovecot-virtual files? Also doveconf -n output and gdb backtrace would be helpful: http://dovecot.org/bugreport.html
On 10/18, Timo Sirainen wrote:
On 18.10.2012, at 1.40, Levent Dane wrote:
First, I don't know why but dovecot gots this error. Oct 15 13:24:02 widder dovecot: imap(limon): Panic: file mail-search.c: line 90 (mail_search_args_init_sub): assertion failed: (arg->value.keywords == NULL) Then, when I tried to run SELECT "INBOX/Code" (UNSEEN) virtual plugin got a segfault. Oct 15 13:24:03 widder kernel: imap[22749]: segfault at 2c ip b757f8ec sp bfa3a160 error 4 in lib20_virtual_plugin.so[b7579000+d000][b74b0000+d000]
I can't reproduce this. What contents do you have in dovecot-virtual files? Also doveconf -n output and gdb backtrace would be helpful: http://dovecot.org/bugreport.html
in Code/dovecot-virtual: Archive inthread refs keyword code not deleted
dovecot -n http://pastebin.com/6CQd7tJK
My mail client is Mutt-hg with sidebar patch
I tried to take coredump but i didn't compile with debug flags. http://pastebin.com/CMbiYJeK
If you can't reproduce this error. Tomorrow, I'll compile with debug flags.
Thanks,
-- Levent Dane 832 356 7771 4604 Spruce St, Bellaire, TX 77401
On 18.10.2012, at 9.03, Levent Dane wrote:
I can't reproduce this. What contents do you have in dovecot-virtual files? Also doveconf -n output and gdb backtrace would be helpful: http://dovecot.org/bugreport.html
in Code/dovecot-virtual: Archive inthread refs keyword code not deleted
I still couldn't reproduce with this.
I tried to take coredump but i didn't compile with debug flags. http://pastebin.com/CMbiYJeK
I think the problem here mainly is that gdb doesn't work very nicely across multiple execs (imap executes doveconf which executes imap again). You can avoid that by getting a core dump the regular way or making the $base_dir/config socket 0666 permissions.
If you can't reproduce this error. Tomorrow, I'll compile with debug flags.
A proper gdb backtrace would definitely be the easiest way to solve this.
BTW. Is it only STATUS (UNSEEN) that crashes, or also if you simply SELECT the mailbox?
On 10/29, Timo Sirainen wrote:
On 18.10.2012, at 9.03, Levent Dane wrote:
I can't reproduce this. What contents do you have in dovecot-virtual files? Also doveconf -n output and gdb backtrace would be helpful: http://dovecot.org/bugreport.html
in Code/dovecot-virtual: Archive inthread refs keyword code not deleted
I still couldn't reproduce with this.
I think the problem is mail-search.c is corrupting the index files.
I tried to take coredump but i didn't compile with debug flags. http://pastebin.com/CMbiYJeK
I think the problem here mainly is that gdb doesn't work very nicely across multiple execs (imap executes doveconf which executes imap again). You can avoid that by getting a core dump the regular way or making the $base_dir/config socket 0666 permissions.
I compiled with -ggdb flag. I'm getting this informations /var/log/messages: http://pastebin.com/bpkvp4Ak and from gdb: http://pastebin.com/HY0mVYBS
I'm using mutt for imap access. When I pressed '%' key which runs <sync-mailbox> function, the dovecot got seqfault.
If you can't reproduce this error. Tomorrow, I'll compile with debug flags.
A proper gdb backtrace would definitely be the easiest way to solve this.
BTW. Is it only STATUS (UNSEEN) that crashes, or also if you simply SELECT the mailbox?
I tried simple SELECT and it still crashed. As I said, the problem is dovecot.index files. Somehow, mail-search.c corrupts this file.
-- Levent Dane 832 356 7771 4604 Spruce St, Bellaire, TX 77401
On 29.10.2012, at 20.17, Levent Dane wrote:
On 10/29, Timo Sirainen wrote:
On 18.10.2012, at 9.03, Levent Dane wrote:
I can't reproduce this. What contents do you have in dovecot-virtual files? Also doveconf -n output and gdb backtrace would be helpful: http://dovecot.org/bugreport.html
in Code/dovecot-virtual: Archive inthread refs keyword code not deleted
I still couldn't reproduce with this.
I think the problem is mail-search.c is corrupting the index files.
Not that itself, but yeah looks like if virtual plugin assert-crashes in mail-search.c it leaves the indexes so that the next access will segfault.
I compiled with -ggdb flag. I'm getting this informations /var/log/messages: http://pastebin.com/bpkvp4Ak and from gdb: http://pastebin.com/HY0mVYBS
Better backtrace than last time, but still no debug information in the backtrace. Maybe that got stripped somewhere between compiling and installing? You can check with "file ..../imap" to see if it's there.
Also backtrace from both the mail-search.c assert crash and the segfault would be useful.
On 10/29, Timo Sirainen wrote:
On 29.10.2012, at 20.17, Levent Dane wrote:
On 10/29, Timo Sirainen wrote:
On 18.10.2012, at 9.03, Levent Dane wrote:
I can't reproduce this. What contents do you have in dovecot-virtual files? Also doveconf -n output and gdb backtrace would be helpful: http://dovecot.org/bugreport.html
in Code/dovecot-virtual: Archive inthread refs keyword code not deleted
I still couldn't reproduce with this.
I think the problem is mail-search.c is corrupting the index files.
Not that itself, but yeah looks like if virtual plugin assert-crashes in mail-search.c it leaves the indexes so that the next access will segfault.
I compiled with -ggdb flag. I'm getting this informations /var/log/messages: http://pastebin.com/bpkvp4Ak and from gdb: http://pastebin.com/HY0mVYBS
Better backtrace than last time, but still no debug information in the backtrace. Maybe that got stripped somewhere between compiling and installing? You can check with "file ..../imap" to see if it's there.
Also backtrace from both the mail-search.c assert crash and the segfault would be useful.
I think I get correct backtrace. I attached this mail and uploaded pastebin.
-- Levent Dane 832 356 7771 4604 Spruce St, Bellaire, TX 77401
participants (2)
-
Levent Dane
-
Timo Sirainen