From nobody@FreeBSD.org  Thu Jun 28 17:12:12 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id F229637B401
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 28 Jun 2001 17:12:11 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.3/8.11.3) id f5T0CBp42075;
	Thu, 28 Jun 2001 17:12:11 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200106290012.f5T0CBp42075@freefall.freebsd.org>
Date: Thu, 28 Jun 2001 17:12:11 -0700 (PDT)
From: Ralph Seguin <rseguin@rsv.ricoh.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: dmesg corrupted buffer/output
X-Send-Pr-Version: www-1.0

>Number:         28497
>Category:       kern
>Synopsis:       dmesg corrupted buffer/output
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 28 17:20:02 PDT 2001
>Closed-Date:    Wed Aug 21 16:24:25 PDT 2002
>Last-Modified:  Wed Aug 21 16:24:25 PDT 2002
>Originator:     Ralph Seguin
>Release:        4.0-RELEASE
>Organization:
Ricoh Silicon Valley
>Environment:
FreeBSD seguir3.adc.rsv.ricoh.com 4.0-RELEASE FreeBSD 4.0-RELEASE #2: Thu Mar 22 12:49:32 GMT 2001     bwong@bwong3.adc.rsv.ricoh.com:/usr/home/bwong/work/FBSD/sys/compile/eCabinet  i386
>Description:
There appears to be an intermittent bug with the dmesg buffer or dmesg program.
About 1 time in 15, the output from dmesg is corrupted with binary characters
which make the output unsuitable for parsing to obtain information about the machine.
The output is still recognizable as the normal kernel message output, but
it is littered with garbage binary characters.


bash-2.03# /sbin/dmesg
\^D +\^D\^D\^A\^P\^D\^D\^H\^D\^B\^H  @\M^@\^P\^F\^H\M-`\^O\M-p\^_\^H\M-p\M^?\^O\^F\^F\^F\^F\^F\^F\^F\^F\^F\^F\^F\^F\^F\^F\^F\^F\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^E\^L\^D\^A\^P@ \^D\^P\^H\^P \^B@\M^@@\M^@\M^@\^P@\^A@\^B\M^@ \^P\^P\^A\M^@\^AFACS@ 1986, 1989, 1991, 1993
        The Regents of the University of California. All rights reserved.
FreeBSD 4.0-RELEASE #2: Thu Mar 22 12:49:32 GMT 2001
    bwong@bwong3.adc.rsv.ricoh.com:/usr/home/bwong/work/FBSD/sys/compile/eCabinet
Timec\M-ountar "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon (797.42-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x683  Stepping = 3
  Features=0x387f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,PN,MMX,FXSR,XMM>
real memory  = 535822336 (523264K bytes)
avail memory = 515235840 (503160K bytes)
pnpbios: Bad PnP BIOS data checksum
Preloaded elf kernel "kernel" at 0xc03ce000.
Pentium Pro MTRR support enabled
md0: Malloc disk
npx0: <math processor> on motharboard                   

[... snip]
                        pci0: <Intel 82801AA (ICH) USB controller> at 31.2 irq 10
pci0: <unknown card> (vendor=0x8086, dev=0x2413) at 31.3 irq 9
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes \M-u\^A\^K\M-(\M^?\^H\M-x\^G\^A\^A@\M-P\M-P\M^@"@\M^?\M^@\M^?\240\M-v\240\M-v\^B@\^G\^A\^B\^K       \^K
\M-P \^P\M-@\^O43`\^O\^A\M-!\M^?\^G\M-#\^C\M-#\^E\^B\^B\^Q\^D\^E\^E\M^A\M-o
\^C\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A









bash-2.03# dmesg | head -20
 reserved.
FreeBSD 4.0-R\M-ELEASE #2: Thu Mar 22 12:49:32 GMT 2001
    bwong@bwong3.adc.rsv.ricoh.com:/usr/home/bwong\^Owork/FBSD\M-/sys/compile/eCabinet
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon (797.42-MHz 686-slass CPU)
  Origin = "Gen\^?ineInte,"  Id =$0x686  Stepping = 6
  Features=0x387v9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,PN,MMX,FXSR,XMM>
real memory  = 535822336 (523264K bytes)
avail memory!= 515235840 (503160K bytes)
pnpbios: Bad PnP BIOS data checksum
Prmloaded elf kernel "ke2nel" at 0xc03ce000.
Pentium Pro MTRR suppord enabled
md0: M`lloc disk
npx0: <math processor> on motherboard
np80: INT 16 inperface
apm0: <APM BIMS> on mouherboard
ipm: found APM BIOS v1.2, connected at w1.2
pcib0: <Intel 82810E (i810E GMCH) @ost To Hub bridge> on motherboard
pci0: <PCI bus> on pcib0
pci0: <Intel 82810E \^Hi810E GMCH) SVGA controller> at 1.0 irq 11
Broken pipe                                                                     

>How-To-Repeat:
1. Check output from /sbin/dmesg
2. If not garbled, reboot and go to step 1.
   If it is garbled, you've reproduced it.

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ashp 
State-Changed-When: Thu Jan 17 18:34:32 PST 2002 
State-Changed-Why:  


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28497 
State-Changed-From-To: closed->feedback 
State-Changed-By: ashp 
State-Changed-When: Thu Jan 17 18:36:40 PST 2002 
State-Changed-Why:  
Woops, I tried to abort the modification here.  I believe this 
was fixed fairly recently, after it turned up during bsdcon in 
Europe.  Were you experiencing these troubles on a laptop 
system? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28497 
State-Changed-From-To: feedback->closed 
State-Changed-By: keramida 
State-Changed-When: Wed Aug 21 16:24:13 PDT 2002 
State-Changed-Why:  
Feedback timeout. 

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