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

Bug#291137: marked as done (/usr/X11R6/bin/luit: luit sometimes doesn't restore terminal settings or hangs)



Your message dated Mon, 06 Nov 2006 20:18:09 -0800
with message-id <E1GhIPZ-0002xg-Ce@spohr.debian.org>
and subject line Bug#291137: fixed in xutils 1:7.1.ds.3-1
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)

--- Begin Message ---
Package: xutils
Version: 4.3.0.dfsg.1-10
Severity: normal
File: /usr/X11R6/bin/luit


luit sometimes doesn't restore terminal settings corretcly, which results
in echo and other flags being turned off.

example:

   luit echo foo

results in echo turned off (no typed input being seen). It doesn't happen
deterministically and seems to be completely independent of the locale and
the program.

The following script demonstrates it on my system:

   #!/usr/bin/bash

   stty sane
   for((i=0;i<10000;i++)); do
      stty -a >/tmp/a
      luit echo -n
      stty -a >/tmp/b
      stty sane
      diff -u a b
   done

This shows a difference in roughly 33 of 10000 tries on my system, but
statistics vary. The diff is like this:

   --- a   2005-01-19 00:08:00.806405713 +0100
   +++ b   2005-01-19 00:08:00.810404774 +0100
   @@ -1,10 +1,11 @@
   speed 38400 baud; rows 35; columns 142; line = 208;
   intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
   eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
   -lnext = ^V; flush = ^O; min = 1; time = 0;
   +lnext = ^V; flush = ^O; min = 0; time = 0;
   -parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
   --ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -ixon -ixoff
   +-ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff
   -iuclc -ixany imaxbel
   -opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
   -isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
   +opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
   +ff0
   +-isig -icanon iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
   echoctl echoke

Sometimes, luit will hang completely. Attaching strace to luit in this
case gives the following output:

   Process 14230 attached - interrupt to quit
   write(2, "Couldn\'t copy terminal settings\n", 32) = 32
   exit_group(1)                           = ?
   Process 14230 detached

and exits. It looks like there is a race condition inside luit. It is
likely an upstream issue because similar behaviour can be demonstrated ona
fedora 3 system.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (700, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages xutils depends on:
ii  cpp                      4:3.3.5-1       The GNU C preprocessor (cpp)
hi  libc6                    2.3.2.ds1-20    GNU C Library: Shared libraries an
ii  libncurses5              5.4-4           Shared libraries for terminal hand
ii  xfree86-common           4.3.0.dfsg.1-10 X Window System (XFree86) infrastr
ii  zlib1g                   1:1.2.2-3       compression library - runtime

-- no debconf information


--- End Message ---
--- Begin Message ---
Source: xutils
Source-Version: 1:7.1.ds.3-1

We believe that the bug you reported is fixed in the latest version of
xutils, which is due to be installed in the Debian FTP archive:

xutils_7.1.ds.3-1.diff.gz
  to pool/main/x/xutils/xutils_7.1.ds.3-1.diff.gz
xutils_7.1.ds.3-1.dsc
  to pool/main/x/xutils/xutils_7.1.ds.3-1.dsc
xutils_7.1.ds.3-1_i386.deb
  to pool/main/x/xutils/xutils_7.1.ds.3-1_i386.deb
xutils_7.1.ds.3.orig.tar.gz
  to pool/main/x/xutils/xutils_7.1.ds.3.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 291137@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
David Nusinow <dnusinow@debian.org> (supplier of updated xutils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon,  6 Nov 2006 22:40:47 -0500
Source: xutils
Binary: xutils
Architecture: source i386
Version: 1:7.1.ds.3-1
Distribution: unstable
Urgency: low
Maintainer: David Nusinow <dnusinow@debian.org>
Changed-By: David Nusinow <dnusinow@debian.org>
Description: 
 xutils     - X Window System utility programs
Closes: 291137 369419 389733 396507
Changes: 
 xutils (1:7.1.ds.3-1) unstable; urgency=low
 .
   [ Julien Cristau ]
   * Add patch from upstream git to fix race condition in luit (closes:
     #291137).  Thanks, Juliusz Chroboczek!
   * Add rgb to this package, as requested by
     David Madore <david.madore@ens.fr> (closes: #389733).
   * Actually install fontname and fontprop without the .sh suffix, not in a
     subdir under /usr/bin (closes: #396507).
   * Fix path to locale.alias file in luit (closes: #369419).
Files: 
 946d8db94343f6ce8f287741f56eccff 858 x11 optional xutils_7.1.ds.3-1.dsc
 31d23d8b69dcaf69eb3795cff091d992 841200 x11 optional xutils_7.1.ds.3.orig.tar.gz
 9fa0d3013597e821234a3e3e8b903abc 21546 x11 optional xutils_7.1.ds.3-1.diff.gz
 3b0d06bd1b815e487d81cb65ae5b1f51 67088 x11 optional xutils_7.1.ds.3-1_i386.deb

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

iD8DBQFFUAZVyLfpNdY0ad8RAq72AJ0WYWUt8Pzrx9pNq02hgmhmIHZ1LACggmNs
MgmKriIGXdH6wzjoIRX9tDE=
=xAYh
-----END PGP SIGNATURE-----


--- End Message ---

Reply to: