After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 357602 - gpilotd leaks memory
gpilotd leaks memory
Status: RESOLVED FIXED
Product: gnome-pilot
Classification: Other
Component: gpilotd
2.0.x
Other All
: Normal critical
: ---
Assigned To: gnome-pilot Maintainers
gnome-pilot Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-09-25 13:04 UTC by Arjan Oosting
Modified: 2006-09-27 21:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix for memory leak (517 bytes, patch)
2006-09-25 13:07 UTC, Arjan Oosting
none Details | Review

Description Arjan Oosting 2006-09-25 13:04:46 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:
Comment 1 Arjan Oosting 2006-09-25 13:07:34 UTC
Created attachment 73371 [details] [review]
fix for memory leak
Comment 2 Arjan Oosting 2006-09-25 13:09:12 UTC
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
Comment 3 Matt Davey 2006-09-27 21:02:34 UTC
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.