WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
175113
NeverDestroyed related leaks seen on bots
https://bugs.webkit.org/show_bug.cgi?id=175113
Summary
NeverDestroyed related leaks seen on bots
Joseph Pecoraro
Reported
2017-08-02 20:34:05 PDT
New leaks seen on leaks bots: <
https://build.webkit.org/builders/Apple%20Sierra%20(Leaks
)> Seems closely related to
r219595
: <
https://trac.webkit.org/r219595
> Leak: 0x7fdd561010a0 size=16 zone: WebKit Using System Malloc_0x10d4e5000 0x56101080 0x00007fdd 0xaaaaaaaa 0xaaaaaaaa ...V............ Call stack: [thread 0x7fffe04163c0]: | start | DumpRenderTreeMain(int, char const**) DumpRenderTree.mm:1398 ... | WebCore::DocumentLoader::maybeLoadEmpty() DocumentLoader.cpp:1411 | WebCore::SchemeRegistry::shouldLoadURLSchemeAsEmptyDocument(WTF::String const&) SchemeRegistry.cpp:311 | WebCore::makeNeverDestroyedSchemeSet(WTF::Vector<WTF::String, 0ul, WTF::CrashOnOverflow, 16ul> const& (*)()) SchemeRegistry.cpp:62 | WebCore::builtinEmptyDocumentSchemes() SchemeRegistry.cpp:166 | WTF::fastMalloc(unsigned long) FastMalloc.cpp:258 | bmalloc::DebugHeap::malloc(unsigned long) DebugHeap.cpp:49 Reduced test that produces the same leak:
> #import <wtf/Vector.h> > #import <wtf/NeverDestroyed.h> > > const Vector<int>& test() { > static const auto x = makeNeverDestroyed(Vector<int> { 1, 2, 3 }); > return x; > } > > static void leak() { > test(); > } > > int main() { > @autoreleasepool { leak(); } > sleep(100000); > return 0; > }
Attachments
[PATCH] Proposed Fix
(1.18 KB, patch)
2017-08-02 20:36 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
[PATCH] Proposed Fix
(1.68 KB, patch)
2017-08-02 20:41 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2017-08-02 20:36:51 PDT
Created
attachment 317079
[details]
[PATCH] Proposed Fix
Joseph Pecoraro
Comment 2
2017-08-02 20:41:40 PDT
Created
attachment 317083
[details]
[PATCH] Proposed Fix
Yusuke Suzuki
Comment 3
2017-08-02 21:16:42 PDT
Comment on
attachment 317083
[details]
[PATCH] Proposed Fix r=me
WebKit Commit Bot
Comment 4
2017-08-02 21:46:50 PDT
Comment on
attachment 317083
[details]
[PATCH] Proposed Fix Clearing flags on attachment: 317083 Committed
r220183
: <
http://trac.webkit.org/changeset/220183
>
WebKit Commit Bot
Comment 5
2017-08-02 21:46:51 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6
2017-08-02 21:48:01 PDT
<
rdar://problem/33693214
>
Darin Adler
Comment 7
2017-08-03 09:38:41 PDT
Thanks so much for fixing this! Really important fix, and very sorry for my mistake. Can we add a TestWebKitAPI test to cover this please?
Joseph Pecoraro
Comment 8
2017-08-03 12:08:52 PDT
(In reply to Darin Adler from
comment #7
)
> Thanks so much for fixing this! Really important fix, and very sorry for my > mistake. Can we add a TestWebKitAPI test to cover this please?
Bug 175146
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