From nobody@FreeBSD.org  Wed Oct 12 23:02:45 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4757216A420
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Oct 2005 23:02:45 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1097143D45
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Oct 2005 23:02:45 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j9CN2iCr098418
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Oct 2005 23:02:44 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j9CN2i23098416;
	Wed, 12 Oct 2005 23:02:44 GMT
	(envelope-from nobody)
Message-Id: <200510122302.j9CN2i23098416@www.freebsd.org>
Date: Wed, 12 Oct 2005 23:02:44 GMT
From: "D. J. Bernstein" <freebsd-d8749b97554608222e6dfa2fbc915a0b@box.cr.yp.to>
To: freebsd-gnats-submit@FreeBSD.org
Subject: amd64+smp+startkde always crashing
X-Send-Pr-Version: www-2.3

>Number:         87348
>Category:       amd64
>Synopsis:       amd64+smp+startkde always crashing
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    linimon
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 12 23:10:13 GMT 2005
>Closed-Date:    Mon Jul 23 03:51:58 GMT 2007
>Last-Modified:  Mon Jul 23 03:51:58 GMT 2007
>Originator:     D. J. Bernstein
>Release:        5.4-RELEASE
>Organization:
University of Illinois at Chicago
>Environment:
FreeBSD dancer.math.uic.edu 5.4-RELEASE FreeBSD 5.4-RELEASE #2: Wed Oct 12 16:09:35 CDT 2005 root@dancer.math.uic.edu:/usr/obj/usr/src/sys/dancer  amd64

>Description:
Built an Athlon 64 X2 box; Asus A8V, 250GB SATA, Radeon VE (7000). Installed FreeBSD 5.4-RELEASE from the amd64 CDs. Modified kernel from GENERIC as follows: changed ident, add ``device sound'', add ``device "snd_via8233"'', add ``options SMP''.

Minor problem: machine wasn't pingable after a few days. Apparently fixed by debug.mpsafenet=1 in /boot/loader.conf; haven't tried to isolate the problem.

Major problem: startkde always freezes the machine. Caps Lock doesn't toggle keyboard lights; Ctrl-Alt-Backspace has no effect; only way to affect the machine, apparently, is to press the power button.

Removing SMP appears to eliminate the freeze, but I'd rather run Linux than throw away half of the CPU power. Haven't done serious stress tests, so I don't know whether this is tied to KDE, or to X, or to overlal load. Have reproduced on an identical Athlon 64 X2 box; could be a problem with the A8V etc., but clearly isn't a problem with assembly of this particular box.

This is a new non-critical machine; I'm willing to play with it a little bit. I could open it up to developers for testing, but if the video driver is crashing the machine then I'd be surprised if FreeBSD has adequate remote debugging facilities.

---D. J. Bernstein, Professor, Mathematics, Statistics, and Computer Science, University of Illinois at Chicago

>How-To-Repeat:
See above.

>Fix:
See above.

>Release-Note:
>Audit-Trail:

From: Vasil Dimov <vd@datamax.bg>
To: "D\. J\. Bernstein" <freebsd-d8749b97554608222e6dfa2fbc915a0b@box.cr.yp.to>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: amd64/87348: amd64+smp+startkde always crashing
Date: Wed, 19 Oct 2005 08:43:17 +0300

 On Wed, Oct 12, 2005 at 11:02:44PM +0000, D. J. Bernstein wrote:
 > Built an Athlon 64 X2 box; Asus A8V, 250GB SATA, Radeon VE (7000). Installed FreeBSD 5.4-RELEASE from the amd64 CDs. Modified kernel from GENERIC as follows: changed ident, add ``device sound'', add ``device "snd_via8233"'', add ``options SMP''.
 ...
 > Major problem: startkde always freezes the machine. Caps Lock doesn't toggle keyboard lights; Ctrl-Alt-Backspace has no effect; only way to affect the machine, apparently, is to press the power button.
 ...
 > Removing SMP appears to eliminate the freeze, but I'd rather run Linux than throw away half of the CPU power. Haven't done serious stress tests, so I don't know whether this is tied to KDE, or to X, or to overlal load. Have reproduced on an identical Athlon 64 X2 box; could be a problem with the A8V etc., but clearly isn't a problem with assembly of this particular box.
 > 
 
 I have the same motherboard (A8V) and since I got it, I started
 experiencing problems, including (but not limited to the following):
 
 * random reboots (just as if I had pressed the reset button)
 * kernel panics
 * machine freezings (like yours - kbd dead, must press reset btn)
 * random programs crashes (signal 11) with programs that are otherwise
   rock stable like: sed, ispell, perl, gcc
 
 All of these occured when there was some load on the machine - like
 make index in the ports dir.
 
 The peak moment was 2 days ago when I wasn't able to compile the world,
 because gcc failed with signal 11 two subsequent times on different
 pieces of code.
 
 Then I rebooted and changed the Memclock setting in the BIOS from "Auto"
 to "5:3 DDR333", although the memory is DDR400, and this fixed the
 problem - /usr/coredumps is empty since then :) and I compiled the world
 with the first attempt, running make index in parallel.
 
 I hope that helps.

From: "D. J. Bernstein" <freebsd-d8749b97554608222e6dfa2fbc915a0b@box.cr.yp.to>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: amd64/87348: amd64+smp+startkde always crashing
Date: 16 Nov 2005 15:29:18 -0000

 I think I've successfully tracked this one down: it's a serious X server
 bug, applicable to both BSD and Linux. Specifically, everything I've
 seen is fully explained by ATI Radeon DRI freezing the OS (no keyboard
 lights, no ping response, etc.) under AMD64 SMP. I've had no freezes
 after removing the ``Load "dri"'' line from the X configuration.
 
 ---D. J. Bernstein, Professor, Mathematics, Statistics,
 and Computer Science, University of Illinois at Chicago
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Sat Jun 2 19:30:46 UTC 2007 
State-Changed-Why:  
Is this still a problem with recent versions of FreeBSD, and the latest 
release of xorg? 


Responsible-Changed-From-To: freebsd-amd64->linimon 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Jun 2 19:30:46 UTC 2007 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=87348 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Mon Jul 23 03:51:38 UTC 2007 
State-Changed-Why:  
Feedback timeout (1 month). 

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