From blackye@gravity.break.net  Sun Apr  8 16:13:27 2007
Return-Path: <blackye@gravity.break.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 5070716A402
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  8 Apr 2007 16:13:27 +0000 (UTC)
	(envelope-from blackye@gravity.break.net)
Received: from gravity.break.net (gravity.break.net [62.4.95.124])
	by mx1.freebsd.org (Postfix) with ESMTP id 1CBA713C448
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  8 Apr 2007 16:13:27 +0000 (UTC)
	(envelope-from blackye@gravity.break.net)
Received: by gravity.break.net (Postfix, from userid 103)
	id 909DAFE4D; Sun,  8 Apr 2007 17:47:30 +0200 (CEST)
Message-Id: <20070408154730.909DAFE4D@gravity.break.net>
Date: Sun,  8 Apr 2007 17:47:30 +0200 (CEST)
From: The Black Hacker <blackye@break.net>
Reply-To: The Black Hacker <blackye@break.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Core dumps of routed
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         111383
>Category:       bin
>Synopsis:       [patch] Core dumps of routed(8)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 08 16:20:00 GMT 2007
>Closed-Date:    Fri Apr 13 05:28:51 GMT 2007
>Last-Modified:  Fri Apr 13 05:28:51 GMT 2007
>Originator:     The Black Hacker
>Release:        FreeBSD 6.2-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD caronte.igp.ifom-ieo-campus.it 6.2-RELEASE-p3 FreeBSD 6.2-RELEASE-p3 #0: Mon Mar 26 16:27:51 CEST 2007 root@caronte.ifom-ieo-campus.it:/usr/obj/usr/src/sys/CERBERO amd64

This is a sun x2200, quite evident that the bug can be triggered on any
platform,

>Description:

routed dumps core each time it tries to show/log a message
>How-To-Repeat:

Set up any /etc/gateways that triggers a message or warning and start
routed -s
>Fix:

Patch below:

# diff -rc3 /usr/src/sbin/routed/main.c~ /usr/src/sbin/routed/main.c
*** /usr/src/sbin/routed/main.c~        Sun Apr  8 17:31:33 2007
--- /usr/src/sbin/routed/main.c Sun Apr  8 17:31:33 2007
***************
*** 863,869 ****
  
        va_start(args, p);
        vsyslog(LOG_ERR, p, args);
! 
        if (ftrace != 0) {
                if (ftrace == stdout)
                        (void)fputs("routed: ", ftrace);
--- 863,871 ----
  
        va_start(args, p);
        vsyslog(LOG_ERR, p, args);
!       va_end(args);
! 
!       va_start(args, p);
        if (ftrace != 0) {
                if (ftrace == stdout)
                        (void)fputs("routed: ", ftrace);




>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: arved 
State-Changed-When: Thu Apr 12 20:53:11 UTC 2007 
State-Changed-Why:  
A more complete patch has been submitted as 82287 and was committed to CURRENT, 
but is still waiting for a committer to MFC. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=111383 
State-Changed-From-To: analyzed->closed 
State-Changed-By: remko 
State-Changed-When: Fri Apr 13 05:28:49 UTC 2007 
State-Changed-Why:  
Duplicate of 82287 (more complete, and patched, but not yet MFCed), 
close this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=111383 
>Unformatted:
