Hi Richard,
thanks for the files. I just gave them a try and using valgrind I could also see that there's a leak when a search timer update is run.
==4060== 452,152 (6,968 direct, 445,184 indirect) bytes in 134 blocks are definitely lost in loss record 287 of 287 ==4060== at 0x4024F20: malloc (vg_replace_malloc.c:236) ==4060== by 0x4C31C90: ??? ==4060== by 0x4C39596: ??? ==4060== by 0x4C9FCF2: ??? ==4060== by 0x8145D96: cThread::StartThread(cThread*) (thread.c:257) ==4060== by 0x406D96D: start_thread (pthread_create.c:300) ==4060== by 0x4342A4D: clone (clone.S:130)
But unfortunately valgrind does not give me the information where the leak is caused. Maybe the reason for this is that a search timer update runs in a separate thread or because plugins are dynamically loaded shared libraries? Has anybody an idea how to use valgrind in this case?
Cheers, Christian
Am 20.08.2011 18:13, schrieb Richard F:
On 21.08.2011 10:26, Christian Wieninger wrote:
http://www.e-tobi.net/blog/2006/04/30/speicherlecks-im-vdr-finden
You must keep the plugins loaded, otherwise you loose their symbol information.
Here's what I have in the Debian package to support this:
http://anonscm.debian.org/gitweb/?p=pkg-vdr-dvb/vdr.git;a=blob;f=debian/patc...
http://anonscm.debian.org/gitweb/?p=pkg-vdr-dvb/vdr.git;a=blob;f=debian/valg...
http://anonscm.debian.org/gitweb/?p=pkg-vdr-dvb/vdr.git;a=blob;f=debian/vdrl...
Tobias
Hi,
@Tobi: many thanks, worked like a charm!
@Richard: I've found a big leak besides some smaller ones and fixed them in the git. So please give it a try and let me know if it workes for you now.
Cheers, Christian
Am 21.08.2011 10:58, schrieb Tobi: