Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 496462 - x11-terms/rxvt-unicode - buffer-on-clear patch causes missing output for top command
Summary: x11-terms/rxvt-unicode - buffer-on-clear patch causes missing output for top ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-30 03:03 UTC by Homer
Modified: 2020-12-07 17:13 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Homer 2013-12-30 03:03:08 UTC
urxvt built with USE="buffer-on-clear" causes the top command to lose its column header upon the first refresh. Normally the output would look like this:

top - 02:53:19 up 1 day,  2:53,  1 user,  load average: 0.05, 0.12, 0.22
Tasks: 198 total,   1 running, 196 sleeping,   0 stopped,   1 zombie
%Cpu(s):  3.5 us,  0.7 sy,  0.2 ni, 95.0 id,  0.6 wa,  0.0 hi,  0.1 si,  0.0 st
KiB Mem:   7839664 total,  7493684 used,   345980 free,   218700 buffers
KiB Swap: 12582908 total,        0 used, 12582908 free,  6157276 cached

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                       
    1 root      20   0    4244    608    520 S 0.000 0.008   0:01.81 init                          
    2 root      20   0       0      0      0 S 0.000 0.000   0:00.02 kthreadd                      
    3 root      20   0       0      0      0 S 0.000 0.000   0:00.60 ksoftirqd/0

Etc.

But in urxvt with the buffer-on-clear patch, the "PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND" line disappears after the first time top refreshes, and doesn't come back.

I assume this is just a small miscalculation of line numbers in urxvt, and can be easily fixed. I might even have a look myself, if I get time and someone else doesn't find it first.




Reproducible: Always

Steps to Reproduce:
1. USE="buffer-on-clear" emerge "=x11-terms/rxvt-unicode-9.18"
2. urxvt
3. top

Actual Results:  
Top's column header disappears after a refresh.

Expected Results:  
The column header should remain after a refresh.

Also affects 9.19.
Comment 1 Ferenc Erki 2015-03-04 02:19:42 UTC
Looks like applying the patch from https://gist.github.com/anonymous/2559054 instead of rxvt-unicode-9.14-clear.patch solves this issue. This alternative patch has been mentioned in the same thread (https://bbs.archlinux.org/viewtopic.php?id=129302) from where the current patch comes from.
Comment 2 Alex Efros 2017-03-25 14:46:27 UTC
(In reply to Ferenc Erki from comment #1)
> Looks like applying the patch from https://gist.github.com/anonymous/2559054
> instead of rxvt-unicode-9.14-clear.patch solves this issue. This alternative
> patch has been mentioned in the same thread
> (https://bbs.archlinux.org/viewtopic.php?id=129302) from where the current
> patch comes from.

I can confirm this issue. Alternative patch works ok.
Comment 3 Marek Szuba archtester gentoo-dev 2020-12-07 17:13:45 UTC
Patch long gone.