[alsa-devel] memory leak in mmap ops

Takashi Iwai tiwai at suse.de
Tue Aug 2 07:57:10 CEST 2011


At Sat, 30 Jul 2011 11:15:41 +0800,
Scott Jiang wrote:
> 
> Hi all,
> 
> I found there is a memory leak about 128K every time in linux-2.6.34,
> but it doesn't exist in linux-3.0.

What does "every time" mean, and how did you detect it?

> If I use mmap ops in driver the bug will come out, while use copy ops
> no memory leak. This driver is based on asoc.
> I tested with aplay to play a wav file.
> Because there is a lot of changes in ALSA between 2.6.34 and 3.0, so
> can anyone who familiar with the change history tell me which patch
> has solved this bug?

I don't remember such a bug fix, so wonder whether it's the ALSA core
part or a driver-specific issue.  You can try other driver (e.g.
snd-dummy) to see whether the problem happens.


Takashi


More information about the Alsa-devel mailing list