tiomap-dev team mailing list archive
-
tiomap-dev team
-
Mailing list archive
-
Message #00086
[Bug 569273] Re: memory leak in gnome-power-manager
from valgrinding the above test (not for the feint of heart I warn you)
the following results are observed;
==24310== 181,440 bytes in 180 blocks are possibly lost in loss record 3,196 of 3,198
==24310== at 0x4C2732A: memalign (vg_replace_malloc.c:581)
==24310== by 0x4C27383: posix_memalign (vg_replace_malloc.c:709)
==24310== by 0x7A04397: slab_allocator_alloc_chunk (gslice.c:1152)
==24310== by 0x7A04C58: g_slice_alloc (gslice.c:678)
==24310== by 0x7A04D35: g_slice_alloc0 (gslice.c:848)
==24310== by 0x54BA3DF: gdk_event_new (gdkevents.c:356)
==24310== by 0x54D1793: _gdk_make_event (gdkwindow.c:9882)
==24310== by 0x54D5F48: gdk_window_update_visibility (gdkwindow.c:828)
==24310== by 0x54D6148: recompute_visible_regions_internal (gdkwindow.c:1034)
==24310== by 0x54D64C0: set_viewable (gdkwindow.c:6675)
==24310== by 0x54D6489: set_viewable (gdkwindow.c:6683)
==24310== by 0x54D6489: set_viewable (gdkwindow.c:6683)
==24310==
==24310== 395,760 bytes in 97 blocks are possibly lost in loss record 3,197 of 3,198
==24310== at 0x4C2732A: memalign (vg_replace_malloc.c:581)
==24310== by 0x4C27383: posix_memalign (vg_replace_malloc.c:709)
==24310== by 0x7A04397: slab_allocator_alloc_chunk (gslice.c:1152)
==24310== by 0x7A04C58: g_slice_alloc (gslice.c:678)
==24310== by 0x7A04D35: g_slice_alloc0 (gslice.c:848)
==24310== by 0x7179ACA: g_type_create_instance (gtype.c:1867)
==24310== by 0x715C2D8: g_object_constructor (gobject.c:1482)
==24310== by 0x715B139: g_object_newv (gobject.c:1266)
==24310== by 0x715B86B: g_object_new (gobject.c:1178)
==24310== by 0x54DCEC3: gdk_window_new (gdkwindow.c:1330)
==24310== by 0x4F91561: gtk_menu_item_realize (gtkmenuitem.c:1189)
==24310== by 0x7155AFD: g_closure_invoke (gclosure.c:766)
This points to the problem being located in gslice in slab_allocator_alloc_chunk, there are other leaks in the gtkwindow but that isn't related to this bug.
--
memory leak in gnome-power-manager
https://bugs.launchpad.net/bugs/569273
You received this bug notification because you are a member of TI OMAP
Developers, which is a direct subscriber.
Status in Application Indicators: In Progress
Status in “gnome-power-manager” package in Ubuntu: New
Status in “indicator-application” package in Ubuntu: Triaged
Status in “gnome-power-manager” source package in Lucid: New
Status in “indicator-application” source package in Lucid: Triaged
Status in “gnome-power-manager” source package in Maverick: New
Status in “indicator-application” source package in Maverick: Triaged
Bug description:
TEST CASE: (at the beginning because it's a long post):
1. Monitor the output of the command for a few hours
$ watch -n1 'grep heap -A11 /proc/$( pidof gnome-power-manager )/smaps'
VERIFICATION SUCCEEDED:
- Memory usage is stable over time
DESCRIPTION:
Binary package hint: gnome-power-manager
gnome-power-manager (2.30.0-0ubuntu1) seems to have a memory leak my machine running Lucid. I witnessed it using up to 120MB in the RES column according to "top". My machine is 64 bit and is connected to a APC uninterruptible power supply. I haven't yet tried unplugging it to see if the UPS is somehow related to this problem. Another person reported a similar problem in bug #196688 comment 25. Opening a new bug seemed like a good idea since that bug was fixed 2 years ago.
Here is some information for what gnome-power-manager looks like after running for a long period of time (from /proc/`pidof gnome-power-manager`/smaps):
0147b000-08810000 rw-p 00000000 00:00 0 [heap]
Size: 118356 kB
Rss: 118188 kB
Pss: 118188 kB
Shared_Clean: 0 kB
Shared_Dirty: 0 kB
Private_Clean: 0 kB
Private_Dirty: 118188 kB
Referenced: 118020 kB
Swap: 0 kB
KernelPageSize: 4 kB
MMUPageSize: 4 kB
I rebooted my machine and let it sit at the login screen. I logged via ssh and found that gnome-power-manager was using the following:
01f6e000-02075000 rw-p 00000000 00:00 0 [heap]
Size: 1052 kB
Rss: 944 kB
Pss: 944 kB
Shared_Clean: 0 kB
Shared_Dirty: 0 kB
Private_Clean: 0 kB
Private_Dirty: 944 kB
Referenced: 944 kB
Swap: 0 kB
KernelPageSize: 4 kB
MMUPageSize: 4 kB
I logged out of my ssh session and didn't touch the machine until 5 and 1/2 hours later---and I logged in again remotely with ssh to check on gnome-power-manager and found:
01f6e000-02e5d000 rw-p 00000000 00:00 0 [heap]
Size: 15292 kB
Rss: 15280 kB
Pss: 15280 kB
Shared_Clean: 0 kB
Shared_Dirty: 0 kB
Private_Clean: 0 kB
Private_Dirty: 15280 kB
Referenced: 15280 kB
Swap: 0 kB
KernelPageSize: 4 kB
MMUPageSize: 4 kB
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: gnome-power-manager 2.30.0-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Fri Apr 23 22:23:32 2010
GnomeSessionIdleInhibited: No
GnomeSessionInhibitors: None
GnomeSessionSuspendInhibited: No
MachineType: DELL Inc. XPS 730X
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-21-generic root=UUID=e3f32a1f-7be3-45c9-9096-fa696ad50df3 ro quiet splash
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: gnome-power-manager
dmi.bios.date: 07/16/2009
dmi.bios.vendor: DELL INC.
dmi.bios.version: 1.0.5
dmi.board.name: 0P270J
dmi.board.vendor: DELL Inc.
dmi.board.version: A00
dmi.chassis.type: 3
dmi.chassis.vendor: DELL Inc.
dmi.modalias: dmi:bvnDELLINC.:bvr1.0.5:bd07/16/2009:svnDELLInc.:pnXPS730X:pvr00:rvnDELLInc.:rn0P270J:rvrA00:cvnDELLInc.:ct3:cvr:
dmi.product.name: XPS 730X
dmi.product.version: 00
dmi.sys.vendor: DELL Inc.