Subject: bin/17051: odd network hoseage by ttyflags -a
To: None <gnats-bugs@gnats.netbsd.org>
From: Mason Loring Bliss <mason@acheron.middleboro.ma.us>
List: netbsd-bugs
Date: 05/26/2002 15:57:50
>Number:         17051
>Category:       bin
>Synopsis:       odd network hoseage by ttyflags -a
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 26 12:58:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Mason Loring Bliss
>Release:        NetBSD 1.6_BETA1
>Organization:
Mason Loring Bliss          awake ? sleep : random() & 2 ? dream : sleep;
mason@acheron.middleboro.ma.us      https://acheron.ne.client2.attbi.com/
>Environment:
System: NetBSD acheron.in.hades 1.6_BETA1 NetBSD 1.6_BETA1 (kernel-src-1-6-i386) #1: Sun May 26 12:44:08 EDT 2002 mason@acheron.in.hades:/usr/obj/buildspace-mason/kernel-src-1-6-i386 i386
Architecture: i386
Machine: i386
>Description:

When ttyflags -a runs, my ep0 interface becomes non-functional. If I run
ttyflags -a prior to setting up the interface, the interface will never
function, and if I run it after setting up the interface, the interface will
stop working. The interface in question is set up by and ifconfig.ep0 file.

Another interface on the box is run by dhclient, and is unaffected. I have
not yet swapped the interfaces and tested, given that this is running on
what's essentially a production box.

dmesg:

NetBSD 1.6_BETA1 (kernel-src-1-6-i386) #1: Sun May 26 12:44:08 EDT 2002
    mason@acheron.in.hades:/usr/obj/buildspace-mason/kernel-src-1-6-i386
cpu0: AMD K6-2 (586-class), 501.16 MHz
cpu0: I-cache 32 KB 32b/line 2-way, D-cache 32 KB 32b/line 2-way
cpu0: features 8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
cpu0: features 8021bf<PGE,MMX>
total memory = 383 MB
avail memory = 352 MB
using 4935 buffers containing 19740 KB of memory
BIOS32 rev. 0 found at 0xfb380
PCI BIOS rev. 2.1 found at 0xfb3b0
PCI IRQ Routing Table rev. 1.0 found at 0xfde20, size 128 bytes (6 entries)
PCI Interrupt Router at 000:07:0 (VIA Technologies VT82C596A (Apollo Pro) PCI-ISA Bridge)
PCI Exclusive IRQs: 10 11
pci_intr_fixup: no compatible PCI ICU found: ICU vendor 0x1106 product 0x0596
Warning: unable to fix up PCI interrupt routing
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: VIA Technologies VT82C598 (Apollo MVP3) Host-PCI Bridge (rev. 0x04)
agp0 at pchb0: aperture at 0xdc000000, size 0xe400000
ppb0 at pci0 dev 1 function 0: VIA Technologies VT82C598 (Apollo MVP3) CPU-AGP Bridge (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
pcib0 at pci0 dev 7 function 0
pcib0: VIA Technologies VT82C596A (Apollo Pro) PCI-ISA Bridge (rev. 0x12)
pciide0 at pci0 dev 7 function 1: VIA Technologies VT82C596A (Apollo Pro) ATA66 controller
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <Maxtor 91731U4>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 16603 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 34004880 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd1 at pciide0 channel 0 drive 1: <Maxtor 90680D4>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 6485 MB, 13176 cyl, 16 head, 63 sec, 512 bytes/sect x 13281408 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
pciide0: secondary channel configured to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <Memorex CRW-1622, AH1234567892123  L2, D4.0> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 3, DMA mode 1
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 3
uhci0 at pci0 dev 7 function 2: VIA Technologies VT83C572 USB Controller (rev. 0x08)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA Technologie UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pchb1 at pci0 dev 7 function 3
pchb1: VIA Technologies product 0x3050 (rev. 0x20)
vga0 at pci0 dev 17 function 0: Nvidia Corporation RIVA TNT (rev. 0x04)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
bha0 at pci0 dev 18 function 0: BusLogic 9xxC SCSI
bha0: interrupting at irq 10
bha0: model BT-946C, firmware 4.24
bha0: 100 H/W CCBs, sync, parity, tagged queueing
scsibus0 at bha0: 8 targets, 8 luns per target
ne0 at pci0 dev 19 function 0: RealTek 8029 Ethernet
ne0: Ethernet address 00:40:05:6a:5e:fe
ne0: 10base2, 10baseT, 10baseT-FDX, auto, default [0x00 0x30] auto
ne0: interrupting at irq 10
eap0 at pci0 dev 20 function 0: Ensoniq AudioPCI 97 (rev. 0x08)
eap0: interrupting at irq 11
eap0: TriTech unknown codec; no 3D stereo
audio0 at eap0: full duplex, mmap, independent
midi0 at eap0: AudioPCI MIDI UART
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
com2 at isa0 port 0x3e8-0x3ef irq 5: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: read port 0x20b
ep0 at isapnp0 port 0x210/16 irq 7
ep0: 3Com 3C509B EtherLink III 
ep0: address 00:a0:24:02:36:c8, 8KB byte-wide FIFO, 5:3 Rx:Tx split
ep0: 10baseT, 10base5 (default 10baseT)
biomask ef45 netmask efc5 ttymask ffc7
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 3 lun 0: <SEAGATE, ST34371W SUN4.2G, 7462> SCSI2 0/direct fixed
sd0: 4094 MB, 3882 cyl, 16 head, 135 sec, 512 bytes/sect x 8385121 sectors
sd0: sync (100.0ns offset 15), 8-bit (10.000MB/s) transfers, tagged queueing
st0 at scsibus0 target 4 lun 0: <Seagate, STT20000N, 6A51> SCSI2 1/sequential removable
st0: drive empty
st0: sync (100.0ns offset 15), 8-bit (10.000MB/s) transfers
IPsec: Initialized Security Association Processing.
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
IP Filter: v3.4.27 initialized.  Default = pass all, Logging = enabled
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsdisplay0: screen 5 added (80x25, vt100 emulation)

#
#	from: @(#)ttys	5.1 (Berkeley) 4/17/89
#	$NetBSD: ttys,v 1.15 2002/02/17 21:04:31 tron Exp $
#
# name	getty				type	status		comments
#
console	"/usr/libexec/getty Pc"		vt100	off insecure
ttyE0	"/usr/libexec/getty Pc"		vt220	on secure
ttyE1	"/usr/libexec/getty Pc"		vt220	on secure
ttyE2	"/usr/libexec/getty Pc"		vt220	on secure
ttyE3	"/usr/libexec/getty Pc"		vt220	on secure
tty00	"/usr/libexec/getty std.9600"	unknown off secure
tty01	"/usr/libexec/getty std.9600"	unknown off secure
tty02	"/usr/libexec/getty std.9600"	unknown off secure
tty03	"/usr/libexec/getty std.9600"	unknown off secure
tty04	"/usr/libexec/getty std.9600"	unknown off secure
tty05	"/usr/libexec/getty std.9600"	unknown off secure
tty06	"/usr/libexec/getty std.9600"	unknown off secure
tty07	"/usr/libexec/getty std.9600"	unknown off secure
ttyp0	none				network
ttyp1	none				network
ttyp2	none				network
ttyp3	none				network
ttyp4	none				network
ttyp5	none				network
ttyp6	none				network
ttyp7	none				network
ttyp8	none				network
ttyp9	none				network
ttypa	none				network
ttypb	none				network
ttypc	none				network
ttypd	none				network
ttype	none				network
ttypf	none				network
ttypg	none				network
ttyph	none				network
ttypi	none				network
ttypj	none				network
ttypk	none				network
ttypl	none				network
ttypm	none				network
ttypn	none				network
ttypo	none				network
ttypp	none				network
ttypq	none				network
ttypr	none				network
ttyps	none				network
ttypt	none				network
ttypu	none				network
ttypv	none				network
ttypw	none				network
ttypx	none				network
ttypy	none				network
ttypz	none				network
ttypA	none				network
ttypB	none				network
ttypC	none				network
ttypD	none				network
ttypE	none				network
ttypF	none				network
ttypG	none				network
ttypH	none				network
ttypI	none				network
ttypJ	none				network
ttypK	none				network
ttypL	none				network
ttypM	none				network
ttypN	none				network
ttypO	none				network
ttypP	none				network
ttypQ	none				network
ttypR	none				network
ttypS	none				network
ttypT	none				network
ttypU	none				network
ttypV	none				network
ttypW	none				network
ttypX	none				network
ttypY	none				network
ttypZ	none				network
ttyq0	none				network
ttyq1	none				network
ttyq2	none				network
ttyq3	none				network
ttyq4	none				network
ttyq5	none				network
ttyq6	none				network
ttyq7	none				network
ttyq8	none				network
ttyq9	none				network
ttyqa	none				network
ttyqb	none				network
ttyqc	none				network
ttyqd	none				network
ttyqe	none				network
ttyqf	none				network
ttyr0	none				network
ttyr1	none				network
ttyr2	none				network
ttyr3	none				network
ttyr4	none				network
ttyr5	none				network
ttyr6	none				network
ttyr7	none				network
ttyr8	none				network
ttyr9	none				network
ttyra	none				network
ttyrb	none				network
ttyrc	none				network
ttyrd	none				network
ttyre	none				network
ttyrf	none				network
ttys0	none				network
ttys1	none				network
ttys2	none				network
ttys3	none				network
ttys4	none				network
ttys5	none				network
ttys6	none				network
ttys7	none				network
ttys8	none				network
ttys9	none				network
ttysa	none				network
ttysb	none				network
ttysc	none				network
ttysd	none				network
ttyse	none				network
ttysf	none				network

Getting 1.5.3 dmesg output presently...

>How-To-Repeat:

Boot. Let ttyflags -a run from /etc/rc.d/ttys.

>Fix:

As yet unknown.

>Release-Note:
>Audit-Trail:
>Unformatted: