Date: Wed, 3 Sep 1997 20:15:55 GMT From: Ken Chase <mathboy@cda-inc.com> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/4460: lpd hangs exiting (IE in ps table) Message-ID: <199709032015.UAA01471@serv.cda-inc.com> Resent-Message-ID: <199709032020.NAA04464@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 4460 >Category: bin >Synopsis: lpd hangs exiting (IE in ps table) >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 3 13:20:01 PDT 1997 >Last-Modified: >Originator: Ken Chase >Organization: Velocet Communications Inc. (admins for CDA Industries Inc). >Release: FreeBSD 2.2.2-RELEASE i386 >Environment: Copyright (c) 1992-1997 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 2.2.2-RELEASE #0: Tue May 20 10:45:24 GMT 1997 jkh@time.cdrom.com:/usr/src/sys/compile/GENERIC CPU: AMD K5 model 0 (90.04-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x501 Stepping=1 Features=0x3bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC> real memory = 16777216 (16384K bytes) avail memory = 14467072 (14128K bytes) Probing for devices on PCI bus 0: chip0 <Intel 82437VX PCI cache memory controller> rev 2 on pci0:0 chip1 <Intel 82371SB PCI-ISA bridge> rev 1 on pci0:7:0 chip2 <Intel 82371SB IDE interface> rev 0 on pci0:7:1 Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> ed0 at 0x300-0x31f irq 10 on isa ed0: address 00:40:05:3d:48:95, type NE2000 (16 bit) ed1: disabled, not probed. fe0: disabled, not probed. sio0 at 0x3f8-0x3ff irq 4 flags 0x80 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 flags 0x80 on isa sio1: type 16550A sio2: disabled, not probed. sio3: disabled, not probed. lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface lpt1 at 0x378-0x37f on isa lpt1 not probed due to I/O address conflict with lpt0 at 0x378 mse0: disabled, not probed. psm0: disabled, not probed. fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (wd0): <FUJITSU MPA3017AT> wd0: 1668MB (3417120 sectors), 3390 cyls, 16 heads, 63 S/T, 512 B/S wdc0: unit 1 (wd1): <FUJITSU MPA3017AT> wd1: 1668MB (3417120 sectors), 3390 cyls, 16 heads, 63 S/T, 512 B/S wdc1: disabled, not probed. bt0: disabled, not probed. uha0: disabled, not probed. aha0: disabled, not probed. aic0: disabled, not probed. nca0: disabled, not probed. nca1: disabled, not probed. sea0: disabled, not probed. wt0: disabled, not probed. mcd0: disabled, not probed. matcdc0: disabled, not probed. scd0: disabled, not probed. ie0: disabled, not probed. ie1: disabled, not probed. ep0 not probed due to I/O address conflict with ed0 at 0x300 ex0: disabled, not probed. le0: disabled, not probed. lnc0: disabled, not probed. ze0: disabled, not probed. zp0: disabled, not probed. npx0 flags 0x1 on motherboard npx0: INT 16 interface apm0: disabled, not probed. >Description: using LPD to print to an HP plotter, which uses Xon/Xoff and possibly CTS+RTS (with relevant stty settings: /usr/local/etc/rc.d script starts up with: #set stty settings for plotter on /dev/cuaa0 stty ixon ixoff -ixany crtscts evenp clocal 9600 < /dev/cuaa0 stty ixon ixoff -ixany crtscts evenp clocal 9600 < /dev/cuaia0 ) some format of some plot files seems to be suspect - causes the plotter to get half way through the file and then stop. This is clearly a plotter driver problem in AutoCAD 12, however, the lpd attached to this job does not complete when LPRM is used to remove the print job from the queue. lprm is used to remove the job. the plotter has a "error or HPGL command uknown" error on its screen and is power cycled at this point everything should be clear and ready to go for another plot job. HOWEVER, lpr'ing a plotter file (known to work) to the plotter does not work, nor does cat file > /dev/cuaa0. the plotter seems to be blocked, or more so IMHO the port is blocked on hte server. Also at this point, I see: > ps -ax | grep lp 774 ?? Is 0:00.07 lpd 1128 ?? IE 0:00.00 (lpd) kill 1128 nor kill -9 1128 removes the swapped lpd job. Its stuck in EXIT mode (or whatever E stands for). Only a software reboot or harder will clear this on FreeBSD. This is undesirable. :) Many other plots have been completed without any trouble, and without requiring system reboot, plotter power cycle, lprm or lpc restart lpc clear or any other manual intervention. >How-To-Repeat: copy an AutoCAD plotter file to the system. (I have the offending file if required) lpr filename the plotter will initialise itself and start the plot job, then blocks. the plotter probably at this point Xoff's back to the host. I dont know how this could be reproduced withtout the same equipment. Or perhaps simulating an xoff back to lpd... >Fix: Software reboot. Yuck. Thanks. /kc Ken Chase, Sysadmin Velocet Communications inc. mathboy@sizone.org >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709032015.UAA01471>