Bug#291137: /usr/X11R6/bin/luit: luit sometimes doesn't restore terminal settings or hangs

2006-11-05 Thread Juliusz Chroboczek
I've just fixed this upstream.

Juliusz


pgpdsFjNFquic.pgp
Description: PGP signature


Bug#291137: /usr/X11R6/bin/luit: luit sometimes doesn't restore terminal settings or hangs

2005-12-14 Thread Maxim Kirillov
I confirm. The patch helps.

[EMAIL PROTECTED] -l xutils x11-common cpp libc6 libfreetype6 libfs6 zlib1g
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name   VersionDescription
+++-==-==-
ii  cpp4.0.1-3The GNU C preprocessor (cpp)
ii  libc6  2.3.5-6GNU C Library: Shared libraries and Timezone
ii  libfreetype6   2.1.7-2.4  FreeType 2 font engine, shared library files
ii  libfs6 6.8.2.dfsg.1-7 X Font Server library
ii  x11-common 6.8.2.dfsg.1-7 X Window System (X.Org) infrastructure
ii  xutils 6.8.2.dfsg.1-7 X Window System utility programs
ii  zlib1g 1.2.3-4compression library - runtime

To reproduce:

1)
$xrdb 

Bug#291137: /usr/X11R6/bin/luit: luit sometimes doesn't restore terminal settings or hangs

2005-01-20 Thread pcg
On Wed, Jan 19, 2005 at 02:58:44PM +0500, "Alexander E. Patrakov" <[EMAIL 
PROTECTED]> wrote:
> > 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.
> 
> Sounds suspiciously similar to this bug:
> 
> http://bugs.xfree86.org/show_bug.cgi?id=1093
> 
> Does the patch from there help?

Indeed, sounds very suspiciously like that bug (and thomas dickey stil
assumes that the race in ncurses is a bug elsehwere, argh).

I'll try to apply the patch and build luit, but cannot say when I am able
to do so :(

-- 
The choice of a
  -==- _GNU_
  ==-- _   generation Marc Lehmann
  ---==---(_)__  __   __  [EMAIL PROTECTED]
  --==---/ / _ \/ // /\ \/ /  http://schmorp.de/
  -=/_/_//_/\_,_/ /_/\_\  XX11-RIPE


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#291137: /usr/X11R6/bin/luit: luit sometimes doesn't restore terminal settings or hangs

2005-01-19 Thread Alexander E. Patrakov
Marc Lehmann wrote:

> 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.

Sounds suspiciously similar to this bug:

http://bugs.xfree86.org/show_bug.cgi?id=1093

Does the patch from there help?

-- 
Alexander E. Patrakov


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#291137: /usr/X11R6/bin/luit: luit sometimes doesn't restore terminal settings or hangs

2005-01-18 Thread Marc Lehmann
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<1;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 1 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 = ;
   eol2 = ; 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  libc62.3.2.ds1-20GNU 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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]