qmail on 64bit architecture

Dan Epure gepu at iogyte.ro
Sun Oct 21 23:41:44 PDT 2007


I recently upgraded my amd64 system from i386 architecture to amd64.
=== cut here ===
kern.ostype: FreeBSD
kern.osrelease: 7.0-PRERELEASE
kern.osrevision: 199506
kern.version: FreeBSD 7.0-PRERELEASE #0: Tue Oct 16 18:49:25 EEST 2007
    root at mail.iogyte.ro:/usr/obj/usr/src/sys/ORGASM
=== and here ===
After recompiling all the installed ports I found my qmail is not working anymore.

dmesg was full of:
=== cut here ===
pid 56736 (qmail-rspawn), uid 86: exited on signal 11
pid 56735 (qmail-lspawn), uid 0: exited on signal 11 (core dumped)
pid 56783 (qmail-rspawn), uid 86: exited on signal 11
pid 56782 (qmail-lspawn), uid 0: exited on signal 11 (core dumped)
pid 56788 (qmail-rspawn), uid 86: exited on signal 11
pid 56787 (qmail-lspawn), uid 0: exited on signal 11 (core dumped)
pid 56793 (qmail-rspawn), uid 86: exited on signal 11
pid 56792 (qmail-lspawn), uid 0: exited on signal 11 (core dumped)
=== and here ===
After some dingging I found the problem described by Jan Krueger:
http://securepoint.com/lists/html/Qmail/2007-02/msg00155.html

It seems there is a problem a problem with the memory allocator.
There is also a patch submited by Jan which fixed my problem:
=== cut here ===
--- cdbmake_add.c	1998-06-15 12:53:16.000000000 +0200
+++ cdbmake_add.c.new	2007-02-09 16:45:07.000000000 +0100
@@ -1,4 +1,5 @@
 #include "cdbmake.h"
+#include "alloc.h"

 void cdbmake_init(cdbm)
 struct cdbmake *cdbm;
--- spawn.c	1998-06-15 12:53:16.000000000 +0200
+++ spawn.c.new	2007-02-09 16:49:03.000000000 +0100
@@ -14,6 +14,7 @@
 #include "auto_qmail.h"
 #include "auto_uids.h"
 #include "auto_spawn.h"
+#include "alloc.h"

 extern int truncreport;
 extern int spawn();
=== and here ===

It would be nice this patch be part of the qmail port.

Regards,
Gepu


More information about the freebsd-ports mailing list