Bug 447080

Summary: Review Request: gmemusage - Graphical memory usage viewer
Product: [Fedora] Fedora Reporter: Mohd Izhar Firdaus Ismail <mohd.izhar.firdaus>
Component: Package ReviewAssignee: Peter Lemenkov <lemenkov>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: anshu.pg, fedora-package-review, notting, surenkarapetyan
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-06 07:14:54 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Bug Depends On:    
Bug Blocks: 201449    
Attachments:
Description Flags
Gmemusage in use screenshot
none
Gmemusage in use screenshot none

Description Mohd Izhar Firdaus Ismail 2008-05-17 14:09:19 EDT
Spec URL: http://izhar.fedorapeople.org/gmemusage/gmemusage.spec
SRPM URL: http://izhar.fedorapeople.org/gmemusage/gmemusage-0.2-1.fc9.src.rpm
Description: 
The gmemusage tool provides a graphical memory display
of the programs running on your computer. The original
version of gmemusage was provided on IRIX.
Comment 1 Peter Lemenkov 2008-05-18 02:06:50 EDT
I'll reviev it.
Comment 2 Suren Karapetyan 2008-05-18 03:52:03 EDT
Looks like RPM_OPT_FLAGS doesn't get into CFLAGS.
Maybe "export CFLAGS=$RPM_OPT_FLAGS" in specfile and modify the makefile patch
to make it use exported CFLAGS?
Comment 3 Peter Lemenkov 2008-05-19 08:08:26 EDT
Also you need to remove -L/usr/X11R6/lib.

The best way to fix Mfkefile params is to use conditional assignment. For example

CFLAGS ?= -Wall 

This means "if no CFLAGS specified, then assign -Wall, instead use specified
value". 

After that invoke 'make' as following:

CFLAGS="%{optflags} -DWHATEVER_YOU_NEED" make %{smp_flags}
Comment 4 Anshuman 2008-05-23 04:39:03 EDT
Created attachment 306455 [details]
Gmemusage in use screenshot 

Just showing how it looks at Fedora 9.
Comment 5 Anshuman 2008-05-23 06:05:24 EDT
Created attachment 306472 [details]
Gmemusage in use screenshot
Comment 6 Peter Lemenkov 2008-05-24 14:46:03 EDT
Ping.
Comment 7 Mohd Izhar Firdaus Ismail 2008-05-24 15:15:34 EDT
Sorry for the delay, was having a rather busy week .. 

exporting RPM CFLAGS caused the tool to end up with this error. Possibly due to
fortify_source directives .. 

*** stack smashing detected ***: gmemusage terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x48)[0x914ce8]
/lib/libc.so.6(__fortify_fail+0x0)[0x914ca0]
gmemusage[0x804acaa]
gmemusage[0x8049608]
gmemusage[0x804a53a]
/lib/libc.so.6(__libc_start_main+0xe6)[0x8345d6]
gmemusage[0x80492b1]
======= Memory map: ========
00110000-00111000 r-xp 00110000 00:00 0          [vdso]
00144000-00151000 r-xp 00000000 fd:02 525015     /lib/libgcc_s-4.3.0-20080428.so.1
00151000-00152000 rw-p 0000c000 fd:02 525015     /lib/libgcc_s-4.3.0-20080428.so.1
007fe000-0081a000 r-xp 00000000 fd:02 524370     /lib/ld-2.8.so
0081a000-0081b000 r--p 0001c000 fd:02 524370     /lib/ld-2.8.so
0081b000-0081c000 rw-p 0001d000 fd:02 524370     /lib/ld-2.8.so
0081e000-00981000 r-xp 00000000 fd:02 524433     /lib/libc-2.8.so
00981000-00983000 r--p 00163000 fd:02 524433     /lib/libc-2.8.so
00983000-00984000 rw-p 00165000 fd:02 524433     /lib/libc-2.8.so
00984000-00987000 rw-p 00984000 00:00 0 
009b4000-009b7000 r-xp 00000000 fd:02 524476     /lib/libdl-2.8.so
009b7000-009b8000 r--p 00002000 fd:02 524476     /lib/libdl-2.8.so
009b8000-009b9000 rw-p 00003000 fd:02 524476     /lib/libdl-2.8.so
00af9000-00afb000 r-xp 00000000 fd:02 45219      /usr/lib/libXau.so.6.0.0
00afb000-00afc000 rw-p 00001000 fd:02 45219      /usr/lib/libXau.so.6.0.0
00afe000-00b19000 r-xp 00000000 fd:02 45981      /usr/lib/libxcb.so.1.0.0
00b19000-00b1a000 rw-p 0001a000 fd:02 45981      /usr/lib/libxcb.so.1.0.0
00b1c000-00c19000 r-xp 00000000 fd:02 46038      /usr/lib/libX11.so.6.2.0
00c19000-00c1d000 rw-p 000fc000 fd:02 46038      /usr/lib/libX11.so.6.2.0
00c1f000-00c20000 r-xp 00000000 fd:02 46036      /usr/lib/libxcb-xlib.so.0.0.0
00c20000-00c21000 rw-p 00000000 fd:02 46036      /usr/lib/libxcb-xlib.so.0.0.0
00c23000-00c28000 r-xp 00000000 fd:02 45939      /usr/lib/libXdmcp.so.6.0.0
00c28000-00c29000 rw-p 00004000 fd:02 45939      /usr/lib/libXdmcp.so.6.0.0
00d9a000-00da2000 r-xp 00000000 fd:02 46039      /usr/lib/libXrender.so.1.3.0
00da2000-00da3000 rw-p 00007000 fd:02 46039      /usr/lib/libXrender.so.1.3.0
00db4000-00dbd000 r-xp 00000000 fd:02 46082      /usr/lib/libXcursor.so.1.0.2
00dbd000-00dbe000 rw-p 00008000 fd:02 46082      /usr/lib/libXcursor.so.1.0.2
00dc0000-00dc4000 r-xp 00000000 fd:02 46080      /usr/lib/libXfixes.so.3.1.0
00dc4000-00dc5000 rw-p 00003000 fd:02 46080      /usr/lib/libXfixes.so.3.1.0
08048000-0804c000 r-xp 00000000 fd:02 34258      /usr/bin/gmemusage
0804c000-0804d000 rw-p 00004000 fd:02 34258      /usr/bin/gmemusage
08329000-0834a000 rw-p 08329000 00:00 0          [heap]
b7f40000-b7f43000 rw-p b7f40000 00:00 0 
bfd47000-bfd5c000 rw-p bffeb000 00:00 0          [stack]

any idea to resolve it?
Comment 8 Peter Lemenkov 2008-05-24 15:19:51 EDT
Firstly we need to send it upstream :).

I'll try to reproduce this issue also.
Comment 9 Mohd Izhar Firdaus Ismail 2008-05-24 15:24:45 EDT
the srpm is here

http://izhar.fedorapeople.org/gmemusage/gmemusage-0.2-2.fc9.src.rpm

not sure whether upstream is still alive though .. but i'll try contacting anyway
Comment 10 Mohd Izhar Firdaus Ismail 2008-05-28 04:12:12 EDT
the Mailing list is dead and same goes to the author's email.

I guess this software no longer maintained .. 

hurm .......
Comment 11 Mohd Izhar Firdaus Ismail 2008-07-06 07:14:54 EDT
upstream is dead, and I don't know what to fix in the code.

closing as WONTFIX