From nobody@FreeBSD.org  Wed Aug 19 18:52:05 2009
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 ED7AF106568D
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Aug 2009 18:52:05 +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 D96B78FC59
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Aug 2009 18:52:05 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n7JIq4FR058292
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Aug 2009 18:52:04 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n7JIq4pW058291;
	Wed, 19 Aug 2009 18:52:04 GMT
	(envelope-from nobody)
Message-Id: <200908191852.n7JIq4pW058291@www.freebsd.org>
Date: Wed, 19 Aug 2009 18:52:04 GMT
From: Christian Ludwig <chrissicool@chrissicool.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: fetchmail-6.3.11 crashes with segmentation fault on start
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: chalpin@cs.wisc.edu

>Number:         137972
>Category:       ports
>Synopsis:       mail/fetchmail 6.3.11 crashes with segmentation fault on start
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    wxs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 19 19:00:04 UTC 2009
>Closed-Date:    Tue Sep 08 15:12:31 UTC 2009
>Last-Modified:  Tue Sep  8 15:20:01 UTC 2009
>Originator:     Christian Ludwig
>Release:        6.4-STABLE FreeBSD 6.4-STABLE #13: Fri May 22 23:56:27 CEST 2009
>Organization:
>Environment:
FreeBSD chrissicool.shacknet.nu 6.4-STABLE FreeBSD 6.4-STABLE #13: Fri May 22 23:56:27 CEST 2009     root@chrissicool.shacknet.nu:/usr/obj/usr/src/sys/KERNEL  i386

>Description:
After upgrading fetchmail to version 6.3.11, when invoking fetchmail it immediately segfaults. The probem did not occur with the previous release 6.3.10 from the ports.

The syslog says:
kernel: pid 94413 (fetchmail), uid 124: exited on signal 11
>How-To-Repeat:
Configure and invoke fetchmail by running /usr/local/etc/rc.d/fetchmail/start
>Fix:
I think Gentoo has a fix for this here http://bugs.gentoo.org/show_bug.cgi?id=280760

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Thu Aug 27 09:38:59 UTC 2009 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

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

From: Edwin Groothuis <edwin@FreeBSD.org>
To: chalpin@cs.wisc.edu
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/137972: mail/fetchmail 6.3.11 crashes with segmentation fault on start
Date: Thu, 27 Aug 2009 09:38:58 UT

 Maintainer of mail/fetchmail,
 
 Please note that PR ports/137972 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/137972
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Corey Halpin <chalpin@cs.wisc.edu>
To: bug-followup@FreeBSD.org, chrissicool@chrissicool.net
Cc:  
Subject: Re: ports/137972: mail/fetchmail 6.3.11 crashes with segmentation
	fault on start
Date: Tue, 1 Sep 2009 20:57:04 -0500

   Quite right.
 
   A patch for the port is attached.
 
 ~crh
 
 diff -ruN /usr/ports/mail/fetchmail/files/socket.c.patch fetchmail/files/socket.c.patch
 --- /usr/ports/mail/fetchmail/files/socket.c.patch	1969-12-31 18:00:00.000000000 -0600
 +++ fetchmail/files/socket.c.patch	2009-09-01 20:45:14.000000000 -0500
 @@ -0,0 +1,15 @@
 +--- socket.c.org	2009-08-08 16:01:49.000000000 +0200
 ++++ socket.c	2009-08-08 16:03:17.000000000 +0200
 +@@ -628,9 +628,10 @@
 + 				report(stdout, GT_("Unknown Issuer CommonName\n"));
 + 		}
 + 		if ((i = X509_NAME_get_text_by_NID(subj, NID_commonName, buf, sizeof(buf))) != -1) {
 +-			if (outlevel >= O_VERBOSE)
 ++			if (outlevel >= O_VERBOSE) {
 + 				report(stdout, GT_("Server CommonName: %s\n"), (tt = sdump(buf, i)));
 +-			xfree(tt);
 ++				xfree(tt);
 ++			}
 + 			if ((size_t)i >= sizeof(buf) - 1) {
 + 				/* Possible truncation. In this case, this is a DNS name, so this
 + 				 * is really bad. We do not tolerate this even in the non-strict case. */
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Wed Sep 2 09:44:02 UTC 2009 
State-Changed-Why:  
Maintainer has replied with a patch. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=137972 
State-Changed-From-To: open->analyzed 
State-Changed-By: linimon 
State-Changed-When: Sun Sep 6 18:33:17 UTC 2009 
State-Changed-Why:  
Submitter confirms that hte patch fixes the problem. 

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

From: Mark Linimon <linimon@lonesome.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/137972: mail/fetchmail 6.3.11 crashes with segmentation
	fault on start
Date: Sun, 6 Sep 2009 13:34:41 -0500

 ----- Forwarded message from Christian Ludwig <chrissicool@chrissicool.net> -----
 
 From: Christian Ludwig <chrissicool@chrissicool.net>
 To: linimon@FreeBSD.org
 Cc: freebsd-ports-bugs@FreeBSD.org, chalpin@cs.wisc.edu
 Subject: Re: ports/137972: mail/fetchmail 6.3.11 crashes with segmentation
 	fault on start
 
 Hi,
 
 I tried that patch and it works fine on my machine.
 
 Thanks for the work.
 
 
  - Christian
 
 _______________________________________________
 freebsd-ports-bugs@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
 To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe@freebsd.org"
 
 
 ----- End forwarded message -----
Responsible-Changed-From-To: freebsd-ports-bugs->wxs 
Responsible-Changed-By: wxs 
Responsible-Changed-When: Tue Sep 8 13:58:42 UTC 2009 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=137972 
State-Changed-From-To: analyzed->closed 
State-Changed-By: wxs 
State-Changed-When: Tue Sep 8 15:12:29 UTC 2009 
State-Changed-Why:  
Committed. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/137972: commit references a PR
Date: Tue,  8 Sep 2009 15:12:36 +0000 (UTC)

 wxs         2009-09-08 15:12:21 UTC
 
   FreeBSD ports repository
 
   Modified files:
     mail/fetchmail       Makefile 
   Added files:
     mail/fetchmail/files patch-socket.c 
   Log:
   - Add a patch to fix segfault on startup.
   
   PR:             ports/137972
   Submitted by:   Christian Ludwig <chrissicool@chrissicool.net>
   Approved by:    Corey Halpin <chalpin@cs.wisc.edu> (maintainer)
   
   Revision  Changes    Path
   1.203     +1 -0      ports/mail/fetchmail/Makefile
   1.3       +15 -0     ports/mail/fetchmail/files/patch-socket.c (new)
 _______________________________________________
 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:
