Date: Sun, 8 Apr 2007 16:04:44 +0000 (UTC) From: The Black Hacker <blackye@break.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/111382: Core dumps of routed Message-ID: <20070408160444.C78C713C459@mx1.freebsd.org> Resent-Message-ID: <200704081610.l38GA3kC098038@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 111382
>Category: bin
>Synopsis: Core dumps of routed
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Apr 08 16:10:02 GMT 2007
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070408160444.C78C713C459>
