Closed Bug 979928 Opened 11 years ago Closed 3 years ago

[meta] WebRTC leaks detected by Leak Sanitizer

Categories

(Core :: WebRTC, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mccr8, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Keywords: memory-leak, meta, Whiteboard: [lsan])

Attachments

(2 files)

I'd say about 95% of the leaks that LSAN finds on crash tests are from WebRTC. It would be good to investigate some of that. To do an LSAN run, make an ASAN build, then run with ASAN_OPTIONS="detect_leaks=1". Note that there are some existing known leaks in an LSAN suppression file: https://code.google.com/p/webrtc/source/browse/trunk/tools/lsan/suppressions.txt The log that was produced from crash tests is: https://bug976414.bugzilla.mozilla.org/attachment.cgi?id=8386177
Major leak is of VoiceEngineImpls due to missing Release() calls in MediaEngineWebRTC. Fixing those locally has exposed that we don't reliably release MediaEngineWebRTCAudioSource objects (sometimes yes, sometimes no). Losing the VoiceEngineImpl has a huge cascade effect Opt builds may expose an issue with a race condition in shutdown; not verified yet (pure virtual crash dereferencing clock_)
Assignee: nobody → rjesup
Keywords: mlk
Whiteboard: [lsan][MemShrink] → [lsan]
Depends on: 1000539
Depends on: 1021328
Depends on: 1021335
Summary: Do something about WebRTC leaks detected by Leak Sanitizer → WebRTC leaks detected by Leak Sanitizer
Attached file updated M2 leaks
Attached file updated M3 leaks
Depends on: 1055154
Depends on: 1055910
Depends on: 1055852
Depends on: 1057808
Depends on: 1058331
Keywords: meta
Summary: WebRTC leaks detected by Leak Sanitizer → [meta] WebRTC leaks detected by Leak Sanitizer
Assignee: rjesup → nobody

not used anymore, closing

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: