[Dovecot] New to dovecot, little luck - signal 10 death for imap

Chris Wakelin c.d.wakelin at reading.ac.uk
Wed Jul 13 17:00:19 EEST 2005


Jeroen Scheerder wrote:
> 
> I would merrily gdb into a coredump and stacktrace away, if a core dump 
> were created.  No such luck.

Do you have "mail_drop_priv_before_exec" set? It'll prevent core dumps 
if so. Also, the core file probably ends up in the user's home directory.

I've found that I needed a patch that had been published earlier on this 
list (see http://dovecot.org/pipermail/dovecot/2005-January/005926.html) 
for 64-bit Sparc (Solaris 8). I haven't tried it without the patch 
recently, so I'm not sure whether the problem still exists, and memcpy, 
casts etc. are a bit too technical for me anyway!

diff -ruN dovecot-1.0-stable.orig/src/lib-storage/index/mbox/mbox-file.c 
dovecot
-1.0-stable/src/lib-storage/index/mbox/mbox-file.c
--- dovecot-1.0-stable.orig/src/lib-storage/index/mbox/mbox-file.c 
Mon Jan
31 16:37:55 2005
+++ dovecot-1.0-stable/src/lib-storage/index/mbox/mbox-file.c   Sun Mar 
20 12:18
:34 2005
@@ -120,7 +120,9 @@
                 return -1;
         }

-       offset = *((const uint64_t *)data);
+/* CDW, see - 
http://dovecot.org/pipermail/dovecot/2005-January/005926.html */
+/*     offset = *((const uint64_t *)data); CDW */
+       memcpy(&offset,data,sizeof(uint64_t));
         if (istream_raw_mbox_seek(ibox->mbox_stream, offset) < 0) {
                 if (offset == 0) {
                         mail_storage_set_critical(ibox->box.storage,


-- 
--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-
Christopher Wakelin,                           c.d.wakelin at reading.ac.uk
IT Services Centre, The University of Reading,  Tel: +44 (0)118 378 8439
Whiteknights, Reading, RG6 2AF, UK              Fax: +44 (0)118 975 3094



More information about the dovecot mailing list