Bug 139134 - kernel output corruption
Summary: kernel output corruption
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: sparc64 (show other bugs)
Version: 9.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-sparc64 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-25 16:00 UTC by Dmitry Afanasiev
Modified: 2017-11-22 03:44 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Afanasiev 2009-09-25 16:00:11 UTC
Some lines of kernel's boot log is corrupted.

Sample 1:
SMP: AP CPU #1 Launched!
dWaA1R NaItN Gm:p tW1I TbNuEsS S0  ospctbiuosn1  etnaarbgleetd ,1  elxupne c0t
rdead1u:c e<dF UpJeIrTfSoUr mMaAnYc2e0.73
RCSUN72G 0501> Fixed Direct Access SCSI-4 device
da1: 300.000MB/s transfers

Sample 2:
WARNING: WITNESS option enabled, expect reduced performance.
GEOM: da0: geometry does not match VTOC8 label (label: 24h,424s GEOM: 255h,63s).
GEOM: da1: geometry does not match VTOC8 label (label: 24h,424s GEOM: 255h,63s).
Trying to mount root from nfs:
bgNeF0S:  RlOiOnTk:  s1t9a2t.e1 6c8h.a2n.g6e4d: /teox pDoOrWtN/
i
nstall/sparc64
bbggee00::  lliinnkk  UsPt
a
te changed to UP
ct_to_ts([2009-09-23 14:44:21]) = 1253717061.000000000
ct_to_ts([2009-09-23 14:44:21]) = 1253717061.000000000
start_init: trying /sbin/init
Sep 23 14:44:21 init: NSSWITCH(_nsdispatch): nis, passwd_compat, endpwent, not found, and no fallback provided

Enter full pathname of shell or RETURN for /bin/sh:

Fix: 

Add to GENERIC kernel:
options         PRINTF_BUFR_SIZE=128

(it's done on amd64 platform)
How-To-Repeat: Just a boot the kernel
Comment 1 dfilter service freebsd_committer freebsd_triage 2009-09-25 18:09:00 UTC
Author: marius
Date: Fri Sep 25 17:08:51 2009
New Revision: 197490
URL: http://svn.freebsd.org/changeset/base/197490

Log:
  Merge r194204 from amd64/i386:
  
  Enable PRINTF_BUFR_SIZE by default.
  
  PR:		139134
  MFC after:	3 days

Modified:
  head/sys/sparc64/conf/GENERIC

Modified: head/sys/sparc64/conf/GENERIC
==============================================================================
--- head/sys/sparc64/conf/GENERIC	Fri Sep 25 17:07:43 2009	(r197489)
+++ head/sys/sparc64/conf/GENERIC	Fri Sep 25 17:08:51 2009	(r197490)
@@ -68,6 +68,7 @@ options 	SYSVMSG			# SYSV-style message 
 options 	SYSVSEM			# SYSV-style semaphores
 options 	P1003_1B_SEMAPHORES	# POSIX-style semaphores
 options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
+options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
 options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
 options 	AUDIT			# Security event auditing
 options 	MAC			# TrustedBSD MAC Framework
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 2 Marius Strobl freebsd_committer freebsd_triage 2009-09-25 18:28:56 UTC
State Changed
From-To: open->suspended

Suggested workaround was committed; suspend until there's a real fix for 
the issue.
Comment 3 dfilter service freebsd_committer freebsd_triage 2009-10-02 19:34:00 UTC
Author: marius
Date: Fri Oct  2 18:33:40 2009
New Revision: 197716
URL: http://svn.freebsd.org/changeset/base/197716

Log:
  MFC: r197490
  
  Merge r194204 from amd64/i386:
  
  Enable PRINTF_BUFR_SIZE by default.
  
  PR:		139134
  Approved by:	re (kib)

Modified:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)
  stable/8/sys/sparc64/conf/GENERIC

Modified: stable/8/sys/sparc64/conf/GENERIC
==============================================================================
--- stable/8/sys/sparc64/conf/GENERIC	Fri Oct  2 18:09:56 2009	(r197715)
+++ stable/8/sys/sparc64/conf/GENERIC	Fri Oct  2 18:33:40 2009	(r197716)
@@ -68,6 +68,7 @@ options 	SYSVMSG			# SYSV-style message 
 options 	SYSVSEM			# SYSV-style semaphores
 options 	P1003_1B_SEMAPHORES	# POSIX-style semaphores
 options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
+options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
 options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
 options 	AUDIT			# Security event auditing
 options 	MAC			# TrustedBSD MAC Framework
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 4 Ed Maste freebsd_committer freebsd_triage 2017-11-22 03:44:29 UTC
PRINTF_BUFR_SIZE addressed this issue