[Dovecot] crashed with shared namespace

Xueron Nee xueron at xueron.com
Thu Apr 9 07:32:23 EEST 2009


Hi,

I have a shared namespace, which works fine yesterday. Today I have just
updated my dovecot to the newest from hg.dovecot.org, and it crashed
when list the shared namespace.

namespace shared {
    separator       = /
    prefix          = shared/%%u/
    location        = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u
    list            = children
    subscriptions   = no
}

cmd:
# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN] AMOS READY
a1 login test1 at xueron.com ******
a1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH ACL RIGHTS=texk] Logged in
a1 list "" "*"
* LIST (\HasNoChildren) "/" "Sent"
* LIST (\HasNoChildren) "/" "Spam"
* LIST (\HasChildren) "/" "virtual"
* LIST (\HasChildren) "/" "aaaaa"
* LIST (\HasNoChildren) "/" "aaaaa/aaa"
* LIST (\HasNoChildren) "/" "Junk"
* LIST (\HasNoChildren) "/" "Draft"
* LIST (\HasNoChildren) "/" "Trash"
* LIST (\HasNoChildren) "/" "INBOX"
* LIST (\Noselect \HasChildren) "/" "shared/xueron at xueron.com"
* LIST (\HasNoChildren) "/" "public/test2"
* LIST (\HasNoChildren) "/" "public/test4"
* LIST (\HasNoChildren) "/" "public/test1"
* LIST (\HasNoChildren) "/" "public/test3"
* LIST (\HasChildren) "/" "shared/xueron at xueron.com/mydir"
* LIST (\HasNoChildren) "/" "shared/xueron at xueron.com/mydir/subdir"
* LIST (\HasNoChildren) "/" "shared/xueron at xueron.com/newdir"
a1 OK List completed.
a1 list "shared/" "*"
Connection closed by foreign host.

maillog:

Apr  9 12:31:27 mail dovecot: Panic: IMAP(test1 at xueron.com): file
mail-user.c: line 30 (mail_user_init): assertion failed: (*username !=
'\0')
Apr  9 12:31:27 mail dovecot: IMAP(test1 at xueron.com): Raw backtrace:
imap [0x80e7800] -> imap [0x80e785a] -> imap [0x80e711c] -> imap
[0x80af7ab] -> imap(shared_storage_get_namespace+0x298) [0x8072708] ->
imap [0x8071eef] -> imap [0x80601ec] -> imap(cmd_list_full+0x4ad)
[0x8060bcd] -> imap(cmd_list+0x19) [0x8060ec9] -> imap [0x8063f9c] ->
imap [0x806404b] -> imap(client_handle_input+0x2f) [0x8064aff] ->
imap(client_input+0x63) [0x8064d33] -> imap(io_loop_handler_run+0x107)
[0x80effc7] -> imap(io_loop_run+0x28) [0x80ef0d8] -> imap(main+0x754)
[0x806d044] -> /lib/libc.so.6(__libc_start_main+0xdc) [0x901dec] -> imap
[0x805cf11]

Apr  9 12:31:27 mail dovecot: child 14971 (imap) killed with signal 6 (core
dumps disabled


btw: 
yesterday, there was such logs when 'list "shared/" "*"':
Apr  8 17:03:37 mail dovecot: IMAP(test1 at xueron.com): Invalid namespace
prefix %u/ vs 

but no crash.

Thanks :)
--
Xueron Nee
http://www.xueron.com



More information about the dovecot mailing list