Bug 23473 - [GTK] Mismatched free() / delete / delete []
Summary: [GTK] Mismatched free() / delete / delete []
Status: RESOLVED DUPLICATE of bug 22834
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-22 00:27 PST by Louis JANG
Modified: 2009-02-27 14:12 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Louis JANG 2009-01-22 00:27:11 PST
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)
Comment 1 Mark Rowe (bdash) 2009-01-22 14:29:26 PST
Why is this tagged as being a GTK-only bug?  I don't see anything in the stack trace to imply that it is.
Comment 2 Craig Schlenter 2009-01-23 00:10:51 PST
See bug 22834 .. I think it's the same thing.
Comment 3 Tony Chang 2009-02-27 14:12:04 PST

*** This bug has been marked as a duplicate of 22834 ***