[Dovecot] Segmentation fault in doveadm with lib01_acl_plugin.so
Hi, I'm running dovecot 2.1.10 on Debian 6. When I run doveadm expunge -A mailbox Trash savedbefore 30d it crash with Segmentation fault [15022673.496902] doveadm[13072]: segfault at 8 ip 7f4b7041f551 sp 7fffdab4f8c0 error 4 in lib01_acl_plugin.so[7f4b70415000+1] If I add -D to doveadm I can see this: doveadm(myu...@mydomain.com): Debug: Added userdb setting: plugin/quota_rule=*:backend=524288000S doveadm(myu...@mydomain.com): Debug: Effective uid=89, gid=89, home=/home/vpopmail/domains/2/mydomain.com/myuser doveadm(myu...@mydomain.com): Debug: Quota root: name=UserQuota backend=maildir args= doveadm(myu...@mydomain.com): Debug: Quota rule: root=UserQuota mailbox=* bytes=524288000 messages=0 doveadm(myu...@mydomain.com): Debug: Quota rule: root=UserQuota mailbox=Trash bytes=+104857600 messages=0 doveadm(myu...@mydomain.com): Debug: Quota root: name=User quota backend=dict args=:noenforcing:proxy::quota doveadm(myu...@mydomain.com): Debug: dict quota: user=myu...@mydomain.com, uri=proxy::quota, noenforcing=1 doveadm(myu...@mydomain.com): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir doveadm(myu...@mydomain.com): Debug: maildir++: root=/home/vpopmail/domains/2/mydomain.com/myuser/Maildir, index=, control=, inbox=/home/vpopmail/domains/2/mydomain.com/myuser/Maildir, alt= doveadm(myu...@mydomain.com): Debug: acl: initializing backend with data: vfile:/usr/local/dovecot-2.1/etc/dovecot/global-acls:cache_secs=300 doveadm(myu...@mydomain.com): Debug: acl: acl username = myu...@mydomain.com doveadm(myu...@mydomain.com): Debug: acl: owner = 1 doveadm(myu...@mydomain.com): Debug: acl vfile: Global ACL directory: /usr/local/dovecot-2.1/etc/dovecot/global-acls doveadm(myu...@mydomain.com): Debug: Namespace : type=shared, prefix=shared/%n/, sep=/, inbox=no, hidden=no, list=children, subscriptions=no location=maildir:%h/Maildir:INDEX=~/Maildir/shared/%u doveadm(myu...@mydomain.com): Debug: shared: root=/usr/local/dovecot-2.1/var/run/dovecot, index=, control=, inbox=, alt= doveadm(myu...@mydomain.com): Debug: acl: initializing backend with data: vfile:/usr/local/dovecot-2.1/etc/dovecot/global-acls:cache_secs=300 doveadm(myu...@mydomain.com): Debug: acl: acl username = myu...@mydomain.com doveadm(myu...@mydomain.com): Debug: acl: owner = 0 doveadm(myu...@mydomain.com): Debug: acl vfile: Global ACL directory: /usr/local/dovecot-2.1/etc/dovecot/global-acls doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=276 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=277 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=278 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=279 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=280 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=281 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=282 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=283 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=284 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=285 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=286 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=287 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=288 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=289 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=290 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=291 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=292 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=293 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=294 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=295 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=296 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=297 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=298 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=299 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=300 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=301 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=302 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=303 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=304 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=305 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=306 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=307 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=308 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=309 doveadm(myu...@mydomain.com): Debug: expunge: box=Trash uid=310 doveadm(myu...@mydomain.com): Debug: acl vfile: file /usr/local/dovecot-2.1/etc/dovecot/global-acls//.DEFAULT not found doveadm(myu...@mydomain.com): Debug: Namespace : Using permissions from
Re: [Dovecot] Segmentation fault in doveadm with lib01_acl_plugin.so
On 13.10.2012, at 11.16, Alessio Cecchi wrote: I'm running dovecot 2.1.10 on Debian 6. When I run doveadm expunge -A mailbox Trash savedbefore 30d it crash with Segmentation fault [15022673.496902] doveadm[13072]: segfault at 8 ip 7f4b7041f551 sp 7fffdab4f8c0 error 4 in lib01_acl_plugin.so[7f4b70415000+1] The most helpful way to get this fixed is to get a gdb backtrace: http://dovecot.org/bugreport.html
Re: [Dovecot] Segmentation fault in doveadm with lib01_acl_plugin.so
Il 2012-10-13 10:42 Timo Sirainen ha scritto: On 13.10.2012, at 11.16, Alessio Cecchi wrote: I'm running dovecot 2.1.10 on Debian 6. When I run doveadm expunge -A mailbox Trash savedbefore 30d it crash with Segmentation fault [15022673.496902] doveadm[13072]: segfault at 8 ip 7f4b7041f551 sp 7fffdab4f8c0 error 4 in lib01_acl_plugin.so[7f4b70415000+1] The most helpful way to get this fixed is to get a gdb backtrace: http://dovecot.org/bugreport.html Hi Timo, I'm unable to get core dump from doveadm, I start dovecot after run ulimit -c unlimited and set echo /tmp/%p /proc/sys/kernel/core_pattern, so core dumps is enable: Oct 13 12:38:02 master: Info: Dovecot v2.1.10 starting up Oct 13 12:38:18 auth-worker(5000): Info: mysql(localhost): Connected to database vpopmail Oct 13 12:38:18 dict: Info: mysql(109.168.113.139): Connected to database dovecot Oct 13 12:38:26 dict: Info: mysql(109.168.113.139): Connected to database dovecot Oct 13 12:38:29 dict: Info: mysql(109.168.113.139): Connected to database dovecot Oct 13 12:39:51 dict: Info: mysql(109.168.113.139): Connected to database dovecot but when doveadm stops with Segmentation fault I'm unable to find any dump file and no information in dovecot.log. Can you help me? Thanks
Re: [Dovecot] Help!
Hi, I have installed sendmail, dovecot, and squirrel mail. The squirrel mail portion of it works just fine, but I would like to have Mozilla Thunderbird as a client. Whenever I try and connect to the server it says Thunderbird failed to find the settings for your email account. We do have an MX record in DNS pointing to our server. We are using Ubuntu 12.0.4.1, and have Dovecot 2.2.6 sendmail version 8.14.4-2ubuntu2 We are doing this for a class project and it is due by Tuesday 10/16/2012.. I have found Thunderbird's automatic setting detection mechanism to be rather unreliable. Try entering the settings manually. I am one of the automx developers. Have a look at http://www.automx.org. It is open source. I also finished setting up a test server, so you can try with mail address aut...@automx.org, pw: automx and see how it works. Kind regards -Christian Rößner --- Bachelor of Science Informatik Erlenwiese 14, 36304 Alsfeld T: +49 6631 78823400, F: +49 6631 78823409, M: +49 176 93118939 USt-IdNr.: DE225643613, http://www.roessner-network-solutions.com
Re: [Dovecot] Dovecot deliver Segmentation fault when arrive the first message
Il 2012-10-02 21:28 Timo Sirainen ha scritto: On 19.9.2012, at 16.07, Alessio Cecchi wrote: #1 0x7f2fc9fc41b4 in acl_backend_vfile_acllist_try_rebuild ( backend=0x1944240) at acl-backend-vfile-acllist.c:297 This backtrace is rather weird. Could you also do (instead of bt full): fr 1 p *ns p *ns.user p *auser It crashes because auser-dict = NULL, but it should never be NULL. Hi Timo, this is a new backtrace: root@demo-vpop ~ # /home/vpopmail/bin/vadduser test...@qboxdns.it qweqweroot@demo-vpop ~ # cat /root/testmail.txt | /usr/local/dovecot-2.1/libexec/dovecot/deliver -d test...@qboxdns.it Segmentation fault (core dumped) root@demo-vpop ~ # gdb /usr/local/dovecot-2.1/libexec/dovecot/deliver /tmp/10923 GNU gdb (GDB) 7.0.1-debian Copyright (C) 2009 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 x86_64-linux-gnu. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /usr/local/dovecot-2.1/libexec/dovecot/deliver...done. warning: Can't read pathname for load map: Input/output error. Reading symbols from /usr/local/dovecot-2.1/lib/dovecot/libdovecot-lda.so.0...done. Loaded symbols for /usr/local/dovecot-2.1/lib/dovecot/libdovecot-lda.so.0 Reading symbols from /usr/local/dovecot-2.1/lib/dovecot/libdovecot-storage.so.0...done. Loaded symbols for /usr/local/dovecot-2.1/lib/dovecot/libdovecot-storage.so.0 Reading symbols from /usr/local/dovecot-2.1/lib/dovecot/libdovecot.so.0...done. Loaded symbols for /usr/local/dovecot-2.1/lib/dovecot/libdovecot.so.0 Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/librt.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/librt.so.1 Reading symbols from /usr/lib/libssl.so.0.9.8...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libssl.so.0.9.8 Reading symbols from /usr/lib/libcrypto.so.0.9.8...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libcrypto.so.0.9.8 Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 Reading symbols from /lib/libpthread.so.0...(no debugging symbols found)...done. Loaded symbols for /lib/libpthread.so.0 Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /usr/local/dovecot-2.1/lib/dovecot/lib01_acl_plugin.so...done. Loaded symbols for /usr/local/dovecot-2.1/lib/dovecot/lib01_acl_plugin.so Reading symbols from /usr/local/dovecot-2.1/lib/dovecot/lib10_quota_plugin.so...done. Loaded symbols for /usr/local/dovecot-2.1/lib/dovecot/lib10_quota_plugin.so Reading symbols from /usr/local/dovecot-2.1/lib/dovecot/lib20_zlib_plugin.so...done. Loaded symbols for /usr/local/dovecot-2.1/lib/dovecot/lib20_zlib_plugin.so Reading symbols from /lib/libbz2.so.1.0...(no debugging symbols found)...done. Loaded symbols for /lib/libbz2.so.1.0 Reading symbols from /usr/local/dovecot-2.1/lib/dovecot/lib90_sieve_plugin.so...done. Loaded symbols for /usr/local/dovecot-2.1/lib/dovecot/lib90_sieve_plugin.so Reading symbols from /usr/local/dovecot-2.1/lib/dovecot/libdovecot-sieve.so.0...done. Loaded symbols for /usr/local/dovecot-2.1/lib/dovecot/libdovecot-sieve.so.0 Core was generated by `/usr/local/dovecot-2.1/libexec/dovecot/deliver -d test...@qboxdns.it'. Program terminated with signal 11, Segmentation fault. #0 acl_lookup_dict_rebuild (dict=0x0) at acl-lookup-dict.c:221 221 if (dict-dict == NULL) (gdb) fr 1 #1 0x7f9edac761b4 in acl_backend_vfile_acllist_try_rebuild ( backend=0x2496520) at acl-backend-vfile-acllist.c:297 297 (void)acl_lookup_dict_rebuild(auser-acl_lookup_dict); (gdb) p *ns $1 = {next = 0x2496860, refcount = 1, type = NAMESPACE_PRIVATE, flags = 8235, prefix = 0x24961b0 , prefix_len = 0, alias_for = 0x0, alias_chain_next = 0x0, user = 0x249a700, owner = 0x249a700, list = 0x249ef40, storage = 0x2496210, set = 0x249b4f0, unexpanded_set = 0x249ab58, mail_set = 0x249b200, destroyed = 0} (gdb) p *ns.user $2 = {pool = 0x249a6e0, v = {deinit = 0x7f9edac7a280 acl_user_deinit}, vlast = 0x249bf38, refcount = 1, username = 0x249a7b8 test...@qboxdns.it, _home = 0x249bb60 /home/vpopmail/domains/qboxdns.it/test160, uid = 89, gid = 89, service = 0x249bb90 lda, local_ip = 0x0, remote_ip = 0x0, var_expand_table =
Re: [Dovecot] Dovecot deliver Segmentation fault when arrive the first message
Il 2012-10-02 22:15 Timo Sirainen ha scritto: On 2.10.2012, at 22.28, Timo Sirainen wrote: On 19.9.2012, at 16.07, Alessio Cecchi wrote: #1 0x7f2fc9fc41b4 in acl_backend_vfile_acllist_try_rebuild ( backend=0x1944240) at acl-backend-vfile-acllist.c:297 This backtrace is rather weird. Could you also do (instead of bt full): Also, can you reproduce the crash always by running doveadm quota recalc -u user@domain? If first add a news user, than run quota recalc and after deliver the first message deliver not crash: # vpopmail/bin/vadduser tes...@qboxdns.it # doveadm quota recalc -u test...@qboxdns.it # cat /root/testmail.txt | /usr/local/dovecot-2.1/libexec/dovecot/deliver -d tes...@qboxdns.it When add a new user without quota recalc deliver crash: # /home/vpopmail/bin/vadduser tes...@qboxdns.it # cat /root/testmail.txt | /usr/local/dovecot-2.1/libexec/dovecot/deliver -d tes...@qboxdns.it Segmentation fault (core dumped) # Hope this will useful
[Dovecot] POP UIDL
Hi I run a small mail server with Dovecot and postfix. Several of the accounts are popped by an external email provide I use, mostly out habit and also for a bit of redundancy. I have no details on that external server except that it uses exim. Lately, it's been repopping mail from accounts (mail is left on the server so I can use IMAP) at fairly frequent, but undetermined, intervals. Before I take it to them, I want to be sure it's not an error on my side. How can I be sure Dovecot does not have a problem with the UIDL list causing this external server to repop the mail? For the record, I'm not inclined to think it's a Dovecot issue, but since that's the bit I can fix, I'd like to be sure. Cheers Simon