[erlang-questions] Tracking memory leaks in NIF/Linkedin drivers with Valgrind (or anything else)

Sverker Eriksson <>
Mon Mar 18 19:09:15 CET 2013


You don't need the patched version if you run with valgrind option --show-possibly-lost=no.
This is what we do currently in our daily tests.


export VALGRIND_MISC_FLAGS="--suppressions=$ERL_TOP/erts/emulator/valgrind/suppress.standard --show-possibly-lost=no"

/Sverker


Zabrane Mickael wrote:
> Hi Lukas,
>
> Thanks for the clarifications.
>
> And is the OTP team is willing to share this Valgrind patch with the community?
>
> Regards,
> Zabrane
>
>
>
> On Mar 18, 2013, at 4:45 PM, Lukas Larsson wrote:
>
>   
>> Hello,
>>
>> use the suppress file in erts/emulator/valgrind/suppress.standard to remove many of the false positive errors. It will not remove all, but many of the extra errors you see. To remove all you have to use erts/emulator/valgrind/suppress.patched.3.6.0, but this requires a patched version of valgrind as the normal suppression syntax was not expressive enough for our needs.
>>
>> Lukas
>>     
>
>
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>   




More information about the erlang-questions mailing list