Automatic leak detection

33 views
Skip to first unread message

Anders Leino FI

unread,
Aug 11, 2021, 6:32:01 AM8/11/21
to memory-dev, Kenneth Russell

Hi everyone,

Background
I'm fixing some memory leaks in the Nvidia desktop driver (Windows and Linux) to address issues encountered in various chromium-related projects like Angle and Dawn.

Now I'm looking at adding some automatic testing to catch these kinds of issues early, and I have lots of questions about how to do that well.

Kenneth Russell recommended this group as a good place to ask these questions.


Questions
I'll just list a few of my questions to get the conversation started:
  • Do you have automatic leak detection tests running for any projects within chromium?
    • If so, can you point me to some of them?
    • If not, have you considered it?
      • What was the conclusion?

Ken Russell

unread,
Jul 7, 2022, 5:10:42 PM7/7/22
to Anders Leino FI, memory-dev
Hi memory-dev folks,

Is this the best list on which to ask this question? Only just realized we never received a reply. Pointers to other better forums welcome.

Thanks,

-Ken


Erik Chen

unread,
Jul 7, 2022, 5:29:20 PM7/7/22
to Ken Russell, Joe Mason, Bartek Nowierski, Ryan Heise, Anders Leino FI, memory-dev
Sorry about that -- this list doesn't get much activity these days so this probably got overlooked. 

There are two main categories of automated leak detection -- lab testing and field telemetry. +Joe Mason is probably the best PoC for field telemetry as I believe he just hooked up GPU process. I'm not sure who the best PoC is for lab testing these days. Maybe +Bartek Nowierski can help direct? We have LSAN bots that do some amount of leak detection, and IIRC we have some tests that navigate between web-pages and ensure that blink objects are cleaned up between runs. We also have generic telemetry performance tests that do memory measurements, maybe +Ryan Heise will be best PoC here.


--
You received this message because you are subscribed to the Google Groups "memory-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memory-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/memory-dev/CAMYvS2dzzexeOYFnOcvTWqoQ20DdxEPeourJoC_PnGYxYeVwBg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages