NetBSD Problem Report #33440

From www@netbsd.org  Mon May  8 07:39:38 2006
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id A538363B89E; Mon,  8 May 2006 07:39:38 +0000 (UTC)
Message-Id: <20060508073938.A538363B89E@narn.netbsd.org>
Date: Mon,  8 May 2006 07:39:38 +0000 (UTC)
From: raphael@raphael.g-system.at
Reply-To: raphael@raphael.g-system.at
To: gnats-bugs@netbsd.org
Subject: bce0 network interface freezes system when configured with ifconfig
X-Send-Pr-Version: www-1.0

>Number:         33440
>Category:       kern
>Synopsis:       bce0 network interface freezes system when configured with ifconfig
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 08 07:40:00 +0000 2006
>Last-Modified:  Mon May 08 09:25:01 +0000 2006
>Originator:     Raphael Langerhorst
>Release:        3.99.19
>Organization:
>Environment:
NetBSD spirit.raphael.g-system.at 3.99.19 NetBSD 3.99.19 (GENERIC-SPIRIT-$Revision: 1.750) #8: Sun May  7 20:38:51 CEST 2006  root@spirit.raphael.g-system.at:/usr/obj/sys/arch/i386/compile/GENERIC_LAPTOP i386
>Description:
On a DELL Inspiron 6000 laptop, when using ifconfig with a bce0 network interface, the system freezes. The bug is (I guess) either in ifconfig or in the if_bce device driver (sys/dev/pci/if_bce.c) (but the cause might be somewhere totally different, see known fix below!).

This problem did not occur on NetBSD 3.0 release. I only observed it after updating to the current NetBSD 4 development version.

A PCMCIA network interface (a tlp0 in that case - Netgear) works fine with 3.99.19

Note: The laptop has an Intel 915 board.


>How-To-Repeat:
Boot a machine with NetBSD 3.99.19 (current CVS HEAD) and with a bce0 network interface. After startup, run "ifconfig bce0 up"

This will freeze the system (Ctrl+Alt+Esc works still!)
>Fix:
I added various debug messages both into ifconfig and the if_bce driver. But after playing around for two hours I wasn't able to find anything - for example ifconfig actually gets to the end of main(), so it exits gracefully. And it seems (not sure!) that all routines from the bce driver also don't hang (that is, they get from begin to end). 

So I'm not sure if the system hangs somewhere else (interrupt related?)

It seems to me that the system repeatedly(!) tries to init the device (two times it is).

Maybe there is something wrong with the bce_timeout (or related calls)?

I'm not a kernel developer, so I'm a bit stuck now, and I hope that this bug report helps solving the issue.

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/33440: bce0 network interface freezes system when configured with ifconfig
Date: Mon, 8 May 2006 10:22:55 +0200

 On Mon, May 08, 2006 at 07:40:00AM +0000, raphael@raphael.g-system.at wrote:

 This seems to be a duplicate of PR 24911 - can you verify the fix in that
 PR works for you too?

 Martin

From: Raphael Langerhorst <raphael@raphael.g-system.at>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/33440: bce0 network interface freezes system when configured with ifconfig
Date: Mon, 8 May 2006 11:23:31 +0200

 Hi,

 I tested the fix from PR 24911, but it didn't solve the issue described in 
 this bug report. Also, the bce0 interface works just fine with NetBSD 3.0, 
 it's only broken in CVS HEAD (AFAICS).

 Regards,
 Raphael

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.