Debian Bug report logs - #37517
xterm: binary files can cause xterm to hang and dump into the printer queue with printerCommand

version graph

Package: xterm; Maintainer for xterm is Debian X Strike Force <debian-x@lists.debian.org>; Source for xterm is src:xterm.

Reported by: rjs@isil.lloke.dna.fi (Riku Saikkonen)

Date: Tue, 11 May 1999 20:18:09 UTC

Severity: normal

Tags: upstream

Found in version 3.3.2.3a-11

Done: Branden Robinson <branden@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Branden Robinson <branden@debian.org>:
Bug#37517; Package xterm. Full text and rfc822 format available.

Acknowledgement sent to rjs@isil.lloke.dna.fi (Riku Saikkonen):
New bug report received and forwarded. Copy sent to Branden Robinson <branden@debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: rjs@isil.lloke.dna.fi (Riku Saikkonen)
To: submit@bugs.debian.org
Subject: xterm hangs and may print something (using printerCommand)
Date: 11 May 1999 21:18:53 +0300
Package: xterm
Version: 3.3.2.3a-11

I got xterm to hang simply by looking at binary data with "cat".

"cat slang0.99.38_0.99.38-6.deb" got the xterm to hang completely (it
doesn't even redraw its window), and "ps" shows that it started an lpr
process:
rjs@anar:~$ ps fxa
...
  558  p3 R    0:37      |       \_ xterm 
  559  p2 S    0:00      |       |   \_ bash 
  576  p2 S    0:00      |       |   |   \_ cat /heap/debian/misc-deb/slang0.99.
  577  p3 S    0:00      |       |   \_ xterm 
  578  p3 S    0:00      |       |       \_ lpr 
...

PID 558 was the original xterm that I typed the cat in. Apparently it
forked itself (to PID 577) and the forked copy started up lpr in
another child process (578).

The hung-up xterm also uses up all the available CPU time, probably in
some sort of useless loop.

Destroying the window (via fvwm2's Destroy command) does not kill the
xterm process, but I can kill it manually. After I kill it, "lpq"
shows that the xterm put something in the print queue. I don't have a
printer here, so I don't know what it wants to print, but probably
part of the binary data in the file...

I imagine the binary I catted happened to contain the VTxxx escape
code for using the printer attached to a dumb terminal, and xterm
processed it.

I tried setting the printerCommand resource to "false" (to start
/bin/false...). Then xterm doesn't start up lpr (naturally), but it
still hangs in the same way.

I can't find a way to disable the printer escapes in xterm's man page.
It would be a good thing if they were disabled by default, for
security reasons...

-- 
-=- Rjs -=- rjs@lloke.dna.fi


Changed bug title. Request was from Branden Robinson <branden@ecn.purdue.edu> to control@bugs.debian.org. Full text and rfc822 format available.

Changed Bug title. Request was from Branden Robinson <branden@debian.org> to control@bugs.debian.org. Full text and rfc822 format available.

Tags added: upstream Request was from Branden Robinson <branden@debian.org> to control@bugs.debian.org. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Branden Robinson <branden@debian.org>, xfree86@packages.qa.debian.org:
Bug#37517; Package xterm. Full text and rfc822 format available.

Acknowledgement sent to dickey@herndon4.his.com (Thomas Dickey):
Extra info received and forwarded to list. Copy sent to Branden Robinson <branden@debian.org>, xfree86@packages.qa.debian.org. Full text and rfc822 format available.

Message #16 received at 37517@bugs.debian.org (full text, mbox):

From: dickey@herndon4.his.com (Thomas Dickey)
To: 37517@bugs.debian.org
Cc: dickey@herndon4.his.com (Thomas Dickey)
Subject: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=37517
Date: Sun, 2 Mar 2003 14:17:46 -0500
>                        Debian Bug report logs - #37517
>  xterm: binary files can cause xterm to hang and dump into the printer queue
>                              with printerCommand

this one should be closed, since it was addressed in patch #167.
-- 
Thomas E. Dickey <dickey@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net



Reply sent to Branden Robinson <branden@debian.org>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to rjs@isil.lloke.dna.fi (Riku Saikkonen):
Bug acknowledged by developer. Full text and rfc822 format available.

Message #21 received at 37517-done@bugs.debian.org (full text, mbox):

From: Branden Robinson <branden@debian.org>
To: 37517-done@bugs.debian.org
Subject: Re: Bug#37517: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=37517
Date: Sun, 2 Mar 2003 17:45:13 -0500
[Message part 1 (text/plain, inline)]
On Sun, Mar 02, 2003 at 02:17:46PM -0500, Thomas Dickey wrote:
> >                        Debian Bug report logs - #37517
> >  xterm: binary files can cause xterm to hang and dump into the printer queue
> >                              with printerCommand
> 
> this one should be closed, since it was addressed in patch #167.

Closing per upstream maintainer.

-- 
G. Branden Robinson                |
Debian GNU/Linux                   |      If encryption is outlawed, only
branden@debian.org                 |      outlaws will @goH7Ok=<q4fDj]Kz?.
http://people.debian.org/~branden/ |
[Message part 2 (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 00:15:33 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.