<?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>87744</bug_id>
          
          <creation_ts>2012-05-29 07:05:14 -0700</creation_ts>
          <short_desc>[GTK] [WK2] Reproducible crash in performDragControllerAction</short_desc>
          <delta_ts>2012-05-29 09:49:13 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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>1</everconfirmed>
          <reporter name="Sudarsana Nagineni (babu)">naginenis</reporter>
          <assigned_to name="Sudarsana Nagineni (babu)">naginenis</assigned_to>
          <cc>gustavo</cc>
    
    <cc>mrobinson</cc>
    
    <cc>pnormand</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>635987</commentid>
    <comment_count>0</comment_count>
    <who name="Sudarsana Nagineni (babu)">naginenis</who>
    <bug_when>2012-05-29 07:05:14 -0700</bug_when>
    <thetext>Steps to reproduce:
1. Open ./MiniBrowser http://www.google.com
2. Drag and drop the image on the page.

#0  0x00007f5ebea95d71 in WTF::RefCountedBase::~RefCountedBase (this=0x2eaafb0, __in_chrg=&lt;optimized out&gt;) at ../../Source/WTF/wtf/RefCounted.h:122
122	        ASSERT(m_deletionHasBegun);
(gdb) bt
#0  0x00007f5ebea95d71 in WTF::RefCountedBase::~RefCountedBase (this=0x2eaafb0, __in_chrg=&lt;optimized out&gt;) at ../../Source/WTF/wtf/RefCounted.h:122
#1  0x00007f5ebeac7834 in WTF::RefCounted&lt;WebCore::DataObjectGtk&gt;::~RefCounted (this=0x2eaafb0, __in_chrg=&lt;optimized out&gt;) at ../../Source/WTF/wtf/RefCounted.h:197
#2  0x00007f5ebeac8464 in WebCore::DataObjectGtk::~DataObjectGtk (this=0x2eaafb0, __in_chrg=&lt;optimized out&gt;) at ../../Source/WebCore/platform/gtk/DataObjectGtk.h:32
#3  0x00007f5ebecb0c8a in WebKit::WebPage::performDragControllerAction (this=0x23e9da0, action=0, dragData=...) at ../../Source/WebKit2/WebProcess/WebPage/WebPage.cpp:2183
#4  0x00007f5ebeceedaf in CoreIPC::callMemberFunction&lt;WebKit::WebPage, void (WebKit::WebPage::*)(unsigned long, WebCore::DragData), unsigned long, WebCore::DragData&gt; (args=..., object=0x23e9da0, function=
    (void (WebKit::WebPage::*)(WebKit::WebPage * const, unsigned long, WebCore::DragData)) 0x7f5ebecb0a26 &lt;WebKit::WebPage::performDragControllerAction(unsigned long, WebCore::DragData)&gt;)
    at ../../Source/WebKit2/Platform/CoreIPC/HandleMessage.h:25
#5  0x00007f5ebeced447 in CoreIPC::handleMessage&lt;Messages::WebPage::PerformDragControllerAction, WebKit::WebPage, void (WebKit::WebPage::*)(unsigned long, WebCore::DragData)&gt; (argumentDecoder=
    0x7f5ea4001e90, object=0x23e9da0, function=
    (void (WebKit::WebPage::*)(WebKit::WebPage * const, unsigned long, WebCore::DragData)) 0x7f5ebecb0a26 &lt;WebKit::WebPage::performDragControllerAction(unsigned long, WebCore::DragData)&gt;)
    at ../../Source/WebKit2/Platform/CoreIPC/HandleMessage.h:302
#6  0x00007f5ebeceb210 in WebKit::WebPage::didReceiveWebPageMessage (this=0x23e9da0, messageID=..., arguments=0x7f5ea4001e90) at DerivedSources/WebKit2/WebPageMessageReceiver.cpp:324
#7  0x00007f5ebecb1b88 in WebKit::WebPage::didReceiveMessage (this=0x23e9da0, connection=0x20fc550, messageID=..., arguments=0x7f5ea4001e90) at ../../Source/WebKit2/WebProcess/WebPage/WebPage.cpp:2581
#8  0x00007f5ebecc1a92 in WebKit::WebProcess::didReceiveMessage (this=0x20fc030, connection=0x20fc550, messageID=..., arguments=0x7f5ea4001e90) at ../../Source/WebKit2/WebProcess/WebProcess.cpp:683
#9  0x00007f5ebecbfb56 in WebKit::WebConnectionToUIProcess::didReceiveMessage (this=0x20fc500, connection=0x20fc550, messageID=..., arguments=0x7f5ea4001e90)
    at ../../Source/WebKit2/WebProcess/WebConnectionToUIProcess.cpp:87
