From nobody@FreeBSD.org  Tue Apr 17 23:26:00 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 0504016A421
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 Apr 2007 23:26:00 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id E927713C468
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 Apr 2007 23:25:59 +0000 (UTC)
	(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 l3HNPxrx002456
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 Apr 2007 23:25:59 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l3HNKwoj001998;
	Tue, 17 Apr 2007 23:20:58 GMT
	(envelope-from nobody)
Message-Id: <200704172320.l3HNKwoj001998@www.freebsd.org>
Date: Tue, 17 Apr 2007 23:20:58 GMT
From: "Charles A. Newcomer"<charles@iapc.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: FreeBSD 6.2-RELEASE #0 Deadlocks randomly
X-Send-Pr-Version: www-3.0

>Number:         111798
>Category:       kern
>Synopsis:       FreeBSD 6.2-RELEASE #0 Deadlocks randomly
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 17 23:30:01 GMT 2007
>Closed-Date:    Wed Apr 18 05:17:43 GMT 2007
>Last-Modified:  Wed Apr 18 05:17:43 GMT 2007
>Originator:     Charles A. Newcomer
>Release:        FreeBSD 6.2-RELEASE #0
>Organization:
IAPC
>Environment:
FreeBSD vox.stes.org 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  i386

>Description:
Compaq DL380 3.2 Dual Core Xeon using bge network driver (dual ports) will randomly deadlock.
Only way to recover is power off.  No panic dumps or any indicators in logs.  Looks like a spin
lock.

In our particular instance it occurs at aproximately 1 week intervals.

This problem has been present in all 6.X releases.

Using GIANT-LOCK on the network stack stops it (apparently) from happening.
Although under previous 6.X releases system would still occasionaly panic (have not
analysed the cause; may be another reason)
>How-To-Repeat:
Unknown exactly.
We are running the latest asterisk12 port with phones on an inside lan (192.168.X.X) bge1 
and asterisk accepting SIP calls from a public IP behind a Cisco PIX on bge0.

Just reinstalled from CD to FreeBSD 6.2-RELEASE #0 and locked after 4 days.
>Fix:
Somewhat of a work around is to configure the system for GIANT-LOCKing on the network stack.

>Release-Note:
>Audit-Trail:

From: "Charles A. Newcomer" <charles@iapc.net>
To: bug-followup@FreeBSD.org,
 charles@iapc.net
Cc:  
Subject: Re: kern/111798: FreeBSD 6.2-RELEASE #0 Deadlocks randomly
Date: Tue, 17 Apr 2007 19:03:35 -0500

 DUP Please close.
 
 /can
 __________________
 "UNIX is simple and coherent, but it takes a true genius (or a  
 programmer at any rate) to understand and appreciate its simplicity."  
 -- Dennis Ritchie
 
 
 

From: Edwin Groothuis <edwin@mavetju.org>
To: "Charles A. Newcomer" <charles@iapc.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/111798: FreeBSD 6.2-RELEASE #0 Deadlocks randomly
Date: Wed, 18 Apr 2007 10:24:03 +1000

 On Tue, Apr 17, 2007 at 11:20:58PM +0000, Charles A. Newcomer wrote:
 > >Synopsis:       FreeBSD 6.2-RELEASE #0 Deadlocks randomly
 
 Can you see if this resolves it? It worked like a charm for me:
 
 http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/sysv_sem.c.diff?r1=1.87;r2=1.88
 
 No more random hangs for me in the last two weeks
 
 Edwin
 -- 
 Edwin Groothuis      |            Personal website: http://www.mavetju.org
 edwin@mavetju.org    |              Weblog: http://www.mavetju.org/weblog/
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Wed Apr 18 05:17:00 UTC 2007 
State-Changed-Why:  
Duplicate of kern/111793. 

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