[Commotion-dev] Serval memory leaks

Dan Staples danstaples at opentechinstitute.org
Thu Oct 31 22:04:58 UTC 2013


At the international summit for community wireless networks last month,
we noticed on the Commotion network we set up that the Serval daemon,
and one of our own programs which uses the Serval library, were using up
an awful lot of memory and leading to OOM conditions in which the
routers rebooted periodically.

I noticed today, as I've been debugging our code that uses the Serval
library, that Valgrind reports quite a bit of leaked memory from a
single call to both keyring_open and keyring_enter_pin. 527,056 bytes
lost memory to be exact, stemming from malloc and calloc calls in those
functions. Perhaps this is our problem?

This was seen with both 0.90 and 0.91. I can send Valgrind output if
that would be helpful.

Dan

-- 
Dan Staples

Open Technology Institute
https://commotionwireless.net
OpenPGP key: http://disman.tl/pgp.asc
Fingerprint: 2480 095D 4B16 436F 35AB 7305 F670 74ED BD86 43A9


More information about the Commotion-dev mailing list