From vs@foldr.org  Tue Jan  7 08:28:29 2003
Return-Path: <vs@foldr.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id EDD3337B401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  7 Jan 2003 08:28:28 -0800 (PST)
Received: from lambda.foldr.org (lambda.foldr.org [198.78.66.36])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5237843E4A
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  7 Jan 2003 08:28:28 -0800 (PST)
	(envelope-from vs@foldr.org)
Received: from theater.foldr.org (root@pD9509CBD.dip.t-dialin.net [217.80.156.189])
	by lambda.foldr.org (8.12.3/8.11.6) with ESMTP id h07GSKbc056033
	(using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK)
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 7 Jan 2003 17:28:22 +0100 (CET)
	(envelope-from vs@foldr.org)
Received: from theater.dynamic.foldr.org (vs@localhost.foldr.org [127.0.0.1])
	by theater.foldr.org (8.12.5/8.12.5) with ESMTP id h07GSI6m007035
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK)
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 7 Jan 2003 17:28:19 +0100 (CET)
	(envelope-from vs@theater.dynamic.foldr.org)
Received: (from vs@localhost)
	by theater.dynamic.foldr.org (8.12.5/8.12.5/Submit) id h07GSH1f007034;
	Tue, 7 Jan 2003 17:28:17 +0100 (CET)
	(envelope-from vs)
Message-Id: <200301071628.h07GSH1f007034@theater.dynamic.foldr.org>
Date: Tue, 7 Jan 2003 17:28:17 +0100 (CET)
From: Volker Stolz <vs@foldr.org>
Reply-To: Volker Stolz <vs@foldr.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: vr NIC crashes machine on ifconfig (maybe miibus)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         46831
>Category:       alpha
>Synopsis:       vr NIC crashes machine on ifconfig (maybe miibus)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-alpha
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 07 08:30:04 PST 2003
>Closed-Date:    Sat Jan 18 01:13:40 PST 2003
>Last-Modified:  Sat Jan 18 01:13:40 PST 2003
>Originator:     Volker Stolz
>Release:        FreeBSD 4.7-STABLE alpha
>Organization:
>Environment:
System: FreeBSD varphi.theater.foldr.org 4.7-STABLE FreeBSD 4.7-STABLE #0: Tue Jan 3 17:22:51 CET 2023 root@varphi.theater.foldr.org:/usr/obj/usr/src/sys/VARPHI alpha


>Description:
The following NIC crashes the system on invoking "ifconfig vr0" after producing
two lines of output (after MAC):

vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0x10000-0x100ff mem 0x81050000-0x810500ff irq 9 at device 12.0 on pci0
vr0: interrupting at ISA irq 9
vr0: Ethernet address: 00:05:5d:5f:55:d3
miibus0: <MII bus> on vr0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  no media present
...
fatal kernel trap:

    trap entry = 0x2 (memory management fault)
    a0         = 0x10
    a1         = 0x1
    a2         = 0x0
    pc         = 0xfffffc00006aaa18
    ra         = 0xfffffc000036f384
    curproc    = 0xfffffe0003992980
        pid = 336, comm = ifconfig

panic: trap

(kgdb) where
#0  0xfffffc00003a9b00 in dumpsys () at /usr/src/sys/kern/kern_shutdown.c:486
#1  0xfffffc00003a9648 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:316
#2  0xfffffc00003a9ef0 in panic (fmt=0xfffffc00005b4c9c "trap") at /usr/src/sys/kern/kern_shutdown.c:595
#3  0xfffffc000055663c in trap (a0=16, a1=1, a2=18446741874755137120, entry=0, framep=0xfffffe000470bb10)
    at /usr/src/sys/alpha/alpha/trap.c:551
#4  0xfffffc00005482dc in XentMM ()
#5  0xfffffc000036f384 in mii_pollstat (mii=0xfffffe000045f380) at /usr/src/sys/dev/mii/mii.c:328
warning: Hit heuristic-fence-post without finding
warning: enclosing function for address 0x4
(kgdb) up 5
warning: Hit heuristic-fence-post without finding
warning: enclosing function for address 0x4
#5  0xfffffc000036f384 in mii_pollstat (mii=0xfffffe000045f380) at /usr/src/sys/dev/mii/mii.c:328
328                     (void) (*child->mii_service)(child, mii, MII_POLLSTAT);
(kgdb) list
323             mii->mii_media_status = 0;
324             mii->mii_media_active = IFM_NONE;
325     
326             for (child = LIST_FIRST(&mii->mii_phys); child != NULL;
327                  child = LIST_NEXT(child, mii_list))
328                     (void) (*child->mii_service)(child, mii, MII_POLLSTAT);
329     }
(kgdb) print child
$3 = (struct mii_softc *) 0xfffffe000045f380
(kgdb) print child->mii_service
$4 = 0xfffffc00006aa9c0

I'll extract more information if somebody wants to walk through it
(or I put up the files somewhere).

>How-To-Repeat:
100% reproducible on this machine, no trouble in 4.6-STABLE.
ifconfig vr0
>Fix:
>Release-Note:
>Audit-Trail:

From: Volker Stolz <vs@foldr.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: alpha/46831: vr NIC crashes machine on ifconfig (maybe miibus)
Date: Wed, 8 Jan 2003 09:32:03 +0100

 Ouch, looks like I hit an incarnation of kern/32570
 (miibus compiled into kernel for if_de but the module is
 additionally loaded on boot as a dependency for if_vr.ko)
 
 After compiling both de & vr into the kernel, the problem
 goes away.
 -- 
 "Gemischte Materialien // Frher: Restmll"
 Aufschrift auf einem Container, Informatik-Parkplatz
 http://lambda.foldr.org/~vs/ * PGP * S/MIME
State-Changed-From-To: open->closed 
State-Changed-By: obraun 
State-Changed-When: Sat Jan 18 01:12:38 PST 2003 
State-Changed-Why:  
Closed at originators request. 

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