From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Apr 20 10:20:03 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CCC51065673 for ; Mon, 20 Apr 2009 10:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DCDC78FC12 for ; Mon, 20 Apr 2009 10:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3KAK2dw065653 for ; Mon, 20 Apr 2009 10:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3KAK2KN065652; Mon, 20 Apr 2009 10:20:02 GMT (envelope-from gnats) Resent-Date: Mon, 20 Apr 2009 10:20:02 GMT Resent-Message-Id: <200904201020.n3KAK2KN065652@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Milos Vyletel Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8508F1065687 for ; Mon, 20 Apr 2009 10:14:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 744288FC17 for ; Mon, 20 Apr 2009 10:14:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n3KAEjqT054618 for ; Mon, 20 Apr 2009 10:14:45 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n3KAEjJR054617; Mon, 20 Apr 2009 10:14:45 GMT (envelope-from nobody) Message-Id: <200904201014.n3KAEjJR054617@www.freebsd.org> Date: Mon, 20 Apr 2009 10:14:45 GMT From: Milos Vyletel To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/133869: mail/qmail segfaulting on amd64 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2009 10:20:03 -0000 >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 #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 #include +#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: