[Commotion-dev] [serval-project-dev] Serval memory leaks

Dan Staples danstaples at opentechinstitute.org
Thu Oct 31 22:33:12 UTC 2013


It has one key :)

On Thu 31 Oct 2013 06:17:28 PM EDT, Jeremy Lakeman wrote:
> 500k is a lot, how large is your keyring?
>
>
> On Fri, Nov 1, 2013 at 8:34 AM, Dan Staples
> <danstaples at opentechinstitute.org
> <mailto:danstaples at opentechinstitute.org>> wrote:
>
>     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
>
>     --
>     You received this message because you are subscribed to the Google
>     Groups "Serval Project Developers" group.
>     To unsubscribe from this group and stop receiving emails from it,
>     send an email to
>     serval-project-developers+unsubscribe at googlegroups.com
>     <mailto:serval-project-developers%2Bunsubscribe at googlegroups.com>.
>     To post to this group, send email to
>     serval-project-developers at googlegroups.com
>     <mailto:serval-project-developers at googlegroups.com>.
>     Visit this group at
>     http://groups.google.com/group/serval-project-developers.
>     For more options, visit https://groups.google.com/groups/opt_out.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Serval Project Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to serval-project-developers+unsubscribe at googlegroups.com.
> To post to this group, send email to
> serval-project-developers at googlegroups.com.
> Visit this group at
> http://groups.google.com/group/serval-project-developers.
> For more options, visit https://groups.google.com/groups/opt_out.

--
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