bin/111382: Core dumps of routed
The Black Hacker
blackye at break.net
Sun Apr 8 16:10:03 UTC 2007
>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 at 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:
More information about the freebsd-bugs
mailing list