<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>23473</bug_id>
          
          <creation_ts>2009-01-22 00:27:11 -0800</creation_ts>
          <short_desc>[GTK] Mismatched free() / delete / delete []</short_desc>
          <delta_ts>2009-02-27 14:12:04 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>22834</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Louis JANG">louis</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>106582</commentid>
    <comment_count>0</comment_count>
    <who name="Louis JANG">louis</who>
    <bug_when>2009-01-22 00:27:11 -0800</bug_when>
    <thetext>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&lt;WebCore::CSSSelector*, 0&gt;&amp;) (CSSSelectorList.cpp:57)
==1011==    by 0x46A7408: WebCore::CSSStyleRule::adoptSelectorVector(WTF::Vector&lt;WebCore::CSSSelector*, 0&gt;&amp;) (CSSStyleRule.h:53)
==1011==    by 0x46914A9: WebCore::CSSParser::createStyleRule(WTF::Vector&lt;WebCore::CSSSelector*, 0&gt;*) (CSSParser.cpp:4547)
==1011==    by 0x4CEE94E: cssyyparse(void*) (CSSGrammar.y:792)
==1011==    by 0x469F7E9: WebCore::CSSParser::parseSheet(WebCore::CSSStyleSheet*, WebCore::String const&amp;) (CSSParser.cpp:224)
==1011==    by 0x46FC033: WebCore::CSSStyleSheet::parseString(WebCore::String const&amp;, bool) (CSSStyleSheet.cpp:164)
==1011==    by 0x46DC249: WebCore::parseUASheet(WebCore::String const&amp;) (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&amp;, WebCore::StyleSheetList*, WebCore::CSSStyleSheet*, bool, bool) (CSSStyleSelector.cpp:405)
==1011==  Address 0x78552d0 is 0 bytes inside a block of size 16 alloc&apos;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&amp;) (CSSParser.cpp:224)
==1011==    by 0x46FC033: WebCore::CSSStyleSheet::parseString(WebCore::String const&amp;, bool) (CSSStyleSheet.cpp:164)
==1011==    by 0x46DC249: WebCore::parseUASheet(WebCore::String const&amp;) (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&amp;, 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&lt;WebCore::Document&gt;) (Frame.cpp:264)
==1011==    by 0x4905321: WebCore::FrameLoader::begin(WebCore::KURL const&amp;, bool, WebCore::SecurityOrigin*) (FrameLoader.cpp:937)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106646</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-01-22 14:29:26 -0800</bug_when>
    <thetext>Why is this tagged as being a GTK-only bug?  I don&apos;t see anything in the stack trace to imply that it is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106712</commentid>
    <comment_count>2</comment_count>
    <who name="Craig Schlenter">craig.schlenter</who>
    <bug_when>2009-01-23 00:10:51 -0800</bug_when>
    <thetext>See bug 22834 .. I think it&apos;s the same thing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111548</commentid>
    <comment_count>3</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2009-02-27 14:12:04 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 22834 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>