From dgilbert@trooper.velocet.ca  Wed Jun  3 21:52:57 1998
Received: from trooper.velocet.ca (dgilbert@host-034.canadiantire.ca [209.146.201.34])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA26730
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 3 Jun 1998 21:52:55 -0700 (PDT)
          (envelope-from dgilbert@trooper.velocet.ca)
Received: (from dgilbert@localhost)
	by trooper.velocet.ca (8.8.8/8.8.7) id AAA01753;
	Thu, 4 Jun 1998 00:52:44 -0400 (EDT)
	(envelope-from dgilbert)
Message-Id: <199806040452.AAA01753@trooper.velocet.ca>
Date: Thu, 4 Jun 1998 00:52:44 -0400 (EDT)
From: David Gilbert <dgilbert@velocet.ca>
Reply-To: dgilbert@velocet.ca
To: FreeBSD-gnats-submit@freebsd.org
Subject: Inactive de0 leads to hang with windoze box.
X-Send-Pr-Version: 3.2

>Number:         6853
>Category:       kern
>Synopsis:       Having an inactive de0 in system leads to system hang.
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    peter
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun  3 22:00:01 PDT 1998
>Closed-Date:    Fri Mar 19 03:47:10 PST 1999
>Last-Modified:  Fri Mar 19 03:47:27 PST 1999
>Originator:     David Gilbert
>Release:        FreeBSD 2.2.6-RELEASE i386
>Organization:
Velocet Communications
>Environment:

	The system has two DEC ethernet (tulip) cards installed.  They
have the chip numbered 21140 and are manufactured by Kingston.  The part
# is KNE100.  My system can be made available for testing.

	de0 is normally used for 100Mbit full duplex between this system
and a linux box.  It is currently disconnected.  When connected, the
problem never occured.  de1 is connected to an 8 port 10Mbit hub that
is full and contains the Windoze 95 machine.

	If de0 is removed from the machine (de1 then becomes de0), the
symptoms go away.

	System config: AMD K6-233 w/ 128M SDRAM.  2 IDE disks, CD,
and a sound card.  PCI ATI 2M video card.

>Description:

	System freezes when Windoze 95 machine requests a large amount
of traffic.  Freeze occurs with both SMB and ftp traffic.  I have not 
had time to verify if other conditions cause it... but a fair amount of
traffic to two xterms didn't seem to cause it.

	When frozen, no keyboard or network response occurs.  Console
screensaver (stars) is also frozen.  Reset switch must be used to
reboot the machine.

>How-To-Repeat:

	Have 2 KNE100 PCI cards in a system, with de0 unused and
de1 connected to a 10Mbit lan.  Windozed 95 box (also with KNE100)
transfers large amount of data from the FreeBSD box.  This may
require an empty lan as it appeared to be related to the rate
of traffic.

>Fix:
	
	I have removed the currently unused card from the system.
This appears to fix the problem

>Release-Note:
>Audit-Trail:

