Bug 144433 - digikam-0.9.0-beta1 memory leak
Bug#: 144433 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: kde@gentoo.org Reported By: gentoo@nephros.org
Component: KDE
URL:  http://bugs.kde.org/show_bug.cgi?id=131277
Summary: digikam-0.9.0-beta1 memory leak
Keywords:  
Status Whiteboard: 
Opened: 2006-08-19 09:50 0000
Description:   Opened: 2006-08-19 09:50 0000
(at least) beta1 has a memory leak which causes swap space to fill up after
repeatedly using digikam.
The swapspace cannot be reclaimed after the program is exited which eventually
leads to OOM killing of random, innocent processes (in my case apache was
almost always the victim).
Details, workaround and fix can be found in the URL (upstream bugzilla) above.


diff to ebuild:
--- /usr/portage/media-gfx/digikam/digikam-0.9.0_beta1.ebuild   2006-08-13
18:26:04.000000000 +0200
+++ /usr/local/portage/media-gfx/digikam/digikam-0.9.0_beta1.ebuild    
2006-08-19 18:47:08.000000000 +0200
@@ -72,6 +72,8 @@
                local MAKE_DOC=$(echo "${LINGUAS} ${LANGS_DOC}" | fmt -w 1 |
sort | uniq -d | tr '\n' ' ')
                einfo "Enabling documentation for: en ${LANG_DOCS}"
        fi
+
+       epatch ${FILESDIR}/${PV}-memleak_fix.diff
 }

 src_compile(){

------- Comment #1 From Peter Gantner (a.k.a. nephros) 2006-08-19 09:51:11 0000 -------
Created an attachment (id=94615) [details]
patch with described upstream fix

------- Comment #2 From Ioannis Aslanidis 2006-08-22 05:57:41 0000 -------
Picking up.

------- Comment #3 From Ioannis Aslanidis 2006-08-22 06:10:52 0000 -------
Revision fixed in CVS. Thanks for reporting it.