From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jul 30 07:30:10 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 A0724106567A for ; Thu, 30 Jul 2009 07:30:10 +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 60AB38FC27 for ; Thu, 30 Jul 2009 07:30:10 +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 n6U7U89O077491 for ; Thu, 30 Jul 2009 07:30:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n6U7U8Y2077489; Thu, 30 Jul 2009 07:30:08 GMT (envelope-from gnats) Resent-Date: Thu, 30 Jul 2009 07:30:08 GMT Resent-Message-Id: <200907300730.n6U7U8Y2077489@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, Artis Caune Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C3EF106564A for ; Thu, 30 Jul 2009 07:26:11 +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 1AC838FC21 for ; Thu, 30 Jul 2009 07:26:11 +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 n6U7QAjI052778 for ; Thu, 30 Jul 2009 07:26:10 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n6U7QAQ7052777; Thu, 30 Jul 2009 07:26:10 GMT (envelope-from nobody) Message-Id: <200907300726.n6U7QAQ7052777@www.freebsd.org> Date: Thu, 30 Jul 2009 07:26:10 GMT From: Artis Caune To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/137257: [patch] mail/exim: fix dbm->seq loop 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: Thu, 30 Jul 2009 07:30:11 -0000 >Number: 137257 >Category: ports >Synopsis: [patch] mail/exim: fix dbm->seq loop >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jul 30 07:30:08 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Artis Caune >Release: current >Organization: >Environment: FreeBSD 8.0-BETA2 #0 r195825: Wed Jul 22 23:15:57 EEST 2009 root@builder:/usr/obj/usr/src/sys/FREEBSD >Description: exim is using flag 0 instead of R_NEXT in dbm->seq() function call. After r190491 it's not working anymore and is looping. see: http://lists.exim.org/lurker/message/20090729.134711.ef8c803e.en.html >How-To-Repeat: - update to current > r190491 - install exim - send some messages, so retry or misc-* db are created and are not empty - wait for periodic exim_tidydb or - run exim_tidydb /var/spool/exim retry process is killed, because out of swap space >Fix: put attached patch in /usr/ports/mail/exim/files and rebuild exim Patch attached with submission follows: --- src/dbstuff.h.orig 2007-08-29 14:02:22.000000000 +0000 +++ src/dbstuff.h 2009-07-30 07:11:20.033795649 +0000 @@ -331,7 +331,7 @@ /* EXIM_DBSCAN - returns TRUE if data is returned, FALSE at end */ #define EXIM_DBSCAN(db, key, data, first, cursor) \ - ((db)->seq(db, &key, &data, (first? R_FIRST : 0)) == 0) + ((db)->seq(db, &key, &data, (first? R_FIRST : R_NEXT)) == 0) /* EXIM_DBDELETE_CURSOR - terminate scanning operation (null). Make it refer to cursor, to keep picky compilers happy. */ >Release-Note: >Audit-Trail: >Unformatted: