[Dovecot] SIGBART/SIGSEGV while SELECTing virtual folder

Lars Noschinski lars at public.noschinski.de
Thu Oct 30 21:13:51 EET 2008


* Lars Noschinski <lars at public.noschinski.de> [08-10-26 15:31]:
>* Timo Sirainen <tss at iki.fi> [08-10-26 15:28]:
>>On Sun, 2008-10-26 at 11:49 +0100, Lars Noschinski wrote:
>>>#6  0xb7fbdca3 in virtual_mail_get_header_stream (mail=0x9b5c038, 
>>>headers=0x9885050, stream_r=0x920c7cc) at virtual-mail.c:252
>>>         backend_headers = (struct mailbox_header_lookup_ctx *) 0x99823e0
>>>         ret = <value optimized out>
>>
>>Whops, I almost fixed this the last time but left one important part
>>out. Fixed now. :)
>
>Yeah, looks good now. Thank you very much!

And another one to go (using latest hg tip, changeset 8360:7c615ac48711)

----------------------------------------------------------------------
% ./sbin/dovecot --exec-mail ext /usr/bin/gdb ./libexec/dovecot/imap
GNU gdb 6.8-debian
Copyright (C) 2008 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 "i486-linux-gnu"...
(gdb) run
Starting program: /tmp/dd/libexec/dovecot/imap 
* PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT THREAD=REFERENCES MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH SEARCHRES WITHIN CONTEXT=SEARCH] Logged in as lars
. SELECT virtual/alle

Program received signal SIGABRT, Aborted.
0xb7dbd556 in raise () from /lib/libc.so.6
(gdb) bt full
#0  0xb7dbd556 in raise () from /lib/libc.so.6
No symbol table info available.
#1  0xb7dbed78 in abort () from /lib/libc.so.6
No symbol table info available.
#2  0x080eaf15 in default_fatal_finish (type=<value optimized out>, status=0) at failures.c:150
         backtrace = 0xa120f60 "/tmp/dd/libexec/dovecot/imap [0x80eaf01] -> /tmp/dd/libexec/dovecot/imap(i_syslog_fatal_handler+0x34) [0x80eafd4] -> /tmp/dd/libexec/dovecot/imap [0x80ea919] -> /tmp/dd/lib/dovecot/imap/lib20_virtual_"...
#3  0x080eafd4 in i_syslog_fatal_handler (type=LOG_TYPE_PANIC, status=0, 
     fmt=0xb7ee38af "UID lost unexpectedly", args=0xbfe09004 "\001") at failures.c:308
No locals.
#4  0x080ea919 in i_panic (format=0xb7ee38af "UID lost unexpectedly") at failures.c:197
No locals.
#5  0xb7ee075e in virtual_sync_external_flags (ctx=0x9f130a8, bbox=0x977ea20, vseq=35152, 
     real_uid=1) at virtual-sync.c:66
         flags = <value optimized out>
         kw_names = <value optimized out>
         keywords = <value optimized out>
#6  0xb7ee230a in virtual_sync_backend_boxes (ctx=0x9f130a8) at virtual-sync.c:977
         i = 83
#7  0xb7ee28cf in virtual_storage_sync_init (box=0x977e5e0, flags=65) at virtual-sync.c:1199
         ret = <value optimized out>
#8  0x080b03b0 in mailbox_sync (box=0x17a8, flags=65, status_items=239, status_r=0xbfe093c8)
     at mail-storage.c:523
         ctx = (struct mailbox_sync_context *) 0x0
#9  0x08064ca8 in cmd_select_full (cmd=0x9775e60, readonly=false) at cmd-select.c:273
         client = (struct client *) 0x9775be0
         box = (struct mailbox *) 0xbfe09438
         ctx = (struct imap_select_context *) 0x9775ea8
         args = (const struct imap_arg *) 0x977aee0
         mailbox = 0x977af68 "alle"
         ret = <value optimized out>
         __PRETTY_FUNCTION__ = "cmd_select_full"
----------------------------------------------------------------------
Oct 30 20:09:18 vertikal EXT(lars): : Panic: UID lost unexpectedly
Oct 30 20:09:18 vertikal EXT(lars): : Raw backtrace: /tmp/dd/libexec/dovecot/imap [0x80eaf01] -> /tmp/dd/libexec/dovecot/imap(i_syslog_fatal_handler+0x34) [0x80eafd4] -> /tmp/dd/libexec/dovecot/imap [0x80ea919] -> /tmp/dd/lib/dovecot/imap/lib20_virtual_plugin.so [0xb7ee075e] -> /tmp/dd/lib/dovecot/imap/lib20_virtual_plugin.so [0xb7ee230a] -> /tmp/dd/lib/dovecot/imap/lib20_virtual_plugin.so(virtual_storage_sync_init+0x53f) [0xb7ee28cf] -> /tmp/dd/libexec/dovecot/imap(mailbox_sync+0x30) [0x80b03b0] -> /tmp/dd/libexec/dovecot/imap(cmd_select_full+0x3d8) [0x8064ca8] -> /tmp/dd/libexec/dovecot/imap(cmd_select+0x19) [0x8065409] -> /tmp/dd/libexec/dovecot/imap [0x806758c] -> /tmp/dd/libexec/dovecot/imap [0x8067629] -> /tmp/dd/libexec/dovecot/imap(client_handle_input+0x1d) [0x8067c2d] -> /tmp/dd/libexec/dovecot/imap(client_input+0x63) [0x80680e3] -> /tmp/dd/libexec/dovecot/imap(io_loop_handler_run+0xe0) [0x80f3400] -> /tmp/dd/libexec/dovecot/imap(io_loop_run+0x20) [0x80f2890] -> /tmp/dd/libexec/dovecot/imap(main+0x59d) 
----------------------------------------------------------------------


More information about the dovecot mailing list