Closed Bug 1456007 Opened 6 years ago Closed 6 years ago

LSan: Direct leak from OrInsert /builds/worker/workspace/build/src/xpcom/ds/nsBaseHashtable.h:308

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID
Tracking Status
firefox61 --- affected

People

(Reporter: tsmith, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: memory-leak, testcase)

Attachments

(1 file)

Attached file testcase.html
Found with m-c:
BuildID=20180420091115
SourceStamp=cc0d7de218cb0c260c8ba0cf6637845ad2222f49

To reproduce open testcase and close it once it has loaded.

Direct leak of 14336 byte(s) in 448 object(s) allocated from:
    #0 0x4c1c93 in malloc moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:88:3
    #1 0x4f26fd in moz_xmalloc src/memory/mozalloc/mozalloc.cpp:70:17
    #2 0x7f663a9d3dec in operator new src/obj-firefox/dist/include/mozilla/mozalloc.h:156:12
    #3 0x7f663a9d3dec in operator() src/xpcom/components/nsComponentManager.cpp:489
    #4 0x7f663a9d3dec in OrInsert<(lambda at src/xpcom/components/nsComponentManager.cpp:489:20)> src/xpcom/ds/nsBaseHashtable.h:308
    #5 0x7f663a9d3dec in nsComponentManagerImpl::RegisterCIDEntryLocked(mozilla::Module::CIDEntry const*, nsComponentManagerImpl::KnownModule*) src/xpcom/components/nsComponentManager.cpp:489
    #6 0x7f663a9d302c in nsComponentManagerImpl::RegisterModule(mozilla::Module const*, mozilla::FileLocation*) src/xpcom/components/nsComponentManager.cpp:437:9
    #7 0x7f663a9d1529 in nsComponentManagerImpl::Init() src/xpcom/components/nsComponentManager.cpp:305:5
    #8 0x7f663aa7fe9e in NS_InitXPCOM2 src/xpcom/build/XPCOMInit.cpp:643:51
    #9 0x7f66465d36a3 in XRE_InitEmbedding2(nsIFile*, nsIFile*, nsIDirectoryServiceProvider*) src/toolkit/xre/nsEmbedFunctions.cpp:190:8
    #10 0x7f663b924cae in mozilla::ipc::ScopedXREEmbed::Start() src/ipc/glue/ScopedXREEmbed.cpp
    #11 0x7f6641bea878 in mozilla::dom::ContentProcess::Init(int, char**) src/dom/ipc/ContentProcess.cpp:223:13
    #12 0x7f66465d427f in XRE_InitChildProcess(int, char**, XREChildData const*) src/toolkit/xre/nsEmbedFunctions.cpp:695:21
    #13 0x4f1875 in content_process_main src/browser/app/../../ipc/contentproc/plugin-container.cpp:50:30
    #14 0x4f1875 in main src/browser/app/nsBrowserApp.cpp:280
    #15 0x7f665ab2982f in __libc_start_main /build/glibc-Cl5G7W/glibc-2.23/csu/../csu/libc-start.c:291
Flags: in-testsuite?
Wrong stack. Let me just start over.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
Yeah, the component manager stuff is intentionally leaked. That's supposed to be covered by the LSan white list.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: