GNOME Bugzilla – Bug 357602
gpilotd leaks memory
Last modified: 2006-09-27 21:02:34 UTC
Please describe the problem: Hi, A Debian user reported the following problem: I don't quite know how long this has been a problem, but I restarted my gnome-pilot panel applet the other day and ever since then the /usr/bin/gpilotd process has been chewing up memory like crazy. I haven't used it at all today (no hot-syncing activity), and it's been growing by 15MB per hour. I sampled it a couple of times over the course of the day: 1:warner@luther% date; ps aux |grep gpilotd Sun Sep 24 14:08:23 PDT 2006 warner 25743 0.0 3.0 56560 46928 ? S 11:20 0:00 /usr/bin/gpilotd --oaf-activate-iid=OAFIID:GNOME_Pilot_Daemon --oaf-ior-fd=53 warner 9029 0.0 0.0 1648 552 pts/6 S+ 14:08 0:00 grep gpilotd 2:warner@luther% 2:warner@luther% date; ps aux |grep gpilotd Sun Sep 24 18:02:38 PDT 2006 warner 25743 0.0 6.7 115564 105812 ? S 11:20 0:01 /usr/bin/gpilotd --oaf-activate-iid=OAFIID:GNOME_Pilot_Daemon --oaf-ior-fd=53 warner 27715 0.0 0.0 1640 500 pts/6 R+ 18:02 0:00 grep gpilotd 3:warner@luther% 3:warner@luther% date; ps aux |grep gpilotd Sun Sep 24 20:26:03 PDT 2006 warner 25743 0.0 9.0 150016 140296 ? S 11:20 0:01 /usr/bin/gpilotd --oaf-activate-iid=OAFIID:GNOME_Pilot_Daemon --oaf-ior-fd=53 warner 8803 0.0 0.0 1644 504 pts/6 R+ 20:26 0:00 grep gpilotd 4:warner@luther% 4:warner@luther% date; ps aux |grep gpilotd Sun Sep 24 22:17:42 PDT 2006 warner 25743 0.0 10.7 176812 167140 ? S 11:20 0:01 /usr/bin/gpilotd --oaf-activate-iid=OAFIID:GNOME_Pilot_Daemon --oaf-ior-fd=53 warner 17026 0.0 0.0 1644 504 pts/6 R+ 22:17 0:00 grep gpilotd 5:warner@luther% I've no idea quite what the problem is, but I'm submitting the bug in case other people run into this weird behavior and somebody can figure it out. cheers, -Brian Steps to reproduce: 1. run gpilotd for some time 2. 3. Actual results: gpilotd leaks memory Expected results: Does this happen every time? Other information:
Created attachment 73371 [details] [review] fix for memory leak
The Debian user also proposed a patch which fixes the memory leak. The complete bugreport is available on the Debian BTS, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=389333 Greetings Arjan
Applied patch to CVS. Please pass on thanks to the reporter for taking the time to find the cause of the leak and provide a patch.