From belkovic@albert.osu.cz  Fri Jul 31 11:47:07 1998
Received: from albert.osu.cz (albert.osu.cz [195.113.106.11])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA04468
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 31 Jul 1998 11:46:54 -0700 (PDT)
          (envelope-from belkovic@albert.osu.cz)
Received: (from belkovic@localhost) by albert.osu.cz (8.8.5/8.6.12) id UAA01290; Fri, 31 Jul 1998 20:49:41 +0200 (MET DST)
Message-Id: <199807311849.UAA01290@albert.osu.cz>
Date: Fri, 31 Jul 1998 20:49:41 +0200 (MET DST)
From: Josef Belkovics <belkovic@albert.osu.cz>
Reply-To: belkovic@albert.osu.cz
To: FreeBSD-gnats-submit@freebsd.org
Subject: syslogd
X-Send-Pr-Version: 3.2

>Number:         7458
>Category:       bin
>Synopsis:       [stable] [patch] 'boot bug' in syslogd
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 31 11:50:00 PDT 1998
>Closed-Date:    Tue Dec 29 17:38:23 PST 1998
>Last-Modified:  Wed Jan 14 20:24:08 UTC 2009
>Originator:     Josef Belkovics
>Release:        FreeBSD 2.2-7 RELEASE i386
>Organization:
Ostrava University
>Environment:
>Description:
	Syslogd has small 'buffer' to read messages from kernel at startup.

	HIER IS BUG.
	Jul 31 20:06:26 ix074 /kernel: Probing for devices on the ISA bus:
	Jul 31 20:06:26 ix074 /kernel: sc0 at 0x60-0x6f irq 1 on motherboard
	Jul 31 20:06:26 ix074 /kernel: sc0: VGA color <8 virtual consoles, flags=0x0>
	Jul 31 20:06:26 ix074 /kernel: s
	Jul 31 20:06:26 ix074 /kernel: io1 at 0x2f8-0x2ff irq 3 on isa
	Jul 31 20:06:26 ix074 /kernel: sio1: type 16550A
	Jul 31 20:06:27 ix074 /kernel: sio0 at 0x3f8-0x3ff irq 4 on isa

	IT SHOULD BE LOOK LIKE THIS:
	Jul 31 20:15:34 ix074 /kernel: Probing for devices on the ISA bus:
	Jul 31 20:15:34 ix074 /kernel: sc0 at 0x60-0x6f irq 1 on motherboard
	Jul 31 20:15:34 ix074 /kernel: sc0: VGA color <8 virtual consoles, flags=0x0>
	Jul 31 20:15:34 ix074 /kernel: sio1 at 0x2f8-0x2ff irq 3 on isa
	Jul 31 20:15:34 ix074 /kernel: sio1: type 16550A
	Jul 31 20:15:34 ix074 /kernel: sio0 at 0x3f8-0x3ff irq 4 on isa
>How-To-Repeat:
	Boot system and look at /var/log/messages.
>Fix:
	I don't know it for syslogd in 2.2.7 RELEASE. For syslogd from 2.2.6
	RELEASE fix is:

*** syslogd.c		Fri Jul 31 20:20:50 1998
--- syslogd.c.hp	Mon Mar  9 13:56:00 1998
*************** static const char copyright[] =
*** 42,48 ****
  static char sccsid[] = "@(#)syslogd.c	8.3 (Berkeley) 4/4/94";
  #endif
  static const char rcsid[] =
! 	"$Id: syslogd.c,v 1.12.2.11 1998/03/09 13:56:07 (jkh) Exp $";
  #endif /* not lint */
  
  /*
--- 42,48 ----
  static char sccsid[] = "@(#)syslogd.c	8.3 (Berkeley) 4/4/94";
  #endif
  static const char rcsid[] =
! 	"$Id: syslogd.c,v 1.12.2.11 1998/03/09 13:56:07 jkh Exp $";
  #endif /* not lint */
  
  /*
*************** static const char rcsid[] =
*** 81,89 ****
  #include <sys/stat.h>
  #include <sys/wait.h>
  #include <sys/socket.h>
- #define  KERNEL
  #include <sys/msgbuf.h>
- #undef   KERNEL
  #include <sys/queue.h>
  #include <sys/uio.h>
  #include <sys/un.h>
--- 81,87 ----
*************** main(argc, argv)
*** 288,294 ****
  	struct sockaddr_un sunx, fromunix;
  	struct sockaddr_in sin, frominet;
  	FILE *fp;
!  	char *p, *hname, line[MSGBUF_SIZE + 1];
  	struct timeval tv, *tvp;
  	pid_t ppid;
  
--- 286,292 ----
  	struct sockaddr_un sunx, fromunix;
  	struct sockaddr_in sin, frominet;
  	FILE *fp;
! 	char *p, *hname, line[MSG_BSIZE + 1];
  	struct timeval tv, *tvp;
  	pid_t ppid;
  
Josef Belkovics
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->suspended 
State-Changed-By: phk 
State-Changed-When: Tue Aug 4 02:30:28 PDT 1998 
State-Changed-Why:  
-stable problem 
State-Changed-From-To: suspended->closed  
State-Changed-By: cwt 
State-Changed-When: Tue Dec 29 17:38:23 PST 1998 
State-Changed-Why:  
This was a duplicate of PR: 6962 which was resolved in rev. 1.12.2.12 of 
syslogd.c on 1998/06/25. 
>Unformatted:
