Bug 111798

Summary: FreeBSD 6.2-RELEASE #0 Deadlocks randomly
Product: Base System Reporter: Charles A. Newcomer <charles>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 6.2-RELEASE   
Hardware: Any   
OS: Any   

Description Charles A. Newcomer 2007-04-18 00:30:01 UTC
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)

Fix: 

Somewhat of a work around is to configure the system for GIANT-LOCKing on the network stack.
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.
Comment 1 Charles A. Newcomer 2007-04-18 01:03:35 UTC
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
Comment 2 edwin 2007-04-18 01:24:03 UTC
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/
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2007-04-18 06:17:00 UTC
State Changed
From-To: open->closed

Duplicate of kern/111793.