By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 2445 - tdekbdledsync memory leak
Summary: tdekbdledsync memory leak
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: tdebase (show other bugs)
Version: R14.0.x [Trinity]
Hardware: amd64 Linux
: P5 normal
Assignee: Timothy Pearson
URL:
Depends on:
Blocks: R14.0.5
  Show dependency treegraph
 
Reported: 2015-05-20 06:35 CDT by Nick Koretsky
Modified: 2018-06-21 09:33 CDT (History)
5 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments
valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all /opt/trinity/bin/tdekbdledsync (1.36 KB, text/x-log)
2015-05-20 06:35 CDT, Nick Koretsky
Details
valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all /opt/trinity/bin/tdekbdledsync (18.58 KB, text/x-log)
2015-05-20 06:41 CDT, Nick Koretsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Koretsky 2015-05-20 06:35:22 CDT
Created attachment 2509 [details]
valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all /opt/trinity/bin/tdekbdledsync

On one of my machines tdekbdledsync leak memory at a rate of ~5-10MB per day. I have four Debian Jessie/TDE 14.0.1-pre machines and only one exhibit this so this is probably something very unique to this machine configuration/usage. The only obvious related difference i can think of is that on this machine i switch keyboard layouts (setxkbmap -option grp:ctrl_shift_toggle) a lot, while on the other three very rarely.

Attached is output of valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all /opt/trinity/bin/tdekbdledsync
Comment 1 Nick Koretsky 2015-05-20 06:41:29 CDT
Created attachment 2510 [details]
valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all /opt/trinity/bin/tdekbdledsync
Comment 2 Timothy Pearson 2015-09-19 18:32:39 CDT
This looks like a memory leak within the Xorg libraries themselves, however the leaking call was not needed.  Potential fix committed in GIT hash a486f91 (tdebase), can you please check and see if the leak still exists?

Thanks!
Comment 3 Slávek Banko 2017-03-26 03:24:34 CDT
There are several new commits, which should reduce leaking memory - see GIT hashes ba2fe631 and 0a8417d4 in tdebase. Both are also backported to r14.0.x branch - updated packages are already available in Preliminary Stable Builds repository.
Comment 4 Slávek Banko 2017-04-16 05:32:38 CDT
Nick, please, can you confirm that the recent patches solve the problem? On my machine, I observe that it seems to be okay.
Comment 5 Nick Koretsky 2018-05-28 16:16:45 CDT
Oh, i totally forgot about this one. I disabled tdekbdledsync completely after finding out that it was responsible for not working grp_led on keyboard layouts switching...

I have allowed it to run for a few days now and there is no leak, on the other hand the system is now stretch so maybe whatever unique condition that caused this machine to leak is simply gone.

Anyway i cant reproduce the leak on 14.0.5~pre6 on stretch, so i think its safe to close it.
Comment 6 Slávek Banko 2018-05-29 08:34:56 CDT
I propose to close the bug as resolved.
Comment 7 Michele Calgaro 2018-06-21 09:32:37 CDT
I agree. Let's close it and eventually reopen it if the problem shows up again :-)