From: "Matthew N. Dodd" <winter@jurai.net>
To: David Gilbert <dgilbert@velocet.ca>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/6853: Inactive de0 leads to hang with windoze box.
Date: Thu, 4 Jun 1998 11:24:04 -0400 (EDT)

 I'm guessing it must be hardware related as I've got nearly the same
 config and am operating without problems.
 
 I've got a Znyx ZX314 (4 21040s behind a bridge) and am only using de1.
 
 de0, de2, and de3 are not connected to anything.
 
 [sasami]:/var/run> uname -a
 FreeBSD sasami.jurai.net 2.2.6-STABLE FreeBSD 2.2.6-STABLE #0: Fri Apr 10
 16:09:12 EDT 1998     winter@sasami.jurai.net:/usr/src/sys/compile/SASAMI
 i386
 
 [sasami]:/var/run> uptime
 11:22AM  up 54 days, 21:43, 20 users, load averages: 0.03, 0.15, 0.15
 
 Do an `ifconfig -a` and `netstat -rn` and show us what they say.
 
 
 On Thu, 4 Jun 1998, David Gilbert wrote:
 > >Synopsis:       Having an inactive de0 in system leads to system hang.
 [snip[
 > >How-To-Repeat:
 > 
 > 	Have 2 KNE100 PCI cards in a system, with de0 unused and
 > de1 connected to a 10Mbit lan.  Windozed 95 box (also with KNE100)
 > transfers large amount of data from the FreeBSD box.  This may
 > require an empty lan as it appeared to be related to the rate
 > of traffic.
 
 
 /* 
    Matthew N. Dodd		| A memory retaining a love you had for life	
    winter@jurai.net		| As cruel as it seems nothing ever seems to
    http://www.jurai.net/~winter | go right - FLA M 3.1:53	
 */
 

From: David Gilbert <dgilbert@velocet.ca>
To: "Matthew N. Dodd" <winter@jurai.net>
Cc: David Gilbert <dgilbert@velocet.ca>, FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/6853: Inactive de0 leads to hang with windoze box.
Date: Thu, 4 Jun 1998 11:41:06 -0400 (EDT)

 >>>>> "Matthew" == Matthew N Dodd <winter@jurai.net> writes:
 
 Matthew> I'm guessing it must be hardware related as I've got nearly
 Matthew> the same config and am operating without problems.
 
 Matthew> I've got a Znyx ZX314 (4 21040s behind a bridge) and am only
 Matthew> using de1.
 
 Could be... but it could also be related to the PCI controler.  You
 have some from of PCI controller on the Znyx board.  My PCI chipset is
 the VIA Apollo VP3.
 
 Could you tell me where I could source a few of those?
 
 Matthew> [sasami]:/var/run> uname -a FreeBSD sasami.jurai.net
 Matthew> 2.2.6-STABLE FreeBSD 2.2.6-STABLE #0: Fri Apr 10 16:09:12 EDT
 Matthew> 1998 winter@sasami.jurai.net:/usr/src/sys/compile/SASAMI i386
 
 FreeBSD trooper.velocet.ca 2.2.6-RELEASE FreeBSD 2.2.6-RELEASE #0: Fri Apr 24 16:26:11 EDT 1998     root@trooper.velocet.ca:/usr/src/sys/compile/TROOPER  i386
 
 (What's the difference between RELEASE and STABLE ?)
 
 Matthew> [sasami]:/var/run> uptime 11:22AM up 54 days, 21:43, 20
 Matthew> users, load averages: 0.03, 0.15, 0.15
 
 Matthew> Do an `ifconfig -a` and `netstat -rn` and show us what they
 Matthew> say.
 
 Now... I have the card unplugged right now.  It might be a day or two
 before I have my machine down again.  Tell me if seeing that output
 would be important to you in addition to this (And then I'll send it
 to you next time I reboot).  De0 in my case was set to 10.0.0.1 with a
 Class C sized route. Is your de0 configured... My ifconfig line are:
 
 #ifconfig_de0="inet 10.0.0.1 netmask 255.255.255.0"
 ifconfig_de0="inet 209.146.201.34  netmask 255.255.255.224"
 ifconfig_lo0="inet 127.0.0.1"   # default loopback device configuration.
 
 
 de0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
 	inet 209.146.201.34 netmask 0xffffffe0 broadcast 209.146.201.63
 	ether 00:c0:f0:17:39:3e 
 	media: autoselect (10baseT/UTP) status: active
 lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
 tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
 tun1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
 tun2: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
 tun3: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
 sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
 	inet 127.0.0.1 netmask 0xff000000 
 
 Routing tables
 
 Internet:
 Destination        Gateway            Flags     Refs     Use     Netif Expire
 default            209.146.201.33     UGSc       66     9146       de0
 127.0.0.1          127.0.0.1          UH          2   112356       lo0
 209.146.201.32/27  link#1             UC          0        0 
 209.146.201.33     0:c0:f0:17:d5:1    UHLW       69      848       de0    385
 209.146.201.34     0:c0:f0:17:39:3e   UHLW       12     4226       lo0
 209.146.201.35     0:0:a7:14:f4:ce    UHLW       11    32937       de0    711
 209.146.201.36     0:0:c0:74:e2:23    UHLW        2     1504       de0   1197
 209.146.201.38     0:c0:f0:17:16:7    UHLW        3    95706       de0   1057
 209.146.201.63     ff:ff:ff:ff:ff:ff  UHLWb       3      556       de0
 
 Dave.
 
 -- 
 ============================================================================
 |David Gilbert, Velocet Communications.       | Two things can only be     |
 |Mail:       dgilbert@velocet.net             |  equal if and only if they |
 |http://www.velocet.net/~dgilbert             |   are precisely opposite.  |
 =========================================================GLO================

From: "Matthew N. Dodd" <winter@jurai.net>
To: David Gilbert <dgilbert@velocet.ca>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/6853: Inactive de0 leads to hang with windoze box.
Date: Thu, 4 Jun 1998 12:24:51 -0400 (EDT)

 On Thu, 4 Jun 1998, David Gilbert wrote:
 > Could be... but it could also be related to the PCI controler.  You
 > have some from of PCI controller on the Znyx board.  My PCI chipset is
 > the VIA Apollo VP3.
 
 I'm running on a Tyan Tomcat IVD with a single processor.
 
 > Could you tell me where I could source a few of those?
 
 No clue.  A number of places sell multi-port cards though; Cogent (now
 Adaptec), SMC, and Znyx (if they're still around which they should be.)
 
 I picked my cards up off the net a few years back...
 
 > Now... I have the card unplugged right now.  It might be a day or two
 > before I have my machine down again.  Tell me if seeing that output
 > would be important to you in addition to this (And then I'll send it
 > to you next time I reboot).  De0 in my case was set to 10.0.0.1 with a
 > Class C sized route. Is your de0 configured... My ifconfig line are:
 
 I was wondering if your unused interface was still marked 'UP', and still
 had routes in place.
 
 /* 
    Matthew N. Dodd		| A memory retaining a love you had for life	
    winter@jurai.net		| As cruel as it seems nothing ever seems to
    http://www.jurai.net/~winter | go right - FLA M 3.1:53	
 */
 

From: David Gilbert <dgilbert@velocet.ca>
To: "Matthew N. Dodd" <winter@jurai.net>
Cc: David Gilbert <dgilbert@velocet.ca>, FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/6853: Inactive de0 leads to hang with windoze box.
Date: Thu, 4 Jun 1998 15:44:35 -0400 (EDT)

 >>>>> "Matthew" == Matthew N Dodd <winter@jurai.net> writes:
 
 >> Now... I have the card unplugged right now.  It might be a day or
 >> two before I have my machine down again.  Tell me if seeing that
 >> output would be important to you in addition to this (And then I'll
 >> send it to you next time I reboot).  De0 in my case was set to
 >> 10.0.0.1 with a Class C sized route. Is your de0 configured... My
 >> ifconfig line are:
 
 Matthew> I was wondering if your unused interface was still marked
 Matthew> 'UP', and still had routes in place.
 
 I would expect that the answer is 'yes'.  I was also thinking about
 the fact that there may be a subtle difference between the Kingston
 version of these cards and the Znyx version.
 
 Dave.
 
 -- 
 ============================================================================
 |David Gilbert, Velocet Communications.       | Two things can only be     |
 |Mail:       dgilbert@velocet.net             |  equal if and only if they |
 |http://www.velocet.net/~dgilbert             |   are precisely opposite.  |
 =========================================================GLO================

From: "Matthew N. Dodd" <winter@jurai.net>
To: David Gilbert <dgilbert@velocet.ca>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/6853: Inactive de0 leads to hang with windoze box.
Date: Thu, 4 Jun 1998 16:03:34 -0400 (EDT)

 On Thu, 4 Jun 1998, David Gilbert wrote:
 > Matthew> I was wondering if your unused interface was still marked
 > Matthew> 'UP', and still had routes in place.
 > 
 > I would expect that the answer is 'yes'.  I was also thinking about
 > the fact that there may be a subtle difference between the Kingston
 > version of these cards and the Znyx version.
 
 I should think you would want to mark the interface 'DOWN' if its not
 connected to anything.
 
 /* 
    Matthew N. Dodd		| A memory retaining a love you had for life	
    winter@jurai.net		| As cruel as it seems nothing ever seems to
    http://www.jurai.net/~winter | go right - FLA M 3.1:53	
 */
 

From: David Gilbert <dgilbert@velocet.ca>
To: "Matthew N. Dodd" <winter@jurai.net>
Cc: David Gilbert <dgilbert@velocet.ca>, FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/6853: Inactive de0 leads to hang with windoze box.
Date: Thu, 4 Jun 1998 17:19:10 -0400 (EDT)

 >>>>> "Matthew" == Matthew N Dodd <winter@jurai.net> writes:
 
 Matthew> I should think you would want to mark the interface 'DOWN' if
 Matthew> its not connected to anything.
 
 You would think.  However, the interface was connected.  A few days
 ago we moved.  The system shouldn't hang reglardless.  I didn't take
 out the ifconfig line from rc.conf until I removed the card from the
 system.  Mostly laziness.
 
 Dave.
 
 -- 
 ============================================================================
 |David Gilbert, Velocet Communications.       | Two things can only be     |
 |Mail:       dgilbert@velocet.net             |  equal if and only if they |
 |http://www.velocet.net/~dgilbert             |   are precisely opposite.  |
 =========================================================GLO================
State-Changed-From-To: open->suspended 
State-Changed-By: phk 
State-Changed-When: Sat Jun 6 02:37:37 PDT 1998 
State-Changed-Why:  
Peter is on the if_de stuff 


Responsible-Changed-From-To: freebsd-bugs->peter 
Responsible-Changed-By: phk 
Responsible-Changed-When: Sat Jun 6 02:37:37 PDT 1998 
Responsible-Changed-Why:  
State-Changed-From-To: suspended->closed 
State-Changed-By: sheldonh 
State-Changed-When: Fri Mar 19 03:47:10 PST 1999 
State-Changed-Why:  
Active development on the 2.2 branch is over. 
>Unformatted:
