From nobody@FreeBSD.org  Sat May 31 07:20:29 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 26ACC106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 31 May 2008 07:20:29 +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 222638FC1A
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 31 May 2008 07:20:29 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m4V7IiTa072881
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 31 May 2008 07:18:44 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m4V7IiAP072880;
	Sat, 31 May 2008 07:18:44 GMT
	(envelope-from nobody)
Message-Id: <200805310718.m4V7IiAP072880@www.freebsd.org>
Date: Sat, 31 May 2008 07:18:44 GMT
From: Todd Florman <todd@florman.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: milter-bogom cores out intermittently
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: victor@bsdes.net

>Number:         124154
>Category:       ports
>Synopsis:       mail/milter-bogom cores out intermittently
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 31 07:30:02 UTC 2008
>Closed-Date:    Fri Aug 01 03:18:11 UTC 2008
>Last-Modified:  Fri Aug  1 03:20:01 UTC 2008
>Originator:     Todd Florman
>Release:        FreeBSD 7.0-RELEASE
>Organization:
>Environment:
FreeBSD modi.nilenet.com 7.0-RELEASE FreeBSD 7.0-RELEASE #7: Thu Feb 28 11:28:57 MST 2008     root@modi.nilenet.com:/usr/obj/usr/src/sys/MYSMP  i386
>Description:
mail/milter-bogom will core after running for several days, and other times only a few hours after last restart.  I am running this with the latest ports version of postfix (2.5.1 I believe) and when its running, the milter operates as expected.

I did run a backtrace on the core and here are the last few lines...

#128 0xbf7fcfec in ?? ()
#129 0x28201b00 in ?? ()
#130 0x00100000 in ?? ()
#131 0x00001000 in ?? ()
#132 0xbf2f9000 in ?? ()
Cannot access memory at address 0xbf3f9000


>How-To-Repeat:
Run the milter for several days on a not so busy postfix mail server and it should happen.  I have a friend who was trying this milter out on freebsd 6.2 and it too would core periodically on his machine as well.
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Sat May 31 08:06:45 UTC 2008 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124154 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: victor@bsdes.net
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/124154: mail/milter-bogom cores out intermittently
Date: Sat, 31 May 2008 08:06:44 UT

 Maintainer of mail/milter-bogom,
 
 Please note that PR ports/124154 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/124154
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Victor Balada Diaz <victor@bsdes.net>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/124154: mail/milter-bogom cores out intermittently
Date: Sun, 1 Jun 2008 23:15:10 +0200

 On Sat, May 31, 2008 at 08:06:44AM +0000, Edwin Groothuis wrote:
 > Maintainer of mail/milter-bogom,
 > 
 > Please note that PR ports/124154 has just been submitted.
 > 
 > If it contains a patch for an upgrade, an enhancement or a bug fix
 > you agree on, reply to this email stating that you approve the patch
 > and a committer will take care of it.
 > 
 > The full text of the PR can be found at:
 >     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/124154
 > 
 > -- 
 > Edwin Groothuis via the GNATS Auto Assign Tool
 > edwin@FreeBSD.org
 
 I've talked with bogom author and he told me postfix is not a supported
 MTA. He told me last time he checked postfix's libmilter support wasn't
 complete enough for bogom.
 
 If you want, you can recompile the port with debug support (CFLAGS=-g) and
 send a backtrace with that binary. I'll try to see what can i do, but i
 don't promise anything.
 
 Regards.
 
 -- 
 La prueba ms fehaciente de que existe vida inteligente en otros
 planetas, es que no han intentado contactar con nosotros. 
State-Changed-From-To: feedback->analyzed 
State-Changed-By: linimon 
State-Changed-When: Tue Jun 3 02:44:28 UTC 2008 
State-Changed-Why:  
The software author is aware of the problem, but claims not to support this 
configuration.  The maintainer has volunteered to try to look at it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124154 

From: Victor Balada Diaz <victor@bsdes.net>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/124154: mail/milter-bogom cores out intermittently
Date: Mon, 30 Jun 2008 18:00:16 +0200

 --fUYQa+Pmc3FrFX/N
 Content-Type: text/plain; charset=iso-8859-1
 Content-Disposition: inline
 Content-Transfer-Encoding: 8bit
 
 With the useful information and coredumps provided by Todd I tracked down the
 issue to an insufficient pointer check in bogom's code. I told it to the author
 and he released a new version
 
 Attached is the update to the port which fixes this issue.
 
 Regards.
 -- 
 La prueba ms fehaciente de que existe vida inteligente en otros
 planetas, es que no han intentado contactar con nosotros. 
 
 --fUYQa+Pmc3FrFX/N
 Content-Type: text/x-diff; charset=us-ascii
 Content-Disposition: attachment; filename="bogom.patch"
 
 ? bogom.patch
 Index: Makefile
 ===================================================================
 RCS file: /home/ncvs/ports/mail/milter-bogom/Makefile,v
 retrieving revision 1.10
 diff -u -r1.10 Makefile
 --- Makefile	9 Nov 2006 13:28:33 -0000	1.10
 +++ Makefile	30 Jun 2008 15:50:28 -0000
 @@ -6,8 +6,7 @@
  #
  
  PORTNAME=	bogom
 -PORTVERSION=	1.9
 -PORTREVISION=	2
 +PORTVERSION=	1.9.2
  CATEGORIES=	mail
  MASTER_SITES=	http://www.usebox.net/jjm/bogom/ \
  		http://blackshell.usebox.net/bogom/
 Index: distinfo
 ===================================================================
 RCS file: /home/ncvs/ports/mail/milter-bogom/distinfo,v
 retrieving revision 1.5
 diff -u -r1.5 distinfo
 --- distinfo	5 Nov 2006 13:46:44 -0000	1.5
 +++ distinfo	30 Jun 2008 15:50:28 -0000
 @@ -1,3 +1,3 @@
 -MD5 (bogom-1.9.tar.gz) = 4125026b1ee63b8b652aac240dd1e959
 -SHA256 (bogom-1.9.tar.gz) = 88a1c1779a4d6c3cef0b471d43264c4fa1495d34dfdf760afa3b981bbf403568
 -SIZE (bogom-1.9.tar.gz) = 21129
 +MD5 (bogom-1.9.2.tar.gz) = eed19c240e273ecc5037b5ac6a44d502
 +SHA256 (bogom-1.9.2.tar.gz) = 5b020ccc995bafb494dc4c93c45bee883fccea95af7a8dbfed2bf45d0f7e20d3
 +SIZE (bogom-1.9.2.tar.gz) = 21872
 
 --fUYQa+Pmc3FrFX/N--
State-Changed-From-To: analyzed->closed 
State-Changed-By: vs 
State-Changed-When: Fri Aug 1 03:17:47 UTC 2008 
State-Changed-Why:  
An updated version has just been committed. Thanks for your submission! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124154 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/124154: commit references a PR
Date: Fri,  1 Aug 2008 03:17:43 +0000 (UTC)

 vs          2008-08-01 03:17:34 UTC
 
   FreeBSD ports repository
 
   Modified files:
     mail/milter-bogom    Makefile distinfo 
   Log:
   Update to 1.9.2
   
   PR:             ports/124154
   Submitted by:   maintainer
   
   Revision  Changes    Path
   1.11      +1 -2      ports/mail/milter-bogom/Makefile
   1.6       +3 -3      ports/mail/milter-bogom/distinfo
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
