Bug 23473
Summary: | [GTK] Mismatched free() / delete / delete [] | ||
---|---|---|---|
Product: | WebKit | Reporter: | Louis JANG <louis> |
Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | mrowe |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | Linux |
Louis JANG
I can see the following message when I run GtkLauncher with valgrind(memcheck). I tested two nightly snapshots. Both of 40102 and 39811 snapshots have same problem. If you want to reproduce it, just compile webkit with gtk backend and --enable-debug option, and run GtkLauncher and wait.
I have not tested other port.
==1011==
==1011== Mismatched free() / delete / delete []
==1011== at 0x402265C: free (vg_replace_malloc.c:323)
==1011== by 0x4D5CB1F: WTF::fastFree(void*) (FastMalloc.cpp:216)
==1011== by 0x46BD8DE: WebCore::CSSSelectorList::adoptSelectorVector(WTF::Vector<WebCore::CSSSelector*, 0>&) (CSSSelectorList.cpp:57)
==1011== by 0x46A7408: WebCore::CSSStyleRule::adoptSelectorVector(WTF::Vector<WebCore::CSSSelector*, 0>&) (CSSStyleRule.h:53)
==1011== by 0x46914A9: WebCore::CSSParser::createStyleRule(WTF::Vector<WebCore::CSSSelector*, 0>*) (CSSParser.cpp:4547)
==1011== by 0x4CEE94E: cssyyparse(void*) (CSSGrammar.y:792)
==1011== by 0x469F7E9: WebCore::CSSParser::parseSheet(WebCore::CSSStyleSheet*, WebCore::String const&) (CSSParser.cpp:224)
==1011== by 0x46FC033: WebCore::CSSStyleSheet::parseString(WebCore::String const&, bool) (CSSStyleSheet.cpp:164)
==1011== by 0x46DC249: WebCore::parseUASheet(WebCore::String const&) (CSSStyleSelector.cpp:485)
==1011== by 0x46DC286: WebCore::parseUASheet(char const*, unsigned) (CSSStyleSelector.cpp:491)
==1011== by 0x46DD502: WebCore::loadSimpleDefaultStyle() (CSSStyleSelector.cpp:530)
==1011== by 0x46DE2EE: WebCore::CSSStyleSelector::CSSStyleSelector(WebCore::Document*, WebCore::String const&, WebCore::StyleSheetList*, WebCore::CSSStyleSheet*, bool, bool) (CSSStyleSelector.cpp:405)
==1011== Address 0x78552d0 is 0 bytes inside a block of size 16 alloc'd
==1011== at 0x4023294: operator new(unsigned) (vg_replace_malloc.c:224)
==1011== by 0x4691F12: WebCore::CSSParser::createFloatingSelector() (CSSParser.cpp:4382)
==1011== by 0x4CEED60: cssyyparse(void*) (CSSGrammar.y:883)
==1011== by 0x469F7E9: WebCore::CSSParser::parseSheet(WebCore::CSSStyleSheet*, WebCore::String const&) (CSSParser.cpp:224)
==1011== by 0x46FC033: WebCore::CSSStyleSheet::parseString(WebCore::String const&, bool) (CSSStyleSheet.cpp:164)
==1011== by 0x46DC249: WebCore::parseUASheet(WebCore::String const&) (CSSStyleSelector.cpp:485)
==1011== by 0x46DC286: WebCore::parseUASheet(char const*, unsigned) (CSSStyleSelector.cpp:491)
==1011== by 0x46DD502: WebCore::loadSimpleDefaultStyle() (CSSStyleSelector.cpp:530)
==1011== by 0x46DE2EE: WebCore::CSSStyleSelector::CSSStyleSelector(WebCore::Document*, WebCore::String const&, WebCore::StyleSheetList*, WebCore::CSSStyleSheet*, bool, bool) (CSSStyleSelector.cpp:405)
==1011== by 0x4726909: WebCore::Document::attach() (Document.cpp:1269)
==1011== by 0x496CE6D: WebCore::Frame::setDocument(WTF::PassRefPtr<WebCore::Document>) (Frame.cpp:264)
==1011== by 0x4905321: WebCore::FrameLoader::begin(WebCore::KURL const&, bool, WebCore::SecurityOrigin*) (FrameLoader.cpp:937)
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Mark Rowe (bdash)
Why is this tagged as being a GTK-only bug? I don't see anything in the stack trace to imply that it is.
Craig Schlenter
See bug 22834 .. I think it's the same thing.
Tony Chang
*** This bug has been marked as a duplicate of 22834 ***