Date: Fri, 7 Apr 2000 10:24:56 +0200 (CEST) From: Alain Thivillon <Alain.Thivillon@hsc.fr> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/17841: ttyp0 strangeness Message-ID: <20000407082456.B596010E04@itesec.hsc.fr>
next in thread | raw e-mail | index | archive | help
>Number: 17841
>Category: bin
>Synopsis: ttyp0 (and only 0!) produces stdout input/output error
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Apr 7 01:30:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Alain Thivillon
>Release: FreeBSD 3.4-RELEASE i386
>Organization:
Herve Schauer Consultants
>Environment:
FreeBSD 3.4 Running on i386 AMD-K6, 128Mo, SCSI NCR, sshd
>Description:
ttyp0 (and only 0!) seems broken on my system. First user to access
system via ssh or telnet and issuing 'cat /var/log/messages' or 'mailq'
or any command producing long stdout output show something like
cat: stdout: Input/output error . Other commands (such as last)
ignore error but analysis of output shows missing lines.
Amount of data sent before error is random.
We have another system build with same hardware and approximately same
kernel working without problems.
I try to remove (:))) /dev/ttyp0 and /dev/ptyp0 and recreate them
without any change.
Using lsof does not show any processes with file descriptors open on
/dev/ttyp0
Problem is reproductible across system reboots.
I repeat, when logged on on ttyp1 or any other, problem disappears.
>How-To-Repeat:
'cat /dev/zero' when logged on first remote tty.
Here is kernel config file:
machine "i386"
cpu "I386_CPU"
cpu "I486_CPU"
cpu "I586_CPU"
cpu "I686_CPU"
ident CARBONE
maxusers 50
options MATH_EMULATE #Support for x87 emulation
options INET #InterNETworking
options IPFILTER
options IPFILTER_LOG
options IPFILTER
options IPFILTER_LOG
options FFS #Berkeley Fast Filesystem
options FFS_ROOT #FFS usable as root device [keep this!]
options MFS #Memory Filesystem
options MFS_ROOT #MFS usable as root device, "MFS" req'ed
options NFS #Network Filesystem
options NFS_ROOT #NFS usable as root device, "NFS" req'ed
options MSDOSFS #MSDOS Filesystem
options "CD9660" #ISO 9660 Filesystem
options "CD9660_ROOT" #CD-ROM usable as root. "CD9660" req'ed
options PROCFS #Process filesystem
options "COMPAT_43" #Compatible with BSD 4.3 [KEEP THIS!]
options SCSI_DELAY=15000 #Be pessimistic about Joe SCSI device
options UCONSOLE #Allow users to grab the console
options FAILSAFE #Be conservative
options USERCONFIG #boot -c editor
options VISUAL_USERCONFIG #visual boot -c editor
options KTRACE #ktrace(1) syscall trace support
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options TCP_DROP_SYNFIN #drop TCP packets with SYN+FIN
options TCP_RESTRICT_RST #restrict emission of TCP RST
options "ICMP_BANDLIM"
options SOFTUPDATES
config kernel root on wd0
controller isa0
controller pnp0 # PnP support for ISA
controller eisa0
controller pci0
controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2
disk fd0 at fdc0 drive 0
disk fd1 at fdc0 drive 1
options "CMD640" # work around CMD640 chip deficiency
controller wdc0 at isa? port "IO_WD1" bio irq 14
disk wd0 at wdc0 drive 0
disk wd1 at wdc0 drive 1
controller wdc1 at isa? port "IO_WD2" bio irq 15
disk wd2 at wdc1 drive 0
disk wd3 at wdc1 drive 1
options ATAPI #Enable ATAPI support for IDE bus
options ATAPI_STATIC #Don't do it as an LKM
device acd0 #IDE CD-ROM
device wfd0 #IDE Floppy (e.g. LS-120)
controller ncr0 # NCR/Symbios Logic
controller ahb0 # EISA AHA1742 family
controller ahc0 # AHA2940 and onboard AIC7xxx devices
controller amd0 # AMD 53C974 (Teckram DC-390(T))
controller isp0 # Qlogic family
controller dpt0 # DPT Smartcache - See LINT for options!
controller adv0 at isa? port ? cam irq ?
controller adw0
controller bt0 at isa? port ? cam irq ?
controller aha0 at isa? port ? cam irq ?
controller aic0 at isa? port ? cam irq ?
controller scbus0 # SCSI bus (required)
device da0 # Direct Access (disks)
device sa0 # Sequential Access (tape etc)
device cd0 # CD
device pass0 # Passthrough device (direct SCSI)
device wt0 at isa? port 0x300 bio irq 5 drq 1
device mcd0 at isa? port 0x300 bio irq 10
device matcd0 at isa? port 0x230 bio
device scd0 at isa? port 0x230 bio
controller atkbdc0 at isa? port IO_KBD tty
device atkbd0 at isa? tty irq 1
device psm0 at isa? tty irq 12
device vga0 at isa? port ? conflicts
pseudo-device splash
device sc0 at isa? tty
device npx0 at isa? port IO_NPX irq 13
device apm0 at isa? disable flags 0x31 # Advanced Power Management
device sio0 at isa? port "IO_COM1" flags 0x10 tty irq 4
device sio1 at isa? port "IO_COM2" tty irq 3
device ppc0 at isa? port? flags 0x40 net irq 7
controller ppbus0 # Parallel port bus (required)
device lpt0 at ppbus? # Printer
device plip0 at ppbus? # TCP/IP over parallel
device ppi0 at ppbus? # Parallel port interface device
device de0 # DEC/Intel DC21x4x (``Tulip'')
device fxp0 # Intel EtherExpress PRO/100B (82557, 82558)
device rl0 # RealTek 8129/8139
device vx0 # 3Com 3c590, 3c595 (``Vortex'')
device xl0 # 3Com 3c90x (``Boomerang'', ``Cyclone'')
pseudo-device loop # Network loopback
pseudo-device ether # Ethernet support
pseudo-device sl 1 # Kernel SLIP
pseudo-device ppp 2 # Kernel PPP
pseudo-device tun 4 # Packet tunnel
pseudo-device pty 64 # Pseudo-ttys (telnet etc)
pseudo-device gzip # Exec gzipped a.out's
pseudo-device bpfilter 4 #Berkeley packet filter
pseudo-device vn #Vnode driver (turns a file into a device)
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000407082456.B596010E04>
