<?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>131439</bug_id>
          
          <creation_ts>2014-04-09 07:42:09 -0700</creation_ts>
          <short_desc>[WK2] WebProcess crashes, when closing window after opening page by means of context menu</short_desc>
          <delta_ts>2014-04-11 18:56:35 -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>WebKit2</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="Maciej Florek">m.florek</reporter>
          <assigned_to name="Hyowon Kim">hw1008.kim</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>hw1008.kim</cc>
    
    <cc>thorton</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>999174</commentid>
    <comment_count>0</comment_count>
    <who name="Maciej Florek">m.florek</who>
    <bug_when>2014-04-09 07:42:09 -0700</bug_when>
    <thetext>When running Minibrowser in shared process mode, after opening page in new window by means of &quot;Open link in new window&quot; context menu option, after closing any of two windows, WebProcess crashes.

Stack trace:

Program received signal SIGSEGV, Segmentation fault.
0x00007fec3700076a in WebKit::PageOverlayController::notifyFlushRequired(WebCore::GraphicsLayer const*) ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WebKit2/WebProcess/WebPage/PageOverlayController.cpp:259
259	    m_webPage-&gt;drawingArea()-&gt;scheduleCompositingLayerFlush();
bt
#0  0x00007fec3700076a in WebKit::PageOverlayController::notifyFlushRequired(WebCore::GraphicsLayer const*) ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WebKit2/WebProcess/WebPage/PageOverlayController.cpp:259
#1  0x00007fec30c028d7 in WebCore::CoordinatedGraphicsLayer::notifyFlushRequired() ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:55
#2  0x00007fec30c02912 in WebCore::CoordinatedGraphicsLayer::didChangeLayerState() ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:64
#3  0x00007fec30c0647d in WebCore::CoordinatedGraphicsLayer::purgeBackingStores() ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:1056
#4  0x00007fec30bf3a3f in WebCore::CompositingCoordinator::purgeBackingStores() ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WebCore/platform/graphics/texmap/coordinated/CompositingCoordinator.cpp:369
#5  0x00007fec30bf24d2 in WebCore::CompositingCoordinator::~CompositingCoordinator() ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WebCore/platform/graphics/texmap/coordinated/CompositingCoordinator.cpp:48
#6  0x00007fec30bf261c in WebCore::CompositingCoordinator::~CompositingCoordinator() ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WebCore/platform/graphics/texmap/coordinated/CompositingCoordinator.cpp:53
#7  0x00007fec370d7186 in std::default_delete&lt;WebCore::CompositingCoordinator&gt;::operator()(WebCore::CompositingCoordinator*) const ()
    at /usr/include/c++/4.8/bits/unique_ptr.h:67
#8  0x00007fec370d6d85 in std::unique_ptr&lt;WebCore::CompositingCoordinator, std::default_delete&lt;WebCore::CompositingCoordinator&gt; &gt;::~unique_ptr() ()
    at /usr/include/c++/4.8/bits/unique_ptr.h:184
#9  0x00007fec370d5bfe in WebKit::CoordinatedLayerTreeHost::~CoordinatedLayerTreeHost() ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:55
#10 0x00007fec370d5c3a in WebKit::CoordinatedLayerTreeHost::~CoordinatedLayerTreeHost() ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:57
#11 0x00007fec36ffeaa0 in WTF::RefCounted&lt;WebKit::LayerTreeHost&gt;::deref() () at /home/mflorek/webkit-local-efl/webkit.org/Source/WTF/wtf/RefCounted.h:146
#12 0x00007fec370d5012 in void WTF::derefIfNotNull&lt;WebKit::LayerTreeHost&gt;(WebKit::LayerTreeHost*) ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WTF/wtf/PassRefPtr.h:39
#13 0x00007fec370d4c8b in WTF::RefPtr&lt;WebKit::LayerTreeHost&gt;::~RefPtr() () at /home/mflorek/webkit-local-efl/webkit.org/Source/WTF/wtf/RefPtr.h:55
#14 0x00007fec370d1eaa in WebKit::CoordinatedDrawingArea::~CoordinatedDrawingArea() ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.cpp:47
#15 0x00007fec370d1f1a in WebKit::CoordinatedDrawingArea::~CoordinatedDrawingArea() ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.cpp:51
#16 0x00007fec37029b32 in std::default_delete&lt;WebKit::DrawingArea&gt;::operator()(WebKit::DrawingArea*) const () at /usr/include/c++/4.8/bits/unique_ptr.h:67
#17 0x00007fec3702a606 in std::unique_ptr&lt;WebKit::DrawingArea, std::default_delete&lt;WebKit::DrawingArea&gt; &gt;::reset(WebKit::DrawingArea*) ()
    at /usr/include/c++/4.8/bits/unique_ptr.h:262
#18 0x00007fec370279b3 in std::unique_ptr&lt;WebKit::DrawingArea, std::default_delete&lt;WebKit::DrawingArea&gt; &gt;::operator=(decltype(nullptr)) ()
    at /usr/include/c++/4.8/bits/unique_ptr.h:213
#19 0x00007fec370163c7 in WebKit::WebPage::close() () at /home/mflorek/webkit-local-efl/webkit.org/Source/WebKit2/WebProcess/WebPage/WebPage.cpp:902
#20 0x00007fec3713dab2 in _ZN3IPC22callMemberFunctionImplIN6WebKit7WebPageEMS2_FvvESt5tupleIJEEJEEEvPT_T0_OT1_St14index_sequenceIJXspT2_EEE ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WebKit2/Platform/IPC/HandleMessage.h:16
#21 0x00007fec3713c418 in _ZN3IPC18callMemberFunctionIN6WebKit7WebPageEMS2_FvvESt5tupleIJEESt19make_index_sequenceILm0EEEEvOT1_PT_T0_ ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WebKit2/Platform/IPC/HandleMessage.h:22
#22 0x00007fec37139abe in void IPC::handleMessage&lt;Messages::WebPage::Close, WebKit::WebPage, void (WebKit::WebPage::*)()&gt;(IPC::MessageDecoder&amp;, WebKit::WebPage*, void (WebKit::WebPage::*)()) () at /home/mflorek/webkit-local-efl/webkit.org/Source/WebKit2/Platform/IPC/HandleMessage.h:117
#23 0x00007fec37135c80 in WebKit::WebPage::didReceiveWebPageMessage(IPC::Connection*, IPC::MessageDecoder&amp;) ()
    at /home/mflorek/webkit-local-efl/webkit.org/WebKitBuild/Debug/DerivedSources/WebKit2/WebPageMessageReceiver.cpp:479
#24 0x00007fec3701f711 in WebKit::WebPage::didReceiveMessage(IPC::Connection*, IPC::MessageDecoder&amp;) ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WebKit2/WebProcess/WebPage/WebPage.cpp:3267
#25 0x00007fec36d9534c in IPC::MessageReceiverMap::dispatchMessage(IPC::Connection*, IPC::MessageDecoder&amp;) ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WebKit2/Platform/IPC/MessageReceiverMap.cpp:87
#26 0x00007fec36f3650d in WebKit::WebProcess::didReceiveMessage(IPC::Connection*, IPC::MessageDecoder&amp;) ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WebKit2/WebProcess/WebProcess.cpp:594
#27 0x00007fec36d83b9a in IPC::Connection::dispatchMessage(IPC::MessageDecoder&amp;) ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WebKit2/Platform/IPC/Connection.cpp:770
#28 0x00007fec36d83c66 in IPC::Connection::dispatchMessage(std::unique_ptr&lt;IPC::MessageDecoder, std::default_delete&lt;IPC::MessageDecoder&gt; &gt;) ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WebKit2/Platform/IPC/Connection.cpp:791
#29 0x00007fec36d83e27 in IPC::Connection::dispatchOneMessage() () at /home/mflorek/webkit-local-efl/webkit.org/Source/WebKit2/Platform/IPC/Connection.cpp:817
#30 0x00007fec36d946ed in WTF::FunctionWrapper&lt;void (IPC::Connection::*)()&gt;::operator()(IPC::Connection*) ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WTF/wtf/Functional.h:218
#31 0x00007fec36d94460 in WTF::BoundFunctionImpl&lt;WTF::FunctionWrapper&lt;void (IPC::Connection::*)()&gt;, void (IPC::Connection*)&gt;::operator()() ()
    at /home/mflorek/webkit-local-efl/webkit.org/Source/WTF/wtf/Functional.h:496
#32 0x00007fec36d7325f in WTF::Function&lt;void ()&gt;::operator()() const () at /home/mflorek/webkit-local-efl/webkit.org/Source/WTF/wtf/Functional.h:704
#33 0x00007fec36d71c15 in std::_Function_handler&lt;void (), WTF::Function&lt;void ()&gt; &gt;::_M_invoke(std::_Any_data const&amp;) () at /usr/include/c++/4.8/functional:2071
#34 0x00007fec36d668ee in std::function&lt;void ()&gt;::operator()() const () at /usr/include/c++/4.8/functional:2468
#35 0x00007fec37146730 in WTF::RunLoop::performWork() () at /home/mflorek/webkit-local-efl/webkit.org/Source/WTF/wtf/RunLoop.cpp:119
#36 0x00007fec3714789a in WTF::RunLoop::wakeUpEvent(void*, void*, unsigned int) () at /home/mflorek/webkit-local-efl/webkit.org/Source/WTF/wtf/efl/RunLoopEfl.cpp:68
#37 0x00007fec2c623497 in _ecore_pipe_read () from /home/mflorek/webkit-local-efl/webkit.org/WebKitBuild/Dependencies/Root/lib64/libecore.so.1
#38 0x00007fec2c622571 in _ecore_main_loop_iterate_internal () from /home/mflorek/webkit-local-efl/webkit.org/WebKitBuild/Dependencies/Root/lib64/libecore.so.1
#39 0x00007fec2c6229b7 in ecore_main_loop_begin () from /home/mflorek/webkit-local-efl/webkit.org/WebKitBuild/Dependencies/Root/lib64/libecore.so.1
#40 0x00007fec3714782b in WTF::RunLoop::run() () at /home/mflorek/webkit-local-efl/webkit.org/Source/WTF/wtf/efl/RunLoopEfl.cpp:51
#41 0x00007fec370d9b71 in WebProcessMainEfl () at /home/mflorek/webkit-local-efl/webkit.org/Source/WebKit2/WebProcess/efl/WebProcessMainEfl.cpp:126
#42 0x0000000000400850 in main ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>999807</commentid>
    <comment_count>1</comment_count>
    <who name="Hyowon Kim">hw1008.kim</who>
    <bug_when>2014-04-10 23:40:16 -0700</bug_when>
    <thetext>Hi, Maciej Florek. Can I take over this bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>999825</commentid>
    <comment_count>2</comment_count>
    <who name="Maciej Florek">m.florek</who>
    <bug_when>2014-04-11 01:04:20 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Hi, Maciej Florek. Can I take over this bug?

Sure, go ahead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1000143</commentid>
    <comment_count>3</comment_count>
      <attachid>229190</attachid>
    <who name="Hyowon Kim">hw1008.kim</who>
    <bug_when>2014-04-11 18:20:49 -0700</bug_when>
    <thetext>Created attachment 229190
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1000149</commentid>
    <comment_count>4</comment_count>
      <attachid>229190</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-04-11 18:56:32 -0700</bug_when>
    <thetext>Comment on attachment 229190
Patch

Clearing flags on attachment: 229190

Committed r167178: &lt;http://trac.webkit.org/changeset/167178&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1000150</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-04-11 18:56:35 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>229190</attachid>
            <date>2014-04-11 18:20:49 -0700</date>
            <delta_ts>2014-04-11 18:56:32 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-131439-20140412102028.patch</filename>
            <type>text/plain</type>
            <size>1761</size>
            <attacher name="Hyowon Kim">hw1008.kim</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTY3MDEwCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0Mi9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViS2l0Mi9DaGFuZ2VMb2cKaW5kZXggOGY3MDk1YzMxMDhiZDg0
MmU5MzFlNTI5NTIwODM2MDI2OGE0NjMzZS4uMWQxZjVmYWY3Nzc5NjBkMGQwNmU4YjA3ZWE0NTQx
ZDRmMGYxOTY1ZSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJLaXQyL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE3IEBACisyMDE0LTA0LTExICBIeW93
b24gS2ltICA8aHcxMDA4LmtpbUBzYW1zdW5nLmNvbT4KKworICAgICAgICBbV0syXSBXZWJQcm9j
ZXNzIGNyYXNoZXMsIHdoZW4gY2xvc2luZyB3aW5k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