Alessandro Bono
2010-Jan-25 14:34 UTC
[Dovecot] dovecot 1.2.9 crash on subscribe with shared namespace
Hi all I'm testing dovecot to migrate from a cyrus 2.2 With TB2 if I use "subscribe" dovecot crash but only if I enable a shared namespace. Without explicit namespace or only with private namespace "subscribe" works Is this a problem already fixed in 1.2.10? is it a problem of my configuration? I tried different value for location in shared namespace but without any difference Below some info + gdb backtrace + dovecot -n Thanks Dovecot is version 1:1.2.9-1ubuntu2 from ubuntu lucid recompiled for ubuntu hardy on a xen domu amd64, fs is xfs warning: Can't read pathname for load map: Input/output error. Loaded symbols for /usr/lib/dovecot/imap Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/librt.so.1...done. Loaded symbols for /lib/librt.so.1 Reading symbols from /lib/libc.so.6...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/ld-linux-x86-64.so.2...done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 Reading symbols from /lib/libpthread.so.0...done. Loaded symbols for /lib/libpthread.so.0 Reading symbols from /usr/lib/dovecot/modules/imap/lib01_acl_plugin.so...done. Loaded symbols for /usr/lib/dovecot/modules/imap/lib01_acl_plugin.so Reading symbols from /usr/lib/dovecot/modules/imap/lib02_imap_acl_plugin.so...Reading symbols from /usr/lib/debug/usr/lib/dovecot/modules/imap/lib02_imap_acl_plugin.so...done. done. Loaded symbols for /usr/lib/dovecot/modules/imap/lib02_imap_acl_plugin.so Core was generated by `imap [sandro at mydomain.com x.x.x.x]'. Program terminated with signal 11, Segmentation fault. [New process 7474] #0 0x00007fc4c0ff37f3 in t_malloc_real (size=512, permanent=false) at data-stack.c:306 306 data-stack.c: No such file or directory. in data-stack.c (gdb) bt full #0 0x00007fc4c0ff37f3 in t_malloc_real (size=512, permanent=false) at data-stack.c:306 block = <value optimized out> ret = <value optimized out> alloc_size = <value optimized out> #1 0x00007fc4c0ff39fb in t_buffer_get (size=512) at data-stack.c:445 ret = (void *) 0x7fffb4dfc090 #2 0x00007fc4c100730e in vstrconcat (str1=0x7fc4c1010413 "", args=0x7fffb4dfc070, ret_len=0x7fffb4dfc088) at strfuncs.c:161 str = <value optimized out> temp = 0x0 bufsize = 512 i = 0 len = <value optimized out> __PRETTY_FUNCTION__ = "vstrconcat" #3 0x00007fc4c1007a93 in t_strconcat (str1=0x200 <Address 0x200 out of bounds>) at strfuncs.c:265 args = {{gp_offset = 8, fp_offset = 48, overflow_arg_area = 0x7fffb4dfc150, reg_save_area = 0x7fffb4dfc090}} len = 140482972553720 #4 0x00007fc4c0fa7ee4 in shared_storage_get_namespace (_storage=0x7fc4c125e258, _name=0x7fffb4dfc1f8, ns_r=0x7fffb4dfc208) at shared-storage.c:216 user = (struct mail_user *) 0x7fc4c125b5b8 tab = <value optimized out> ns = <value optimized out> owner = <value optimized out> domain = 0x7fc4c125b607 "lazzero.com" username = 0x7fc4c1010413 "" userdomain = 0x0 name = 0x7fc4c1010413 "" p = <value optimized out> next = 0x0 dest = (const char **) 0x7fffb4dfc198 error = <value optimized out> prefix = <value optimized out> location = <value optimized out> ret = <value optimized out> static_tab = {{key = 117 'u', value = 0x0, long_key = 0x7fc4c1017c0b "user"}, {key = 110 'n', value = 0x0, long_key = 0x7fc4c10151ea "username"}, {key = 100 'd', value = 0x0, long_key = 0x7fc4c10151f3 "domain"}, {key = 104 'h', value = 0x0, long_key = 0x7fc4c10151c1 "home"}, {key = 0 '\0', value = 0x0, long_key = 0x0}} #5 0x00007fc4c0fa777f in shared_list_get_path (list=<value optimized out>, name=0x7fc4c1010413 "", type=MAILBOX_LIST_PATH_TYPE_DIR) at shared-list.c:93 ns = (struct mail_namespace *) 0x0 #6 0x00007fc4c0fa7798 in shared_list_get_path (list=<value optimized out>, name=0x7fc4c1010413 "", type=MAILBOX_LIST_PATH_TYPE_DIR) at shared-list.c:107 ns = (struct mail_namespace *) 0x7fc4c125e190 #7 0x00007fc4c0fa7798 in shared_list_get_path (list=<value optimized out>, name=0x7fc4c1010413 "", type=MAILBOX_LIST_PATH_TYPE_DIR) at shared-list.c:107 ns = (struct mail_namespace *) 0x7fc4c125e190 #8 0x00007fc4c0fa7798 in shared_list_get_path (list=<value optimized out>, name=0x7fc4c1010413 "", type=MAILBOX_LIST_PATH_TYPE_DIR) at shared-list.c:107 ns = (struct mail_namespace *) 0x7fc4c125e190 and so on # 1.2.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.24-26-xen x86_64 Ubuntu 8.04.3 LTS xfs log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s managesieve ssl_cert_file: /etc/ssl/certs/mydomain-server.pem ssl_key_file: /etc/ssl/private/mydomain-server.key ssl_cipher_list: ALL:!LOW:!SSLv2 verbose_ssl: yes login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login login_executable(managesieve): /usr/lib/dovecot/managesieve-login login_greeting: Mail server ready. verbose_proctitle: yes first_valid_uid: 113 last_valid_uid: 113 first_valid_gid: 122 last_valid_gid: 122 mail_privileged_group: mail mail_uid: 113 mail_gid: 122 mail_location: maildir:/var/spool/mail/%d/%n/Maildir:LAYOUT=fs mbox_write_locks: fcntl dotlock mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_executable(managesieve): /usr/lib/dovecot/managesieve mail_plugins(default): acl imap_acl mail_plugins(imap): acl imap_acl mail_plugins(pop3): mail_plugins(managesieve): mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve imap_client_workarounds(default): delay-newmail tb-extra-mailbox-sep imap_client_workarounds(imap): delay-newmail tb-extra-mailbox-sep imap_client_workarounds(pop3): imap_client_workarounds(managesieve): imap_id_log(default): * imap_id_log(imap): * imap_id_log(pop3): imap_id_log(managesieve): pop3_uidl_format(default): %08Xu%08Xv pop3_uidl_format(imap): %08Xu%08Xv pop3_uidl_format(pop3): %v.%u pop3_uidl_format(managesieve): %08Xu%08Xv pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh pop3_client_workarounds(managesieve): namespace: type: private separator: / inbox: yes list: yes subscriptions: yes namespace: type: shared separator: / prefix: shared/%%n location: maildir:/var/spool/mail/%%d/%%n/Maildir:INDEX=~/Maildir/shared/%%u:LAYOUT=fs list: children lda: postmaster_address: postmaster at mydomain.com hostname: mx1.mydomain.com mail_plugins: acl auth_socket_path: /var/run/dovecot/auth-master auth default: mechanisms: plain login realms: mydomain.com default_realm: mydomain.com verbose: yes passdb: driver: ldap args: /etc/dovecot/dovecot-ldap.conf userdb: driver: static args: uid=113 gid=122 home=/var/spool/mail/%d/%n allow_all_users=yes socket: type: listen client: path: /var/run/dovecot/auth-client mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail plugin: acl: vfile -- Cordiali Saluti Alessandro Bono
Timo Sirainen
2010-Jan-25 18:56 UTC
[Dovecot] dovecot 1.2.9 crash on subscribe with shared namespace
On Mon, 2010-01-25 at 15:34 +0100, Alessandro Bono wrote:> namespace: > type: shared > separator: / > prefix: shared/%%nAdd '/' after the prefix. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20100125/f286c84c/attachment-0002.bin>
Alessandro Bono
2010-Jan-26 01:02 UTC
[Dovecot] dovecot 1.2.9 crash on subscribe with shared namespace
On Mon, 2010-01-25 at 20:56 +0200, Timo Sirainen wrote:> On Mon, 2010-01-25 at 15:34 +0100, Alessandro Bono wrote: > > > namespace: > > type: shared > > separator: / > > prefix: shared/%%n > > Add '/' after the prefix. >works thanks Timo -- Cordiali Saluti Alessandro Bono