On Thu, 2009-02-26 at 15:04 -0800, Mark Hedges wrote:
> 
> On Thu, 26 Feb 2009, Timo Sirainen wrote:
> 
> > On Thu, 2009-02-26 at 14:23 -0800, Mark Hedges wrote:
> > > Feb 26 14:14:06 anubis dovecot: child 25810 (pop3) killed with signal 11
> >
> > It shouldn't be crashing. Could you get a gdb backtrace from this?
> > http://dovecot.org/bugreport.html
> 
> I set mail_drop_priv_before_exec = yes, and I did `ulimit -c
> unlimited` and `echo "/tmp/core" >
> /proc/sys/kernel/core_pattern` before starting dovecot, but
> I still didn't get a core dump anywhere.  Seems like the
> home directory is okay.  No core file.  

When Dovecot starts up, it logs a line:

Info: Dovecot v1.1.11 starting up

Do you see it, or do you see:

Info: Dovecot v1.1.11 starting up (core dumps disabled)

> Feb 26 14:52:05 anubis dovecot: POP3(despam_test_anubis): 
> file_dotlock_create(/var/spool/mail/despam_test_anubis) failed: Permission 
> denied (euid=511(despam_test_anubis) egid=100(users) missing +w perm: 
> /var/spool/mail) (under root dir /home/anubis/despam_test_anubis/mail -> no 
> privileged locking)

Well, that is weird. What does it log with the attached patch?
diff -r b58f72ccdfe3 src/lib-storage/index/mbox/mbox-lock.c
--- a/src/lib-storage/index/mbox/mbox-lock.c	Thu Feb 26 18:36:06 2009 -0500
+++ b/src/lib-storage/index/mbox/mbox-lock.c	Thu Feb 26 18:43:33 2009 -0500
diff -r b58f72ccdfe3 src/lib-storage/index/mbox/mbox-storage.c
--- a/src/lib-storage/index/mbox/mbox-storage.c	Thu Feb 26 18:36:06 2009 -0500
+++ b/src/lib-storage/index/mbox/mbox-storage.c	Thu Feb 26 18:43:33 2009 -0500
@@ -619,7 +619,10 @@
 						MAILBOX_LIST_PATH_TYPE_DIR);
 		if (strncmp(path, rootdir, strlen(rootdir)) != 0)
 			mbox->mbox_privileged_locking = TRUE;
-	}
+		else
+			i_warning("cmp '%s' vs '%s' len=%d", path, rootdir, (int)strlen(rootdir));
+	} else
+		i_warning("not INBOX: '%s'", name);
 	return &mbox->ibox.box;
 }
 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to