#10 0x00007f5ebea9bdcb in CoreIPC::Connection::dispatchMessage (this=0x20fc550, message=...) at ../../Source/WebKit2/Platform/CoreIPC/Connection.cpp:691
#11 0x00007f5ebea9bf69 in CoreIPC::Connection::dispatchOneMessage (this=0x20fc550) at ../../Source/WebKit2/Platform/CoreIPC/Connection.cpp:717
#12 0x00007f5ebeaa6106 in WTF::FunctionWrapper&lt;void (CoreIPC::Connection::*)()&gt;::operator() (this=0x7f5ea40011d0, c=0x20fc550) at ../../Source/WTF/wtf/Functional.h:173
#13 0x00007f5ebeaa5f0c in WTF::BoundFunctionImpl&lt;WTF::FunctionWrapper&lt;void (CoreIPC::Connection::*)()&gt;, void (CoreIPC::Connection*)&gt;::operator()() (this=0x7f5ea40011c0)
    at ../../Source/WTF/wtf/Functional.h:405
#14 0x00007f5ebeaaaf4e in WTF::Function&lt;void ()&gt;::operator()() const (this=0x7f5ea4001ef0) at ../../Source/WTF/wtf/Functional.h:613
#15 0x00007f5ebf591ec5 in WebCore::RunLoop::performWork (this=0x20fbef0) at ../../Source/WebCore/platform/RunLoop.cpp:67
#16 0x00007f5ebff943b6 in WebCore::RunLoop::queueWork (runLoop=0x20fbef0) at ../../Source/WebCore/platform/gtk/RunLoopGtk.cpp:102
#17 0x00007f5eb818ac9a in g_main_dispatch (context=0x1fed470) at /build/buildd/glib2.0-2.32.1/./glib/gmain.c:2515
#18 g_main_context_dispatch (context=0x1fed470) at /build/buildd/glib2.0-2.32.1/./glib/gmain.c:3052
#19 0x00007f5eb818b060 in g_main_context_iterate (dispatch=1, block=&lt;optimized out&gt;, context=0x1fed470, self=&lt;optimized out&gt;) at /build/buildd/glib2.0-2.32.1/./glib/gmain.c:3123
#20 g_main_context_iterate (context=0x1fed470, block=&lt;optimized out&gt;, dispatch=1, self=&lt;optimized out&gt;) at /build/buildd/glib2.0-2.32.1/./glib/gmain.c:3060
#21 0x00007f5eb818b45a in g_main_loop_run (loop=0x20fbf80) at /build/buildd/glib2.0-2.32.1/./glib/gmain.c:3317
#22 0x00007f5ebff94120 in WebCore::RunLoop::run () at ../../Source/WebCore/platform/gtk/RunLoopGtk.cpp:59
#23 0x00007f5ebec0487e in WebKit::WebProcessMainGtk (argc=2, argv=0x7fff5b919088) at ../../Source/WebKit2/WebProcess/gtk/WebProcessMainGtk.cpp:73
#24 0x0000000000400784 in main (argc=2, argv=0x7fff5b919088) at ../../Source/WebKit2/gtk/MainGtk.cpp:31
(gdb)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>636026</commentid>
    <comment_count>1</comment_count>
    <who name="Sudarsana Nagineni (babu)">naginenis</who>
    <bug_when>2012-05-29 08:02:04 -0700</bug_when>
    <thetext>I think we should use deref() instead of delete to destroy the platformData
since the DataObjectGtk is inherited from RefCounted.

http://trac.webkit.org/browser/trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp#L2183</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>636084</commentid>
    <comment_count>2</comment_count>
      <attachid>144569</attachid>
    <who name="Sudarsana Nagineni (babu)">naginenis</who>
    <bug_when>2012-05-29 09:02:13 -0700</bug_when>
    <thetext>Created attachment 144569
patch

Use deref() instead of delete to release refcounted DataObjectGtk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>636139</commentid>
    <comment_count>3</comment_count>
      <attachid>144569</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-05-29 09:49:09 -0700</bug_when>
    <thetext>Comment on attachment 144569
patch

Clearing flags on attachment: 144569

Committed r118796: &lt;http://trac.webkit.org/changeset/118796&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>636140</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-05-29 09:49:13 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>144569</attachid>
            <date>2012-05-29 09:02:13 -0700</date>
            <delta_ts>2012-05-29 09:49:09 -0700</delta_ts>
            <desc>patch</desc>
            <filename>87744.patch</filename>
            <type>text/plain</type>
            <size>1948</size>
            <attacher name="Sudarsana Nagineni (babu)">naginenis</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQyL0No
YW5nZUxvZwppbmRleCA5YzhlZmE4Li5kZTA5OTNkIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViS2l0
Mi9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTYg
QEAKKzIwMTItMDUtMjkgIFN1ZGFyc2FuYSBOYWdpbmVuaSAgPHN1ZGFyc2FuYS5uYWdpbmVuaUBs
aW51eC5pbnRlbC5jb20+CisKKyAgICAgICAgW0dUS10gW1dLMl0gUmVwcm9kdWNpYmxlIGNyYXNo
IGluIHBlcmZvcm1EcmFnQ29udHJvbGxlckFjdGlvbgorICAgICAgICBodHRwczovL2J1Z3Mud2Vi
a2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9ODc3NDQKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JP
RFkg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