[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#37517: marked as done (xterm: binary files can cause xterm to hang and dump into the printer queue with printerCommand)



Your message dated Sun, 2 Mar 2003 17:45:13 -0500
with message-id <20030302224512.GE10257@deadbeast.net>
and subject line Bug#37517: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=37517
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 11 May 1999 20:16:33 +0000
Received: (qmail 3673 invoked from network); 11 May 1999 20:16:31 -0000
Received: from lohi.clinet.fi (root@194.100.0.7)
  by master.debian.org with SMTP; 11 May 1999 20:16:31 -0000
Received: from isil.lloke.dna.fi (root@isil.lloke.dna.fi [194.100.32.225])
	by lohi.clinet.fi (8.9.1/8.9.0) with ESMTP id XAA02092
	for <submit@bugs.debian.org>; Tue, 11 May 1999 23:25:13 +0300 (EEST)
Received: from anar.lloke.dna.fi (mail@anar.lloke.dna.fi [194.100.32.226]) by isil.lloke.dna.fi (8.7.6/8.7.3) with ESMTP id VAA17365 for <submit@bugs.debian.org>; Tue, 11 May 1999 21:18:36 +0300
Received: from rjs by anar.lloke.dna.fi with local (Exim 2.05 #1 (Debian))
	id 10hH7G-00009V-00; Tue, 11 May 1999 21:18:54 +0300
To: submit@bugs.debian.org
Subject: xterm hangs and may print something (using printerCommand)
From: rjs@isil.lloke.dna.fi (Riku Saikkonen)
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
Date: 11 May 1999 21:18:53 +0300
Message-ID: <873e131nci.fsf@anar.lloke.dna.fi>
Lines: 44
X-Mailer: Gnus v5.6.45/Emacs 20.3
Sender: Riku Saikkonen <rjs@anar.lloke.dna.fi>

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
---------------------------------------
Received: (at 37517-done) by bugs.debian.org; 2 Mar 2003 22:45:15 +0000
>From branden@deadbeast.net Sun Mar 02 16:45:15 2003
Return-path: <branden@deadbeast.net>
Received: from dhcp16621067.indy.rr.com (redwald.deadbeast.net) [24.166.21.67] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18pcCn-0004eV-00; Sun, 02 Mar 2003 16:45:13 -0600
Received: by redwald.deadbeast.net (Postfix, from userid 1000)
	id 1684164477; Sun,  2 Mar 2003 17:45:13 -0500 (EST)
Date: Sun, 2 Mar 2003 17:45:13 -0500
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
Message-ID: <20030302224512.GE10257@deadbeast.net>
References: <[🔎] 200303021917.h22JHkB09103@invisible-island.net>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="o0ZfoUVt4BxPQnbU"
Content-Disposition: inline
In-Reply-To: <[🔎] 200303021917.h22JHkB09103@invisible-island.net>
User-Agent: Mutt/1.5.3i
Delivered-To: 37517-done@bugs.debian.org
X-Spam-Status: No, hits=-3.7 required=4.0
	tests=IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,
	      SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_MUTT
	version=2.44
X-Spam-Level: 


--o0ZfoUVt4BxPQnbU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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
>=20
> this one should be closed, since it was addressed in patch #167.

Closing per upstream maintainer.

--=20
G. Branden Robinson                |
Debian GNU/Linux                   |      If encryption is outlawed, only
branden@debian.org                 |      outlaws will @goH7Ok=3D<q4fDj]Kz?.
http://people.debian.org/~branden/ |

--o0ZfoUVt4BxPQnbU
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iEYEARECAAYFAj5iiXgACgkQ6kxmHytGonye7wCeM6o7w1MEv1TlBoofptjTzTQP
NSIAnRLrrLItinjrQYN5eWVM6rKSpY8M
=gLVD
-----END PGP SIGNATURE-----

--o0ZfoUVt4BxPQnbU--



Reply to: