[Bug 460758] New: possible memory leak in gnome-panel
https://bugzilla.novell.com/show_bug.cgi?id=460758 Summary: possible memory leak in gnome-panel Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: GNOME AssignedTo: bnc-team-gnome@forge.provo.novell.com ReportedBy: sassmann@novell.com QAContact: qa@suse.de Found By: Development After an uptime of about 1 week gnome-panel uses a significant amount of memory (possibly a memory leak). PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND after 1 week of uptime 4724 sassmann 20 0 823m 422m 18m S 1 7.1 173:47.93 gnome-panel after restarting gnome-panel 9789 sassmann 20 0 115m 53m 36m S 0 7.3 0:00.46 gnome-panel I'll keep the machine running and see how this develops. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c1 Vincent Untz <vuntz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vuntz@novell.com Status|NEW |NEEDINFO Info Provider| |sassmann@novell.com --- Comment #1 from Vincent Untz <vuntz@novell.com> 2008-12-19 08:03:35 MST --- Can you run the panel in valgrind for a while so we can see what's going on there? It might be specific to an applet. Don't know. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User sassmann@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c2 --- Comment #2 from Stefan Assmann <sassmann@novell.com> 2008-12-19 08:08:58 MST --- I'll keep it running for some more time and then try what you suggest. This might take a while because of the upcoming holidays, please be patient. Thanks! :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c3 --- Comment #3 from Vincent Untz <vuntz@novell.com> 2008-12-19 08:35:49 MST --- Stefan: awesome, I'll be patient :-) Note that a good test could also be to run the panel with less applets to see if it comes from applets or not. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User sassmann@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c4 --- Comment #4 from Stefan Assmann <sassmann@novell.com> 2009-01-02 02:39:44 MST --- This is information from the same system 2 weeks after the initial post PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 4724 sassmann 20 0 1405m 938m 17m S 4 15.7 423:21.14 gnome-panel -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c5 --- Comment #5 from Vincent Untz <vuntz@novell.com> 2009-01-02 02:46:02 MST --- Stefan: did you do this with the exact same setup? Or did you remove some applets? I'd still need more information to know what's going on (and the only real solution would be a valgrind log) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User sassmann@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c6 --- Comment #6 from Stefan Assmann <sassmann@novell.com> 2009-01-02 02:56:20 MST --- ah you're around today, good ;-) I kept the original system running over the last to week changing nothing, this was still the very same gnome-panel that I mentioned in the initial post. Compare the PIDs. I just tried to run gnome-panel in valgrind, however everytime I kill gnome-panel it respawns. Do you know how I can disable that ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c7 --- Comment #7 from Vincent Untz <vuntz@novell.com> 2009-01-02 03:02:45 MST --- Ah, you need some developer black magic ;-) In 11.1, the best way to do this is... "pkill gnome-panel; pkill gnome-panel; pkill gnome-panel; pkill gnome-panel; pkill gnome-panel; pkill gnome-panel; pkill gnome-panel; pkill gnome-panel; pkill gnome-panel; " Yes. That's bad. But it works. It was better in GNOME 2.22 and it will be better in GNOME 2.26. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User sassmann@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c8 --- Comment #8 from Stefan Assmann <sassmann@novell.com> 2009-01-02 03:19:44 MST --- (In reply to comment #7 from Vincent Untz)
Ah, you need some developer black magic ;-) In 11.1, the best way to do this is... "pkill gnome-panel; pkill gnome-panel; pkill gnome-panel; pkill gnome-panel; pkill gnome-panel; pkill gnome-panel; pkill gnome-panel; pkill gnome-panel; pkill gnome-panel; "
lol Okay valgrind --log-file=/tmp/gnome-panel.valgrind gnome-panel is running. It's horribly slow but I'll try to keep working with it. How long should I run it ? btw, before I left for the holidays I installed an 11.1 on another machine and let it run in it's initial state. There seems to be no memory leak on that machine. Now if I compare that machine to my machine I have a strong feeling that it's the System Monitor which I have running on my machine that eats all the memory. Things that I have running additionally to that other machine - System Monitor - Workspace switcher - Logout buttons - Mini Commandline -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c9 --- Comment #9 from Vincent Untz <vuntz@novell.com> 2009-01-02 03:43:12 MST --- (In reply to comment #8 from Stefan Assmann)
Okay valgrind --log-file=/tmp/gnome-panel.valgrind gnome-panel is running. It's horribly slow but I'll try to keep working with it. How long should I run it ?
Well, if you can run it for a few days, that'd be great -- I know it's horribly slow, though, so I guess you'll stop it when you'll be really annoyed ;-)
btw, before I left for the holidays I installed an 11.1 on another machine and let it run in it's initial state. There seems to be no memory leak on that machine. Now if I compare that machine to my machine I have a strong feeling that it's the System Monitor which I have running on my machine that eats all the memory.
Things that I have running additionally to that other machine - System Monitor - Workspace switcher - Logout buttons - Mini Commandline
Hrm. The thing is that the only in-process applet is the workspace switcher (and the logout buttons). The commandline and system monitor applets are out-of-process, and so the leak shouldn't appear in gnome-panel for them. But I fail to see how the workspace switcher would leak for one person and not for the thousands of other people out there... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User sassmann@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c10 --- Comment #10 from Stefan Assmann <sassmann@novell.com> 2009-01-02 04:58:20 MST --- Created an attachment (id=262995) --> (https://bugzilla.novell.com/attachment.cgi?id=262995) gnome-panel.valgrind sorry, had to reboot my machine. Here's a valgrind trace that ran for approx. 2 hours. I'll do a longer one if that shouldn't be enough. Thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c11 --- Comment #11 from Vincent Untz <vuntz@novell.com> 2009-01-02 05:27:53 MST --- Stefan: that was enough, except that calling valgrind with --leak-check=full would really help ;-) Installing the debug packages of gnome-panel and some libraries (gtk+, glib at least) would also give interesting information, I think. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User sassmann@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c12 Stefan Assmann <sassmann@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #262995|0 |1 is obsolete| | --- Comment #12 from Stefan Assmann <sassmann@novell.com> 2009-01-02 08:02:11 MST --- Created an attachment (id=263015) --> (https://bugzilla.novell.com/attachment.cgi?id=263015) gnome-panel.valgrind new valgrind log with --leak-check=full and debuginfo installed -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User sassmann@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c13 Stefan Assmann <sassmann@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|sassmann@novell.com | --- Comment #13 from Stefan Assmann <sassmann@novell.com> 2009-01-02 08:03:11 MST --- In case you need anything else just tell me. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c14 --- Comment #14 from Vincent Untz <vuntz@novell.com> 2009-01-02 09:31:11 MST --- Okay, that's a leak in the system monitor applet, you were right :-) We apparently compile it in-process. I think I see where it is. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c15 Vincent Untz <vuntz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |sassmann@novell.com --- Comment #15 from Vincent Untz <vuntz@novell.com> 2009-01-05 05:07:13 MST --- Can you try the libgtop package from home:vuntz:11.1-testing in the build service? I'm unsure now if the patch fixes your issue since I can't reproduce the leak here. If it doesn't fix it, can you tell me what your system monitor applet is monitoring? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User sassmann@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c16 --- Comment #16 from Stefan Assmann <sassmann@novell.com> 2009-01-05 05:44:19 MST --- (In reply to comment #15 from Vincent Untz)
Can you try the libgtop package from home:vuntz:11.1-testing in the build service?
been there, installed that.
I'm unsure now if the patch fixes your issue since I can't reproduce the leak here.
If it doesn't fix it, can you tell me what your system monitor applet is monitoring?
Looks like it's still leaky somewhere. I monitor processor, memory, network, disk. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User sassmann@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c17 --- Comment #17 from Stefan Assmann <sassmann@novell.com> 2009-01-05 05:45:38 MST --- Created an attachment (id=263188) --> (https://bugzilla.novell.com/attachment.cgi?id=263188) gnome-panel.valgrind with updated libgtop -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c18 --- Comment #18 from Vincent Untz <vuntz@novell.com> 2009-01-05 05:58:44 MST --- Stefan: it looks less leaky, though. And some stuff is expected if you don't use "G_SLICE=always-malloc G_DEBUG=gc-friendly". Can you set those environment variables and try again? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User sassmann@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c19 --- Comment #19 from Stefan Assmann <sassmann@novell.com> 2009-01-05 06:19:18 MST --- (In reply to comment #18 from Vincent Untz)
Stefan: it looks less leaky, though.
I thought so too but didn't want to draw a hasty conclusion ;-)
And some stuff is expected if you don't use "G_SLICE=always-malloc G_DEBUG=gc-friendly". Can you set those environment variables and try again?
Uhm, okay if you say so. More of that developer black magic ;) Stay tuned... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c20 --- Comment #20 from Vincent Untz <vuntz@novell.com> 2009-01-05 06:24:06 MST --- (In reply to comment #19 from Stefan Assmann)
(In reply to comment #18 from Vincent Untz)
And some stuff is expected if you don't use "G_SLICE=always-malloc G_DEBUG=gc-friendly". Can you set those environment variables and try again?
Uhm, okay if you say so. More of that developer black magic ;) Stay tuned...
Heh, you can read http://live.gnome.org/Valgrind to get some background about all this. The important thing is G_SLICE=always-malloc, since glib, by default, handles memory allocations in a smart way that doesn't work well with valgrind. This env var tells glib to just use malloc, and not the smart way. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User sassmann@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c21 --- Comment #21 from Stefan Assmann <sassmann@novell.com> 2009-01-05 06:39:14 MST --- Created an attachment (id=263191) --> (https://bugzilla.novell.com/attachment.cgi?id=263191) G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind --log-file=/tmp/gnome-panel.valgrind --leak-check=full gnome-panel okay this looks nicer -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c22 Vincent Untz <vuntz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |http://bugzilla.gnome.org/show_bug.cgi?id=566611 Keywords| |should_go_upstream --- Comment #22 from Vincent Untz <vuntz@novell.com> 2009-01-05 07:06:48 MST --- Awesome. I sent the patch upstream: http://bugzilla.gnome.org/show_bug.cgi?id=566611 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c23 --- Comment #23 from Vincent Untz <vuntz@novell.com> 2009-01-05 07:07:07 MST --- Created an attachment (id=263194) --> (https://bugzilla.novell.com/attachment.cgi?id=263194) Patch -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c24 Vincent Untz <vuntz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Info Provider|sassmann@novell.com |ast@novell.com --- Comment #24 from Vincent Untz <vuntz@novell.com> 2009-01-05 07:08:07 MST --- Anja: can we get a swamp id for 11.1? The applet is not used by default, but the result of using it is quite bad. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User dmueller@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c25 Dirk Mueller <dmueller@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|ast@novell.com | --- Comment #25 from Dirk Mueller <dmueller@novell.com> 2009-01-05 08:18:37 MST --- please submit as part of the collective gnome update (MaintenanceTracker-21379) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=460758 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=460758#c26 Vincent Untz <vuntz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #26 from Vincent Untz <vuntz@novell.com> 2009-01-05 08:36:23 MST --- Submitted to oS:F, oS:11.1, and updated the swamp web form. I'm unsure if I filled it correctly since it's a collective update, though. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com