WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
276715
[Skia] Pixmap leaks
https://bugs.webkit.org/show_bug.cgi?id=276715
Summary
[Skia] Pixmap leaks
Philippe Normand
Reported
2024-07-17 07:15:25 PDT
Load the linked page (no need to click on the buttons). ================================================================= ==1180216==ERROR: LeakSanitizer: detected memory leaks Direct leak of 104 byte(s) in 1 object(s) allocated from: #0 0x353b11 in operator new(unsigned long) (/var/home/phil/WebKit/WebKitBuild/GTK/Debug/bin/MiniBrowser+0x353b11) (BuildId: d982075693e9cc1619a4590d691453d2c2f9716a) #1 0x7fb54e52a819 in sk_sp<SkImage_Raster> sk_make_sp<SkImage_Raster, SkImageInfo const&, sk_sp<SkData>, unsigned long>(SkImageInfo const&, sk_sp<SkData>&&, unsigned long&&) /var/home/phil/WebKit/Source/ThirdParty/skia/include/core/SkRefCnt.h:372:21 #2 0x7fb54e52a643 in SkImages::RasterFromPixmap(SkPixmap const&, void (*)(void const*, void*), void*) /var/home/phil/WebKit/Source/ThirdParty/skia/src/image/SkImage_RasterFactories.cpp:160:12 #3 0x7fb5434e8567 in WebCore::ImageBackingStore::image() const /var/home/phil/WebKit/Source/WebCore/platform/image-decoders/skia/ImageBackingStoreSkia.cpp:40:12 #4 0x7fb543497c63 in WebCore::ScalableImageDecoder::createFrameImageAtIndex(unsigned long, WebCore::SubsamplingLevel, WebCore::DecodingOptions const&) /var/home/phil/WebKit/Source/WebCore/platform/image-decoders/ScalableImageDecoder.cpp:255:36 #5 0x7fb54b5de8b8 in WebCore::BitmapImageSource::nativeImageAtIndexCacheIfNeeded(unsigned int, WebCore::SubsamplingLevel, WebCore::DecodingOptions const&) /var/home/phil/WebKit/Source/WebCore/platform/graphics/BitmapImageSource.cpp:566:53 #6 0x7fb54b5df58e in WebCore::BitmapImageSource::nativeImageAtIndex(unsigned int) /var/home/phil/WebKit/Source/WebCore/platform/graphics/BitmapImageSource.cpp:615:24 #7 0x7fb54b5eac36 in WebCore::BitmapImageSource::currentNativeImage() /var/home/phil/WebKit/Source/WebCore/platform/graphics/BitmapImageSource.h:147:61 #8 0x7fb54208b35e in WebCore::BitmapImage::currentNativeImage() /var/home/phil/WebKit/WebKitBuild/GTK/Debug/WebCore/PrivateHeaders/WebCore/BitmapImage.h:68:71 #9 0x7fb542099f61 in WebKit::IconDatabase::loadIconForPageURL(WTF::String const&, WebKit::IconDatabase::AllowDatabaseWrite, WTF::CompletionHandler<void (sk_sp<SkImage>&&)>&&)::$_0::operator()()::'lambda'()::operator()()::'lambda'()::operator()() const /var/home/phil/WebKit/Source/WebKit/UIProcess/API/glib/IconDatabase.cpp:585:47 #10 0x7fb542099652 in WebKit::IconDatabase::loadIconForPageURL(WTF::String const&, WebKit::IconDatabase::AllowDatabaseWrite, WTF::CompletionHandler<void (sk_sp<SkImage>&&)>&&)::$_0::operator()()::'lambda'()::operator()() /var/home/phil/WebKit/Source/WebKit/UIProcess/API/glib/IconDatabase.cpp:569:25 #11 0x7fb542099498 in WTF::Detail::CallableWrapper<WebKit::IconDatabase::loadIconForPageURL(WTF::String const&, WebKit::IconDatabase::AllowDatabaseWrite, WTF::CompletionHandler<void (sk_sp<SkImage>&&)>&&)::$_0::operator()()::'lambda'(), void>::call() /var/home/phil/WebKit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/Function.h:53:39 #12 0x7fb52ba5e513 in WTF::Function<void ()>::operator()() const /var/home/phil/WebKit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/Function.h:82:35 #13 0x7fb52ed50c39 in WTF::RunLoop::performWork() /var/home/phil/WebKit/Source/WTF/wtf/RunLoop.cpp:147:9 #14 0x7fb52f46acb8 in WTF::RunLoop::RunLoop()::$_0::operator()(void*) const /var/home/phil/WebKit/Source/WTF/wtf/glib/RunLoopGLib.cpp:80:42 #15 0x7fb52f46ac3e in WTF::RunLoop::RunLoop()::$_0::__invoke(void*) /var/home/phil/WebKit/Source/WTF/wtf/glib/RunLoopGLib.cpp:79:43 #16 0x7fb52f46ab2d in WTF::RunLoop::$_0::operator()(_GSource*, int (*)(void*), void*) const /var/home/phil/WebKit/Source/WTF/wtf/glib/RunLoopGLib.cpp:53:28 #17 0x7fb52f467abe in WTF::RunLoop::$_0::__invoke(_GSource*, int (*)(void*), void*) /var/home/phil/WebKit/Source/WTF/wtf/glib/RunLoopGLib.cpp:45:5 #18 0x7fb552737e8b (/lib64/libglib-2.0.so.0+0x5ce8b) (BuildId: 36b60dbd02e796145a982d0151ce37202ec05649) #19 0x7fb552799c97 (/lib64/libglib-2.0.so.0+0xbec97) (BuildId: 36b60dbd02e796145a982d0151ce37202ec05649) #20 0x7fb552739382 in g_main_context_iteration (/lib64/libglib-2.0.so.0+0x5e382) (BuildId: 36b60dbd02e796145a982d0151ce37202ec05649) #21 0x7fb522b470fc in g_application_run (/lib64/libgio-2.0.so.0+0xe20fc) (BuildId: 1a20350aab8ff50007bb0131898dc24973f8b164) #22 0x36ef7c in main /var/home/phil/WebKit/Tools/MiniBrowser/gtk/main.c:1079:5 #23 0x7fb520d0c087 in __libc_start_call_main (/lib64/libc.so.6+0x2a087) (BuildId: 8f53abaad945a669f2bdcd25f471d80e077568ef) #24 0x7fb520d0c14a in
__libc_start_main@GLIBC_2.2.5
(/lib64/libc.so.6+0x2a14a) (BuildId: 8f53abaad945a669f2bdcd25f471d80e077568ef) #25 0x27ee24 in _start (/var/home/phil/WebKit/WebKitBuild/GTK/Debug/bin/MiniBrowser+0x27ee24) (BuildId: d982075693e9cc1619a4590d691453d2c2f9716a) Indirect leak of 147456 byte(s) in 1 object(s) allocated from: #0 0x3187e3 in malloc (/var/home/phil/WebKit/WebKitBuild/GTK/Debug/bin/MiniBrowser+0x3187e3) (BuildId: d982075693e9cc1619a4590d691453d2c2f9716a) #1 0x7fb52f49360b in bmalloc::DebugHeap::malloc(unsigned long, bmalloc::FailureAction) /var/home/phil/WebKit/Source/bmalloc/bmalloc/DebugHeap.cpp:118:20 #2 0x7fb52f494117 in pas_debug_heap_malloc /var/home/phil/WebKit/Source/bmalloc/bmalloc/DebugHeap.cpp:223:38 #3 0x7fb52f6be2dc in pas_debug_heap_allocate(unsigned long, unsigned long, pas_allocation_mode) /var/home/phil/WebKit/Source/bmalloc/libpas/src/libpas/pas_debug_heap.h:106:22 #4 0x7fb52f6b3ef2 in pas_try_allocate_intrinsic_impl_casual_case(__pas_heap*, unsigned long, unsigned long, pas_allocation_mode, pas_intrinsic_heap_support*, pas_heap_config, pas_allocation_result (*)(pas_local_allocator*, unsigned long, unsigned long, pas_allocation_mode), pas_allocation_result (*)(__pas_heap_ref*, unsigned long, unsigned long, pas_allocation_mode), pas_intrinsic_heap_designation_mode) /var/home/phil/WebKit/Source/bmalloc/libpas/src/libpas/pas_try_allocate_intrinsic.h:105:16 #5 0x7fb52f5f4272 in bmalloc_try_allocate_impl_casual_case(unsigned long, unsigned long, pas_allocation_mode) /var/home/phil/WebKit/Source/bmalloc/libpas/src/libpas/bmalloc_heap_inlines.h:47 #6 0x7fb52f5ef34f in bmalloc_try_allocate_casual /var/home/phil/WebKit/Source/bmalloc/libpas/src/libpas/bmalloc_heap.c:59:19 #7 0x7fb52ebff7dd in bmalloc_try_allocate_inline(unsigned long, pas_allocation_mode) /var/home/phil/WebKit/WebKitBuild/GTK/Debug/bmalloc/Headers/bmalloc/bmalloc_heap_inlines.h:98:12 #8 0x7fb52eb05bfc in bmalloc::api::tryMalloc(unsigned long, bmalloc::CompactAllocationMode, bmalloc::HeapKind) /var/home/phil/WebKit/WebKitBuild/GTK/Debug/bmalloc/Headers/bmalloc/bmalloc.h:62:16 #9 0x7fb52eb05bfc in WTF::tryFastMalloc(unsigned long) /var/home/phil/WebKit/Source/WTF/wtf/FastMalloc.cpp:681:20 #10 0x7fb54349f172 in WTF::FastMalloc::tryMalloc(unsigned long) /var/home/phil/WebKit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/FastMalloc.h:245:23 #11 0x7fb54349efb3 in bool WTF::VectorBufferBase<unsigned char, WTF::FastMalloc>::allocateBuffer<(WTF::FailureAction)1>(unsigned long) /var/home/phil/WebKit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/Vector.h:324:41 #12 0x7fb54349edbd in bool WTF::Vector<unsigned char, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>::reserveCapacity<(WTF::FailureAction)1>(unsigned long) /var/home/phil/WebKit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/Vector.h:1371:35 #13 0x7fb54349e91c in WTF::Vector<unsigned char, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>::tryReserveCapacity(unsigned long) /var/home/phil/WebKit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/Vector.h:870:65 #14 0x7fb54349e57b in WebCore::ImageBackingStore::setSize(WebCore::IntSize const&) /var/home/phil/WebKit/Source/WebCore/platform/graphics/ImageBackingStore.h:65:21 #15 0x7fb54349e391 in WebCore::ImageBackingStore::ImageBackingStore(WebCore::IntSize const&, bool) /var/home/phil/WebKit/Source/WebCore/platform/graphics/ImageBackingStore.h:200:9 #16 0x7fb54349d3d3 in WebCore::ImageBackingStore::create(WebCore::IntSize const&, bool) /var/home/phil/WebKit/Source/WebCore/platform/graphics/ImageBackingStore.h:47:55 #17 0x7fb54349d2f8 in WebCore::ScalableImageDecoderFrame::initialize(WebCore::IntSize const&, bool) /var/home/phil/WebKit/Source/WebCore/platform/image-decoders/ScalableImageDecoderFrame.cpp:91:22 #18 0x7fb5434db7ad in WebCore::PNGImageDecoder::rowAvailable(unsigned char*, unsigned int, int) /var/home/phil/WebKit/Source/WebCore/platform/image-decoders/png/PNGImageDecoder.cpp:427:21 #19 0x7fb5434e3730 in WebCore::rowAvailable(png_struct_def*, unsigned char*, unsigned int, int) /var/home/phil/WebKit/Source/WebCore/platform/image-decoders/png/PNGImageDecoder.cpp:93:66 #20 0x7fb52517e7f0 (/lib64/libpng16.so.16+0x97f0) (BuildId: d462ebb5560c69919cf4971e21fa6c5833ca7bf0) #21 0x7fb52518775e in png_process_data (/lib64/libpng16.so.16+0x1275e) (BuildId: d462ebb5560c69919cf4971e21fa6c5833ca7bf0) #22 0x7fb5434dd797 in WebCore::PNGImageReader::decode(WebCore::SharedBuffer const&, bool, unsigned int) /var/home/phil/WebKit/Source/WebCore/platform/image-decoders/png/PNGImageDecoder.cpp:160:9 #23 0x7fb5434d9bbf in WebCore::PNGImageDecoder::decode(bool, unsigned int, bool) /var/home/phil/WebKit/Source/WebCore/platform/image-decoders/png/PNGImageDecoder.cpp:553:20 #24 0x7fb5434d99bc in WebCore::PNGImageDecoder::frameBufferAtIndex(unsigned long) /var/home/phil/WebKit/Source/WebCore/platform/image-decoders/png/PNGImageDecoder.cpp:252:9 #25 0x7fb543497bf6 in WebCore::ScalableImageDecoder::createFrameImageAtIndex(unsigned long, WebCore::SubsamplingLevel, WebCore::DecodingOptions const&) /var/home/phil/WebKit/Source/WebCore/platform/image-decoders/ScalableImageDecoder.cpp:249:20 #26 0x7fb54b5de8b8 in WebCore::BitmapImageSource::nativeImageAtIndexCacheIfNeeded(unsigned int, WebCore::SubsamplingLevel, WebCore::DecodingOptions const&) /var/home/phil/WebKit/Source/WebCore/platform/graphics/BitmapImageSource.cpp:566:53 #27 0x7fb54b5df58e in WebCore::BitmapImageSource::nativeImageAtIndex(unsigned int) /var/home/phil/WebKit/Source/WebCore/platform/graphics/BitmapImageSource.cpp:615:24 #28 0x7fb54b5eac36 in WebCore::BitmapImageSource::currentNativeImage() /var/home/phil/WebKit/Source/WebCore/platform/graphics/BitmapImageSource.h:147:61 #29 0x7fb54208b35e in WebCore::BitmapImage::currentNativeImage() /var/home/phil/WebKit/WebKitBuild/GTK/Debug/WebCore/PrivateHeaders/WebCore/BitmapImage.h:68:71 #30 0x7fb542099f61 in WebKit::IconDatabase::loadIconForPageURL(WTF::String const&, WebKit::IconDatabase::AllowDatabaseWrite, WTF::CompletionHandler<void (sk_sp<SkImage>&&)>&&)::$_0::operator()()::'lambda'()::operator()()::'lambda'()::operator()() const /var/home/phil/WebKit/Source/WebKit/UIProcess/API/glib/IconDatabase.cpp:585:47 Indirect leak of 112 byte(s) in 1 object(s) allocated from: #0 0x353b11 in operator new(unsigned long) (/var/home/phil/WebKit/WebKitBuild/GTK/Debug/bin/MiniBrowser+0x353b11) (BuildId: d982075693e9cc1619a4590d691453d2c2f9716a) #1 0x7fb54ddc0cb7 in SkMakePixelRefWithProc(int, int, unsigned long, void*, void (*)(void*, void*), void*) /var/home/phil/WebKit/Source/ThirdParty/skia/src/core/SkPixelRef.cpp:150:30 #2 0x7fb54d944351 in SkBitmap::installPixels(SkImageInfo const&, void*, unsigned long, void (*)(void*, void*), void*) /var/home/phil/WebKit/Source/ThirdParty/skia/src/core/SkBitmap.cpp:338:13 #3 0x7fb54e526c65 in SkImage_Raster::SkImage_Raster(SkImageInfo const&, sk_sp<SkData>, unsigned long, unsigned int) /var/home/phil/WebKit/Source/ThirdParty/skia/src/image/SkImage_Raster.cpp:50:13 #4 0x7fb54e52a875 in sk_sp<SkImage_Raster> sk_make_sp<SkImage_Raster, SkImageInfo const&, sk_sp<SkData>, unsigned long>(SkImageInfo const&, sk_sp<SkData>&&, unsigned long&&) /var/home/phil/WebKit/Source/ThirdParty/skia/include/core/SkRefCnt.h:372:25 #5 0x7fb54e52a643 in SkImages::RasterFromPixmap(SkPixmap const&, void (*)(void const*, void*), void*) /var/home/phil/WebKit/Source/ThirdParty/skia/src/image/SkImage_RasterFactories.cpp:160:12 #6 0x7fb5434e8567 in WebCore::ImageBackingStore::image() const /var/home/phil/WebKit/Source/WebCore/platform/image-decoders/skia/ImageBackingStoreSkia.cpp:40:12 #7 0x7fb543497c63 in WebCore::ScalableImageDecoder::createFrameImageAtIndex(unsigned long, WebCore::SubsamplingLevel, WebCore::DecodingOptions const&) /var/home/phil/WebKit/Source/WebCore/platform/image-decoders/ScalableImageDecoder.cpp:255:36 #8 0x7fb54b5de8b8 in WebCore::BitmapImageSource::nativeImageAtIndexCacheIfNeeded(unsigned int, WebCore::SubsamplingLevel, WebCore::DecodingOptions const&) /var/home/phil/WebKit/Source/WebCore/platform/graphics/BitmapImageSource.cpp:566:53 #9 0x7fb54b5df58e in WebCore::BitmapImageSource::nativeImageAtIndex(unsigned int) /var/home/phil/WebKit/Source/WebCore/platform/graphics/BitmapImageSource.cpp:615:24 #10 0x7fb54b5eac36 in WebCore::BitmapImageSource::currentNativeImage() /var/home/phil/WebKit/Source/WebCore/platform/graphics/BitmapImageSource.h:147:61 #11 0x7fb54208b35e in WebCore::BitmapImage::currentNativeImage() /var/home/phil/WebKit/WebKitBuild/GTK/Debug/WebCore/PrivateHeaders/WebCore/BitmapImage.h:68:71 #12 0x7fb542099f61 in WebKit::IconDatabase::loadIconForPageURL(WTF::String const&, WebKit::IconDatabase::AllowDatabaseWrite, WTF::CompletionHandler<void (sk_sp<SkImage>&&)>&&)::$_0::operator()()::'lambda'()::operator()()::'lambda'()::operator()() const /var/home/phil/WebKit/Source/WebKit/UIProcess/API/glib/IconDatabase.cpp:585:47 #13 0x7fb542099652 in WebKit::IconDatabase::loadIconForPageURL(WTF::String const&, WebKit::IconDatabase::AllowDatabaseWrite, WTF::CompletionHandler<void (sk_sp<SkImage>&&)>&&)::$_0::operator()()::'lambda'()::operator()() /var/home/phil/WebKit/Source/WebKit/UIProcess/API/glib/IconDatabase.cpp:569:25 #14 0x7fb542099498 in WTF::Detail::CallableWrapper<WebKit::IconDatabase::loadIconForPageURL(WTF::String const&, WebKit::IconDatabase::AllowDatabaseWrite, WTF::CompletionHandler<void (sk_sp<SkImage>&&)>&&)::$_0::operator()()::'lambda'(), void>::call() /var/home/phil/WebKit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/Function.h:53:39 #15 0x7fb52ba5e513 in WTF::Function<void ()>::operator()() const /var/home/phil/WebKit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/Function.h:82:35 #16 0x7fb52ed50c39 in WTF::RunLoop::performWork() /var/home/phil/WebKit/Source/WTF/wtf/RunLoop.cpp:147:9 #17 0x7fb52f46acb8 in WTF::RunLoop::RunLoop()::$_0::operator()(void*) const /var/home/phil/WebKit/Source/WTF/wtf/glib/RunLoopGLib.cpp:80:42 #18 0x7fb52f46ac3e in WTF::RunLoop::RunLoop()::$_0::__invoke(void*) /var/home/phil/WebKit/Source/WTF/wtf/glib/RunLoopGLib.cpp:79:43 #19 0x7fb52f46ab2d in WTF::RunLoop::$_0::operator()(_GSource*, int (*)(void*), void*) const /var/home/phil/WebKit/Source/WTF/wtf/glib/RunLoopGLib.cpp:53:28 #20 0x7fb52f467abe in WTF::RunLoop::$_0::__invoke(_GSource*, int (*)(void*), void*) /var/home/phil/WebKit/Source/WTF/wtf/glib/RunLoopGLib.cpp:45:5 #21 0x7fb552737e8b (/lib64/libglib-2.0.so.0+0x5ce8b) (BuildId: 36b60dbd02e796145a982d0151ce37202ec05649) #22 0x7fb552799c97 (/lib64/libglib-2.0.so.0+0xbec97) (BuildId: 36b60dbd02e796145a982d0151ce37202ec05649) #23 0x7fb552739382 in g_main_context_iteration (/lib64/libglib-2.0.so.0+0x5e382) (BuildId: 36b60dbd02e796145a982d0151ce37202ec05649) #24 0x7fb522b470fc in g_application_run (/lib64/libgio-2.0.so.0+0xe20fc) (BuildId: 1a20350aab8ff50007bb0131898dc24973f8b164) #25 0x36ef7c in main /var/home/phil/WebKit/Tools/MiniBrowser/gtk/main.c:1079:5 #26 0x7fb520d0c087 in __libc_start_call_main (/lib64/libc.so.6+0x2a087) (BuildId: 8f53abaad945a669f2bdcd25f471d80e077568ef) #27 0x7fb520d0c14a in
__libc_start_main@GLIBC_2.2.5
(/lib64/libc.so.6+0x2a14a) (BuildId: 8f53abaad945a669f2bdcd25f471d80e077568ef) #28 0x27ee24 in _start (/var/home/phil/WebKit/WebKitBuild/GTK/Debug/bin/MiniBrowser+0x27ee24) (BuildId: d982075693e9cc1619a4590d691453d2c2f9716a) Indirect leak of 40 byte(s) in 1 object(s) allocated from: #0 0x353b11 in operator new(unsigned long) (/var/home/phil/WebKit/WebKitBuild/GTK/Debug/bin/MiniBrowser+0x353b11) (BuildId: d982075693e9cc1619a4590d691453d2c2f9716a) #1 0x7fb54da153ce in SkData::MakeWithProc(void const*, unsigned long, void (*)(void const*, void*), void*) /var/home/phil/WebKit/Source/ThirdParty/skia/src/core/SkData.cpp:129:26 #2 0x7fb54e52a5f6 in SkImages::RasterFromPixmap(SkPixmap const&, void (*)(void const*, void*), void*) /var/home/phil/WebKit/Source/ThirdParty/skia/src/image/SkImage_RasterFactories.cpp:159:24 #3 0x7fb5434e8567 in WebCore::ImageBackingStore::image() const /var/home/phil/WebKit/Source/WebCore/platform/image-decoders/skia/ImageBackingStoreSkia.cpp:40:12 #4 0x7fb543497c63 in WebCore::ScalableImageDecoder::createFrameImageAtIndex(unsigned long, WebCore::SubsamplingLevel, WebCore::DecodingOptions const&) /var/home/phil/WebKit/Source/WebCore/platform/image-decoders/ScalableImageDecoder.cpp:255:36 #5 0x7fb54b5de8b8 in WebCore::BitmapImageSource::nativeImageAtIndexCacheIfNeeded(unsigned int, WebCore::SubsamplingLevel, WebCore::DecodingOptions const&) /var/home/phil/WebKit/Source/WebCore/platform/graphics/BitmapImageSource.cpp:566:53 #6 0x7fb54b5df58e in WebCore::BitmapImageSource::nativeImageAtIndex(unsigned int) /var/home/phil/WebKit/Source/WebCore/platform/graphics/BitmapImageSource.cpp:615:24 #7 0x7fb54b5eac36 in WebCore::BitmapImageSource::currentNativeImage() /var/home/phil/WebKit/Source/WebCore/platform/graphics/BitmapImageSource.h:147:61 #8 0x7fb54208b35e in WebCore::BitmapImage::currentNativeImage() /var/home/phil/WebKit/WebKitBuild/GTK/Debug/WebCore/PrivateHeaders/WebCore/BitmapImage.h:68:71 #9 0x7fb542099f61 in WebKit::IconDatabase::loadIconForPageURL(WTF::String const&, WebKit::IconDatabase::AllowDatabaseWrite, WTF::CompletionHandler<void (sk_sp<SkImage>&&)>&&)::$_0::operator()()::'lambda'()::operator()()::'lambda'()::operator()() const /var/home/phil/WebKit/Source/WebKit/UIProcess/API/glib/IconDatabase.cpp:585:47 #10 0x7fb542099652 in WebKit::IconDatabase::loadIconForPageURL(WTF::String const&, WebKit::IconDatabase::AllowDatabaseWrite, WTF::CompletionHandler<void (sk_sp<SkImage>&&)>&&)::$_0::operator()()::'lambda'()::operator()() /var/home/phil/WebKit/Source/WebKit/UIProcess/API/glib/IconDatabase.cpp:569:25 #11 0x7fb542099498 in WTF::Detail::CallableWrapper<WebKit::IconDatabase::loadIconForPageURL(WTF::String const&, WebKit::IconDatabase::AllowDatabaseWrite, WTF::CompletionHandler<void (sk_sp<SkImage>&&)>&&)::$_0::operator()()::'lambda'(), void>::call() /var/home/phil/WebKit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/Function.h:53:39 #12 0x7fb52ba5e513 in WTF::Function<void ()>::operator()() const /var/home/phil/WebKit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/Function.h:82:35 #13 0x7fb52ed50c39 in WTF::RunLoop::performWork() /var/home/phil/WebKit/Source/WTF/wtf/RunLoop.cpp:147:9 #14 0x7fb52f46acb8 in WTF::RunLoop::RunLoop()::$_0::operator()(void*) const /var/home/phil/WebKit/Source/WTF/wtf/glib/RunLoopGLib.cpp:80:42 #15 0x7fb52f46ac3e in WTF::RunLoop::RunLoop()::$_0::__invoke(void*) /var/home/phil/WebKit/Source/WTF/wtf/glib/RunLoopGLib.cpp:79:43 #16 0x7fb52f46ab2d in WTF::RunLoop::$_0::operator()(_GSource*, int (*)(void*), void*) const /var/home/phil/WebKit/Source/WTF/wtf/glib/RunLoopGLib.cpp:53:28 #17 0x7fb52f467abe in WTF::RunLoop::$_0::__invoke(_GSource*, int (*)(void*), void*) /var/home/phil/WebKit/Source/WTF/wtf/glib/RunLoopGLib.cpp:45:5 #18 0x7fb552737e8b (/lib64/libglib-2.0.so.0+0x5ce8b) (BuildId: 36b60dbd02e796145a982d0151ce37202ec05649) #19 0x7fb552799c97 (/lib64/libglib-2.0.so.0+0xbec97) (BuildId: 36b60dbd02e796145a982d0151ce37202ec05649) #20 0x7fb552739382 in g_main_context_iteration (/lib64/libglib-2.0.so.0+0x5e382) (BuildId: 36b60dbd02e796145a982d0151ce37202ec05649) #21 0x7fb522b470fc in g_application_run (/lib64/libgio-2.0.so.0+0xe20fc) (BuildId: 1a20350aab8ff50007bb0131898dc24973f8b164) #22 0x36ef7c in main /var/home/phil/WebKit/Tools/MiniBrowser/gtk/main.c:1079:5 #23 0x7fb520d0c087 in __libc_start_call_main (/lib64/libc.so.6+0x2a087) (BuildId: 8f53abaad945a669f2bdcd25f471d80e077568ef) #24 0x7fb520d0c14a in
__libc_start_main@GLIBC_2.2.5
(/lib64/libc.so.6+0x2a14a) (BuildId: 8f53abaad945a669f2bdcd25f471d80e077568ef) #25 0x27ee24 in _start (/var/home/phil/WebKit/WebKitBuild/GTK/Debug/bin/MiniBrowser+0x27ee24) (BuildId: d982075693e9cc1619a4590d691453d2c2f9716a) Indirect leak of 40 byte(s) in 1 object(s) allocated from: #0 0x3187e3 in malloc (/var/home/phil/WebKit/WebKitBuild/GTK/Debug/bin/MiniBrowser+0x3187e3) (BuildId: d982075693e9cc1619a4590d691453d2c2f9716a) #1 0x7fb52f49360b in bmalloc::DebugHeap::malloc(unsigned long, bmalloc::FailureAction) /var/home/phil/WebKit/Source/bmalloc/bmalloc/DebugHeap.cpp:118:20 #2 0x7fb52f494117 in pas_debug_heap_malloc /var/home/phil/WebKit/Source/bmalloc/bmalloc/DebugHeap.cpp:223:38 #3 0x7fb52f6be2dc in pas_debug_heap_allocate(unsigned long, unsigned long, pas_allocation_mode) /var/home/phil/WebKit/Source/bmalloc/libpas/src/libpas/pas_debug_heap.h:106:22 #4 0x7fb52f6b3ef2 in pas_try_allocate_intrinsic_impl_casual_case(__pas_heap*, unsigned long, unsigned long, pas_allocation_mode, pas_intrinsic_heap_support*, pas_heap_config, pas_allocation_result (*)(pas_local_allocator*, unsigned long, unsigned long, pas_allocation_mode), pas_allocation_result (*)(__pas_heap_ref*, unsigned long, unsigned long, pas_allocation_mode), pas_intrinsic_heap_designation_mode) /var/home/phil/WebKit/Source/bmalloc/libpas/src/libpas/pas_try_allocate_intrinsic.h:105:16 #5 0x7fb52f5f91d2 in bmalloc_allocate_impl_casual_case(unsigned long, unsigned long, pas_allocation_mode) /var/home/phil/WebKit/Source/bmalloc/libpas/src/libpas/bmalloc_heap_inlines.h:69 #6 0x7fb52f5f42af in bmalloc_allocate_casual /var/home/phil/WebKit/Source/bmalloc/libpas/src/libpas/bmalloc_heap.c:64:19 #7 0x7fb52eb083cd in bmalloc_allocate_inline(unsigned long, pas_allocation_mode) /var/home/phil/WebKit/WebKitBuild/GTK/Debug/bmalloc/Headers/bmalloc/bmalloc_heap_inlines.h:120:12 #8 0x7fb52eb03e33 in bmalloc::api::malloc(unsigned long, bmalloc::CompactAllocationMode, bmalloc::HeapKind) /var/home/phil/WebKit/WebKitBuild/GTK/Debug/bmalloc/Headers/bmalloc/bmalloc.h:75:16 #9 0x7fb52eb03e33 in WTF::fastMalloc(unsigned long) /var/home/phil/WebKit/Source/WTF/wtf/FastMalloc.cpp:559:20 #10 0x7fb540c7eeb4 in WTF::ThreadSafeRefCountedBase::operator new(unsigned long) /var/home/phil/WebKit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/ThreadSafeRefCounted.h:43:156 #11 0x7fb54b3b542d in WebCore::DataSegment::create(WTF::Vector<unsigned char, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&&) /var/home/phil/WebKit/Source/WebCore/platform/SharedBuffer.cpp:562:22 #12 0x7fb54349e5be in WebCore::ImageBackingStore::setSize(WebCore::IntSize const&) /var/home/phil/WebKit/Source/WebCore/platform/graphics/ImageBackingStore.h:69:20 #13 0x7fb54349e391 in WebCore::ImageBackingStore::ImageBackingStore(WebCore::IntSize const&, bool) /var/home/phil/WebKit/Source/WebCore/platform/graphics/ImageBackingStore.h:200:9 #14 0x7fb54349d3d3 in WebCore::ImageBackingStore::create(WebCore::IntSize const&, bool) /var/home/phil/WebKit/Source/WebCore/platform/graphics/ImageBackingStore.h:47:55 #15 0x7fb54349d2f8 in WebCore::ScalableImageDecoderFrame::initialize(WebCore::IntSize const&, bool) /var/home/phil/WebKit/Source/WebCore/platform/image-decoders/ScalableImageDecoderFrame.cpp:91:22 #16 0x7fb5434db7ad in WebCore::PNGImageDecoder::rowAvailable(unsigned char*, unsigned int, int) /var/home/phil/WebKit/Source/WebCore/platform/image-decoders/png/PNGImageDecoder.cpp:427:21 #17 0x7fb5434e3730 in WebCore::rowAvailable(png_struct_def*, unsigned char*, unsigned int, int) /var/home/phil/WebKit/Source/WebCore/platform/image-decoders/png/PNGImageDecoder.cpp:93:66 #18 0x7fb52517e7f0 (/lib64/libpng16.so.16+0x97f0) (BuildId: d462ebb5560c69919cf4971e21fa6c5833ca7bf0) #19 0x7fb52518775e in png_process_data (/lib64/libpng16.so.16+0x1275e) (BuildId: d462ebb5560c69919cf4971e21fa6c5833ca7bf0) #20 0x7fb5434dd797 in WebCore::PNGImageReader::decode(WebCore::SharedBuffer const&, bool, unsigned int) /var/home/phil/WebKit/Source/WebCore/platform/image-decoders/png/PNGImageDecoder.cpp:160:9 #21 0x7fb5434d9bbf in WebCore::PNGImageDecoder::decode(bool, unsigned int, bool) /var/home/phil/WebKit/Source/WebCore/platform/image-decoders/png/PNGImageDecoder.cpp:553:20 #22 0x7fb5434d99bc in WebCore::PNGImageDecoder::frameBufferAtIndex(unsigned long) /var/home/phil/WebKit/Source/WebCore/platform/image-decoders/png/PNGImageDecoder.cpp:252:9 #23 0x7fb543497bf6 in WebCore::ScalableImageDecoder::createFrameImageAtIndex(unsigned long, WebCore::SubsamplingLevel, WebCore::DecodingOptions const&) /var/home/phil/WebKit/Source/WebCore/platform/image-decoders/ScalableImageDecoder.cpp:249:20 #24 0x7fb54b5de8b8 in WebCore::BitmapImageSource::nativeImageAtIndexCacheIfNeeded(unsigned int, WebCore::SubsamplingLevel, WebCore::DecodingOptions const&) /var/home/phil/WebKit/Source/WebCore/platform/graphics/BitmapImageSource.cpp:566:53 #25 0x7fb54b5df58e in WebCore::BitmapImageSource::nativeImageAtIndex(unsigned int) /var/home/phil/WebKit/Source/WebCore/platform/graphics/BitmapImageSource.cpp:615:24 #26 0x7fb54b5eac36 in WebCore::BitmapImageSource::currentNativeImage() /var/home/phil/WebKit/Source/WebCore/platform/graphics/BitmapImageSource.h:147:61 #27 0x7fb54208b35e in WebCore::BitmapImage::currentNativeImage() /var/home/phil/WebKit/WebKitBuild/GTK/Debug/WebCore/PrivateHeaders/WebCore/BitmapImage.h:68:71 #28 0x7fb542099f61 in WebKit::IconDatabase::loadIconForPageURL(WTF::String const&, WebKit::IconDatabase::AllowDatabaseWrite, WTF::CompletionHandler<void (sk_sp<SkImage>&&)>&&)::$_0::operator()()::'lambda'()::operator()()::'lambda'()::operator()() const /var/home/phil/WebKit/Source/WebKit/UIProcess/API/glib/IconDatabase.cpp:585:47 #29 0x7fb542099652 in WebKit::IconDatabase::loadIconForPageURL(WTF::String const&, WebKit::IconDatabase::AllowDatabaseWrite, WTF::CompletionHandler<void (sk_sp<SkImage>&&)>&&)::$_0::operator()()::'lambda'()::operator()() /var/home/phil/WebKit/Source/WebKit/UIProcess/API/glib/IconDatabase.cpp:569:25 #30 0x7fb542099498 in WTF::Detail::CallableWrapper<WebKit::IconDatabase::loadIconForPageURL(WTF::String const&, WebKit::IconDatabase::AllowDatabaseWrite, WTF::CompletionHandler<void (sk_sp<SkImage>&&)>&&)::$_0::operator()()::'lambda'(), void>::call() /var/home/phil/WebKit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/Function.h:53:39
Attachments
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug