Date: Mon, 20 Apr 2009 10:14:45 GMT From: Milos Vyletel <milos.vyletel@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/133869: mail/qmail segfaulting on amd64 Message-ID: <200904201014.n3KAEjJR054617@www.freebsd.org> Resent-Message-ID: <200904201020.n3KAK2KN065652@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 133869 >Category: ports >Synopsis: mail/qmail segfaulting on amd64 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Apr 20 10:20:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Milos Vyletel >Release: 7.2-PRERELEASE >Organization: >Environment: FreeBSD nika.mzm.cz 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #2: Sun Apr 19 19:31:08 CEST 2009 mvyletel@nika.mzm.cz:/usr/obj/usr/src/sys/nika amd64 >Description: I noticed that /var/log/messages is full of: Apr 20 11:52:09 nika kernel: pid 71944 (qmail-lspawn), uid 0: exited on signal 11 (core dumped) Apr 20 11:52:10 nika kernel: pid 72010 (qmail-rspawn), uid 86: exited on signal 11 After short googling of problem I found this reference in mailing list: http://lists.freebsd.org/pipermail/freebsd-ports/2007-October/044434.html which is saying about patch fixing the problem. It seems like this patch is partially integrated, but there's still #include "alloc.h" missing from work/qmail-1.03/cdbmake_add.c. After I manually added this include and rebuilt qmail, problem disapeared. >How-To-Repeat: Install and run qmail on FreeBSD amd64 >Fix: Add #include "alloc.h" to cdbmake_add.c file fixed problem for me. Attached pathed to be replaced in files/ Patch attached with submission follows: --- alloc.c.orig 1998-06-15 12:53:16.000000000 +0200 +++ alloc.c 2009-04-20 11:48:35.687644205 +0200 @@ -1,7 +1,6 @@ +#include <stdlib.h> #include "alloc.h" #include "error.h" -extern char *malloc(); -extern void free(); #define ALIGNMENT 16 /* XXX: assuming that this alignment is enough */ #define SPACE 4096 /* must be multiple of ALIGNMENT */ --- spawn.c.orig 1998-06-15 12:53:16.000000000 +0200 +++ spawn.c 2009-04-20 11:48:35.688644053 +0200 @@ -1,5 +1,6 @@ #include <sys/types.h> #include <sys/stat.h> +#include "alloc.h" #include "sig.h" #include "wait.h" #include "substdio.h" --- cdbmake_add.c.orig 2009-04-20 12:05:15.832028021 +0200 +++ cdbmake_add.c 2009-04-20 11:51:48.310211878 +0200 @@ -1,4 +1,5 @@ #include "cdbmake.h" +#include "alloc.h" void cdbmake_init(cdbm) struct cdbmake *cdbm; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904201014.n3KAEjJR054617>