Bug 241525 - [GTK][WPE] 39 bytes leaked in WTR::TestController::platformConfigureViewForTest()
Summary: [GTK][WPE] 39 bytes leaked in WTR::TestController::platformConfigureViewForTe...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Claudio Saavedra
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-06-10 15:47 PDT by Claudio Saavedra
Modified: 2022-06-13 09:11 PDT (History)
4 users (show)

See Also:


Attachments
Patch (2.33 KB, patch)
2022-06-11 11:38 PDT, Claudio Saavedra
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Claudio Saavedra 2022-06-10 15:47:37 PDT
This is from the gtk build but the same bug is in WPE:

Indirect leak of 39 byte(s) in 1 object(s) allocated from:
    #0 0x7eff2c9e7a47 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.6+0xb8a47)
    #1 0x7eff02e14772 in bmalloc::DebugHeap::malloc(unsigned long, bmalloc::FailureAction) (/app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0+0x9e3e772)
    #2 0x7eff02e10cd0 in bmalloc::Cache::allocateSlowCaseNullCache(bmalloc::HeapKind, unsigned long) (/app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0+0x9e3acd0)
    #3 0x7eff02bb30c3 in bmalloc::Cache::allocate(bmalloc::HeapKind, unsigned long) (/app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0+0x9bdd0c3)
    #4 0x7eff02bb1b6b in WTF::fastMalloc(unsigned long) (/app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0+0x9bdbb6b)
    #5 0x7efefe423e63 in WTF::FastMalloc::malloc(unsigned long) (/app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0+0x544de63)
    #6 0x7eff02d8d5f9 in WTF::Ref<WTF::StringImpl, WTF::RawPtrTraits<WTF::StringImpl> > WTF::StringImpl::createUninitializedInternalNonEmpty<unsigned char>(unsigned int, unsigned char*&) (/app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0+0x9db75f9)
    #7 0x7eff02d8f213 in WTF::Ref<WTF::StringImpl, WTF::RawPtrTraits<WTF::StringImpl> > WTF::StringImpl::createInternal<unsigned char>(unsigned char const*, unsigned int) (/app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0+0x9db9213)
    #8 0x7eff02d7bd4c in WTF::StringImpl::create(unsigned char const*, unsigned int) (/app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0+0x9da5d4c)
    #9 0x7eff02dc76da in WTF::String WTF::fromUTF8Impl<false>(unsigned char const*, unsigned long) (/app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0+0x9df16da)
    #10 0x7eff02dc22b6 in WTF::String::fromUTF8(unsigned char const*, unsigned long) (/app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0+0x9dec2b6)
    #11 0x7eff02dc23ed in WTF::String::fromUTF8(unsigned char const*) (/app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0+0x9dec3ed)
    #12 0x7eff1b4a25a4 in WTF::String::fromUTF8(char const*) (/app/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.1.so.0+0x170015a4)
    #13 0x7eff1b84aeee in WKStringCreateWithUTF8CString (/app/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.1.so.0+0x173a9eee)
    #14 0x55defc976d87 in WTR::TestController::platformConfigureViewForTest(WTR::TestInvocation const&) (/app/webkit/WebKitBuild/Debug/bin/WebKitTestRunner+0xb73d87)
    #15 0x55defc89d3c1 in WTR::TestController::configureViewForTest(WTR::TestInvocation const&) (/app/webkit/WebKitBuild/Debug/bin/WebKitTestRunner+0xa9a3c1)
    #16 0x55defc91afe0 in WTR::TestInvocation::invoke() (/app/webkit/WebKitBuild/Debug/bin/WebKitTestRunner+0xb17fe0)
    #17 0x55defc89f40f in WTR::TestController::runTest(char const*) (/app/webkit/WebKitBuild/Debug/bin/WebKitTestRunner+0xa9c40f)
    #18 0x55defc89fb2b in WTR::TestController::run() (/app/webkit/WebKitBuild/Debug/bin/WebKitTestRunner+0xa9cb2b)
    #19 0x55defc89246d in WTR::TestController::TestController(int, char const**) (/app/webkit/WebKitBuild/Debug/bin/WebKitTestRunner+0xa8f46d)
    #20 0x55defc988a42 in main (/app/webkit/WebKitBuild/Debug/bin/WebKitTestRunner+0xb85a42)
    #21 0x7efef4495bbf in __libc_start_main (/usr/lib/x86_64-linux-gnu/libc.so.6+0x23bbf)
    #22 0x55defc87bdad in _start (/app/webkit/WebKitBuild/Debug/bin/WebKitTestRunner+0xa78dad)
Comment 1 Claudio Saavedra 2022-06-11 11:38:35 PDT
Created attachment 460182 [details]
Patch
Comment 2 EWS 2022-06-13 00:23:27 PDT
pnormand@igalia.com does not have reviewer permissions according to https://raw.githubusercontent.com/WebKit/WebKit/main/metadata/contributors.json.

Rejecting attachment 460182 [details] from commit queue.
Comment 3 EWS 2022-06-13 09:10:53 PDT
Committed r295489 (251494@main): <https://commits.webkit.org/251494@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 460182 [details].
Comment 4 Radar WebKit Bug Importer 2022-06-13 09:11:14 PDT
<rdar://problem/95030040>