Consultor Eletrônico



Kbase 15314: OUTPUT TO "device" - CTRL-C core dumps - Workaround CAT
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
OUTPUT TO "device" - CTRL-C core dumps - Workaround CAT


In version 7, when using the following 4GL statement

OUTPUT TO /dev/lprinter.

to print to a specific printer device, sometimes a core file is
generated if the user presses Ctrl-C during execution of the program.
One of the following error will also appear.

SYSTEM ERROR: Bus error. ( 48 )
or
SYSTEM ERROR: Memory violation. ( 49 )

There is a workaround for this which is just as effective and does not
have a performance impact.

OUTPUT THROUGH "cat > /dev/lprinter".

If a user presses Ctrl-C when this syntax is used, the following
message will appear.

** Pipe to subprocess has been broken. (140)

This is expected behavior. The Ctrl-C is closing the pipe, which is
really an unnamed stream. This behavior was common to version 6.

NOTE: There have also been many problems associated with OUTPUT TO
PRINTER when printing large files. PROGRESS version 7 seems to put
data to the printer buffer faster than version 6, thus filling the
printer buffer. You would usually see on of two symptoms: either the
printed output will be truncated or you might see a core dump that is
accompanied by system error 48 or 49.

Progress Software Technical Support Note # 15314