After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 566670 - curses corruption in terminals using libvte
curses corruption in terminals using libvte
Status: RESOLVED DUPLICATE of bug 572230
Product: vte
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-01-05 19:53 UTC by Bryan christ
Modified: 2010-03-02 19:31 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Artifacts appear just after openening the terminal window (30.33 KB, image/png)
2009-01-26 18:07 UTC, Bryan christ
Details
Severe corruption after running "ps aux" in VWM pty (144.35 KB, image/png)
2009-01-26 18:08 UTC, Bryan christ
Details
Corrupted aptitude display in gnome-terminal (106.80 KB, image/png)
2009-03-02 14:57 UTC, antony.shen
Details
Corrupted mc display in gnome-terminal (86.90 KB, image/png)
2009-03-02 14:58 UTC, antony.shen
Details

Description Bryan christ 2009-01-05 19:53:58 UTC
When running the application VWM in Gnome Terminal or Terminal (xfce), the terminal curses rendering becomes corrupt.

1.  This happens on Fedora 10.
2.  Does not happen on Fedora 8 or 9.
3.  Does not happen on rxvt or xterm (neither use libvte)
4.  Problem does not happen on a standard Linux tty (again, not using libvte)

Package included in Fedora 10 is vte-0.17.4-1.fc10.x86_64

Strangely, the version of the lib is 9.3.3... 

lrwxrwxrwx  1 root root       15 2009-01-05 13:30 libvte.so -> libvte.so.9.3.3
lrwxrwxrwx  1 root root       15 2008-11-04 10:32 libvte.so.9 -> libvte.so.9.3.3
-rwxr-xr-x  1 root root  1234896 2008-09-22 18:18 libvte.so.9.3.3

Steps to reproduce:

1.  Install VWM from sources on Fedora 10.
2.  Running VWM in a terminal using libvte.
3.  Open an terminal shell (in VWM).
4.  Run a simple command like "ps aux"
Comment 1 Christian Persch 2009-01-20 18:55:31 UTC
Most likely a duplicate of bug 127870. Please try with vte >= 0.19.4 ; does that fix it?

Also comment 0 is not clear enough: what's the "VWM" application ?
Comment 2 Bryan christ 2009-01-21 18:49:01 UTC
I'll compile the latest stable vte from source and see if the problem goes away.  Here is a URL for VWM...

http://vwm.sourceforge.net

Comment 3 Bryan christ 2009-01-22 16:49:04 UTC
Christian,

Can you explain to me how to force configure to build install targets for /usr/lib64... by default it is placing them in /usr/lib.  I have modified the Makefile so that libdir = ${exec_prefix}/lib64 but that does not seem to help.  I suppose I could manually copy over the shared objects and symlinks from /usr/lib but that doesn't seem clean.  Here is what I pass to configure...

./configure CFLAGS="-march=x86-64" --prefix=/usr
Comment 4 Christian Persch 2009-01-22 16:54:01 UTC
Tried passing --libdir=/usr/lib64 to configure ? You shouldn't build experimental software into /usr btw.
Comment 5 Bryan christ 2009-01-22 17:10:54 UTC
It installed correctly with:

/configure CFLAGS="-march=x86-64" --prefix=/usr --libdir=/usr/lib64

and I test the problem which still persists.
Comment 6 Bryan christ 2009-01-22 17:12:18 UTC
"you shouldn't build experimental software into /usr btw"

As a software developer myself, yes, I know this... but sometimes I like to live on the edge :)
Comment 7 Peter Alfredsen 2009-01-26 17:55:05 UTC
I'm also seeing this with rtorrent (ncurses-based). Vte 0.17.4-r3 on Gentoo. When rtorrent updates the current speed figure for a torrent, sometimes a character 'drops off' in column alignment and is placed leftmost on the screen, though in the right row.
Comment 8 Bryan christ 2009-01-26 18:02:39 UTC
I would reiterate that this did not happen with any of the libvte versions included in Fedora 8 or Fedora 9.  I will post a screenshot of the problem.
Comment 9 Bryan christ 2009-01-26 18:07:33 UTC
Created attachment 127270 [details]
Artifacts appear just after openening the terminal window
Comment 10 Bryan christ 2009-01-26 18:08:39 UTC
Created attachment 127271 [details]
Severe corruption after running "ps aux" in VWM pty
Comment 11 Bryan christ 2009-01-26 18:10:09 UTC
Based on comment #7 and my experience, I would say that this has something to do with how right-handed bounds are handled.
Comment 12 antony.shen 2009-03-02 14:53:58 UTC
I am using Ubuntu 9.04 alpha4, same corruption occurs when running midnight commander (mc) and aptitude via gnome-terminal, another terminal app using libvte. The version of libvte is 0.19.4.
Comment 13 antony.shen 2009-03-02 14:57:59 UTC
Created attachment 129854 [details]
Corrupted aptitude display in gnome-terminal
Comment 14 antony.shen 2009-03-02 14:58:45 UTC
Created attachment 129855 [details]
Corrupted mc display in gnome-terminal
Comment 15 Luca Bruno 2010-02-28 08:51:45 UTC
This might be related to this: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=525507.
Look at the test case: http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10;filename=test.c;att=1;bug=525507
Also consider that using move(0,0) after the first mvaddstr call fixes the problem. It's like gnome-terminal/vte is doing something trickky on cursor movement.
Comment 16 Behdad Esfahbod 2010-03-02 19:31:14 UTC
Pretty sure I've fixed this in vte.

*** This bug has been marked as a duplicate of bug 572230 ***