[Mesa-dev] [Bug 98281] 'message's in ctx->Debug.LogMessages[] seem to leak.
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Oct 17 14:32:03 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=98281
--- Comment #4 from Eero Tamminen <eero.t.tamminen at intel.com> ---
(In reply to Suzuki, Shinji from comment #2)
> The amount of memory being in use may be bounded. But I believe there are
> blocks that don't get released until process termination. Having unreleased
> memory brings bad user experience to users of valgrind or any kind of memory
> debugging tools.
While libraries should not leak even in their destroy/exit functions... If you
just want to debug run-time leaks instead of things leaked in the application
termination procedure, there's a way to do that with Valgrind.
Just terminate the program with a signal that Valgrind can catch, but the
program itself doesn't (e.g. SIGBUS, SIGXCPU or SIGTRAP are rarely caught by
programs, but Valgrind catches etc). That way program's termination code (and
any library functions called by it) cannot leak memory, and Valgrind will list
only leaks happening during normal run-time.
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161017/63181f77/attachment.html>
More information about the mesa-dev
mailing list