Debian Bug report logs -
#286063
screen: paste of a large block of text causes random data lost
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Adam Lazur <zal@debian.org>:
Bug#286063; Package screen.
(full text, mbox, link).
Acknowledgement sent to WU Fengguang <wfg@mail.ustc.edu.cn>:
New Bug report received and forwarded. Copy sent to Adam Lazur <zal@debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: screen
Version: 4.0.2-4.1
Severity: important
Hi!
When pasting a large block of text into screen, the X terminal
(rxvt-unicode/mlterm/xterm) will sometimes flicker a lot, with CPU usage
at 100% for scores of seconds. The pasted text is often shorter
than the origin one: some characters are lost.
Here is one example:
1. open /usr/src/linux-2.6.8/drivers/md/raid5.c in gedit
2. copy all the contents
3. paste them to screen using command 'cat > x' and mouse middle-click
4. compare the two files:
% diff x /usr/src/linux-2.6.8/drivers/md/raid5.c
478c478,479
< char b[BDEVNAME_SI = (raid5_conf_t *) mddev->private;
---
> char b[BDEVNAME_SIZE];
> raid5_conf_t *conf = (raid5_conf_t *) mddev->private;
Repeat step 3 and 4 normally gives different results.
Larger files tends to trigger this bug more often.
I was able to track down the source of flicker in screen, it lies here:
in process.c:DoProcess(p, bufp, lenp, pa)
if (*lenp == oldlen)
{
if (pa)
{
display = d;
return;
}
/* We're full, let's beep */
debug("layer is full - beep!\n");
WBell(p, visual_bell);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ this line causes the flicker
break;
}
I have tried pasting from different sources, like firefox/kedit/urxvt,
and the problem was still there.
When pasting large block of Chinese Simplified to screen,
screen tend to get the same corrupted text.
This bug is a very random one, probably you need a large enough file(>1MB) and
many retries to reproduce it.
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (990, 'testing'), (50, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-1-k7
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Versions of packages screen depends on:
ii base-passwd 3.5.7 Debian base system master password
ii debconf 1.4.30.10 Debian configuration management sy
ii libc6 2.3.2.ds1-19 GNU C Library: Shared libraries an
ii libncursesw5 5.4-4 Shared libraries for terminal hand
ii libpam0g 0.76-22 Pluggable Authentication Modules l
ii passwd 1:4.0.3-30.4 Change and administer password and
-- debconf information:
screen/old_upgrade_prompt: false
Information forwarded to debian-bugs-dist@lists.debian.org, Jan Christoph Nordholz <hesso@pool.math.tu-berlin.de>:
Bug#286063; Package screen.
(full text, mbox, link).
Acknowledgement sent to Baurzhan Ismagulov <ibr@radix50.net>:
Extra info received and forwarded to list. Copy sent to Jan Christoph Nordholz <hesso@pool.math.tu-berlin.de>.
(full text, mbox, link).
Message #10 received at 286063@bugs.debian.org (full text, mbox, reply):
Yes, I have this problem almost all the time, and it's very annoying if
one doesn't notice that something has been lost.
In the meantime, I have to use C-a > to save the buffer to the
filesystem.
With kind regards,
--
Baurzhan Ismagulov
http://www.kz-easy.com/
Merged 286063 524189.
Request was from Kenyon Ralph <kenyon@kenyonralph.com>
to control@bugs.debian.org.
(Sun, 28 Jun 2009 18:03:03 GMT) (full text, mbox, link).
Added tag(s) confirmed.
Request was from Axel Beckert <abe@debian.org>
to control@bugs.debian.org.
(Wed, 12 Oct 2011 23:27:10 GMT) (full text, mbox, link).
Added tag(s) upstream.
Request was from Axel Beckert <abe@debian.org>
to control@bugs.debian.org.
(Sun, 25 Mar 2012 11:30:27 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed Aug 23 21:33:42 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.