Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 165809 - net-p2p/ktorrent-2.1_rc1 memory leak
Summary: net-p2p/ktorrent-2.1_rc1 memory leak
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Highest major (vote)
Assignee: Ioannis Aslanidis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 165674
Blocks:
  Show dependency tree
 
Reported: 2007-02-07 19:21 UTC by Thomas Oleksa
Modified: 2007-03-07 19:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Oleksa 2007-02-07 19:21:08 UTC
I started Ktorrent about midnight, it takes 3-4% memory (i have 1GB + 2GB swap :) ), when i woke up, memory usage was about 53%, and after killall ktorrent it grows to 93% and almost hangs my system.
Previous versions works correct, but 2.1_rc1 takes too much memory each time when it's works a little longer.

Reproducible: Always

Steps to Reproduce:
1. Run Ktorrent on default config
2. Keep it working for a few hours :)

Actual Results:  
Memory leaking :]

Expected Results:  
Memory usage about 3-4%

Gentoo with _very_ safe cflags, no ldflags, arch i686, gcc 4.1.1-r3, kde-3.5.6, gentoo-sources-2.6.17-r5, xorg-server-1.2.0
Sempron2800+@2400, 1024DDR, GF 66GT, 2xSATAn Hdd's :)
Comment 1 Ioannis Aslanidis (RETIRED) gentoo-dev 2007-02-07 22:27:54 UTC
I'll have a good look at this one this weekend.
Comment 2 Tim Cole 2007-02-10 02:48:01 UTC
I have also experienced this bug. When killing the application, it begins to chew memory at an extremely fast pace. Exhausting main memory and swap in less than a minute. It does not happen every time for me so it is hard to get any debugging info.
Comment 3 Ioannis Aslanidis (RETIRED) gentoo-dev 2007-02-10 23:08:00 UTC
Is the leak reproducible under net-p2p/ktorrent-2.1?
Comment 4 Thomas Oleksa 2007-02-19 13:57:09 UTC
Yes, morning I launched Ktorrent-2.1, as always I took 3% of ram. About midday grews to 11% and CPU usage was 99%. Fortunely killall ktorrent didn't hang comp :)
Comment 5 Ioannis Aslanidis (RETIRED) gentoo-dev 2007-02-19 15:43:21 UTC
Reopening on confirmation.
Comment 6 Ioannis Aslanidis (RETIRED) gentoo-dev 2007-02-19 15:49:11 UTC
Please, check that this bug does not correspond to:

http://bugs.kde.org/show_bug.cgi?id=141483


Otherwise, please, fill a bug with all the information gathered and a detailed description of how it happens at http://bugs.kde.org/

Once done, please provide the bug URL.

All reported memory leaks were presumably fixed already.

Thank you.
Comment 7 Thomas Oleksa 2007-02-19 23:11:43 UTC
One more thing, I tested some versions, 2.0.2 is ok, but in 2.0.3 also grows mem. usage.
Comment 8 Ioannis Aslanidis (RETIRED) gentoo-dev 2007-03-03 15:31:17 UTC
Upstream will handle that.
Comment 9 Thomas Oleksa 2007-03-07 19:29:29 UTC
I've changed kernel to 2.6.20-morph6 and done huge sys-upgrade, after this Ktorrent takes 5-9% (it changes up and down but not more than 9%)

I'll test it for a few days, but after upgrade everything works fine since 2 days :)