<?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>139052</bug_id>
          
          <creation_ts>2014-11-25 12:04:26 -0800</creation_ts>
          <short_desc>ASSERTION FAILED: hostElement in WebCore::eventTargetRespectingTargetRules</short_desc>
          <delta_ts>2016-08-04 10:43:00 -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>UI Events</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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>
          
          <blocked>116980</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Renata Hodovan">rhodovan.u-szeged</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andersca</cc>
    
    <cc>bfulgham</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1051028</commentid>
    <comment_count>0</comment_count>
      <attachid>242207</attachid>
    <who name="Renata Hodovan">rhodovan.u-szeged</who>
    <bug_when>2014-11-25 12:04:26 -0800</bug_when>
    <thetext>Created attachment 242207
Test case

Load this test with debug WebKit:

&lt;q&gt;&lt;/q&gt;

&lt;object&gt;&lt;/object&gt;
&lt;body&gt;
    &lt;li&gt;&lt;/li&gt;
    &lt;audio controls&gt;
        &lt;source type=&quot;vnd.music-niff&quot;&gt;&lt;/source&gt;
    &lt;/audio&gt;
&lt;/body&gt;
&lt;style&gt;
:before {
    transition-duration:1ms;
}
* {
    border-spacing: 1;
}
&lt;/style&gt;
&lt;script&gt;
    document.designMode = &apos;on&apos;;
    document.execCommand(&quot;selectAll&quot;, false, null);
    document.execCommand(&quot;removeFormat&quot; , false , null);
&lt;/script&gt;

Notes:
a) Don&apos;t remove the newline after the &lt;q&gt; tag.
b) Supplying the doctype definition &quot;solves&quot; the issue.


Backtrace:

ASSERTION FAILED: hostElement
../../Source/WebCore/dom/EventDispatcher.cpp(210) : WebCore::EventTarget&amp; WebCore::eventTargetRespectingTargetRules(WebCore::Node&amp;)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff98c4e700 (LWP 1600)]
0x00007fffedc7ea89 in WTFCrash () at ../../Source/WTF/wtf/Assertions.cpp:321
321	    *(int *)(uintptr_t)0xbbadbeef = 0;
#0  0x00007fffedc7ea89 in WTFCrash () at ../../Source/WTF/wtf/Assertions.cpp:321
#1  0x00007ffff3155dc1 in WebCore::eventTargetRespectingTargetRules (referenceNode=...) at ../../Source/WebCore/dom/EventDispatcher.cpp:210
#2  0x00007ffff3154245 in WebCore::EventDispatcher::dispatchEvent (origin=0x8e8d10, prpEvent=...) at ../../Source/WebCore/dom/EventDispatcher.cpp:353
#3  0x00007ffff318f892 in WebCore::Node::dispatchEvent (this=0x8e8d10, event=...) at ../../Source/WebCore/dom/Node.cpp:2043
#4  0x00007ffff37878c8 in WebCore::AnimationControllerPrivate::fireEventsAndUpdateStyle (this=0x83cb70) at ../../Source/WebCore/page/animation/AnimationController.cpp:180
#5  0x00007ffff378773e in WebCore::AnimationControllerPrivate::updateStyleIfNeededDispatcherFired (this=0x83cb70) at ../../Source/WebCore/page/animation/AnimationController.cpp:164
#6  0x00007ffff378f6b5 in std::_Mem_fn&lt;void (WebCore::AnimationControllerPrivate::*)()&gt;::operator()&lt;, void&gt;(WebCore::AnimationControllerPrivate*) const (this=0x83cd30, __object=0x83cb70) at /usr/include/c++/4.8/functional:601
#7  0x00007ffff378ed62 in std::_Bind&lt;std::_Mem_fn&lt;void (WebCore::AnimationControllerPrivate::*)()&gt; (WebCore::AnimationControllerPrivate*)&gt;::__call&lt;void, , 0ul&gt;(std::tuple&lt;&gt;&amp;&amp;, std::_Index_tuple&lt;0ul&gt;) (this=0x83cd30, __args=&lt;unknown type in /home/reni/data/REPOS/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.0.so.37, CU 0x30b6f2c1, DIE 0x30c9315a&gt;) at /usr/include/c++/4.8/functional:1296
#8  0x00007ffff378dfbe in std::_Bind&lt;std::_Mem_fn&lt;void (WebCore::AnimationControllerPrivate::*)()&gt; (WebCore::AnimationControllerPrivate*)&gt;::operator()&lt;, void&gt;() (this=0x83cd30) at /usr/include/c++/4.8/functional:1355
#9  0x00007ffff378cb3b in std::_Function_handler&lt;void (), std::_Bind&lt;std::_Mem_fn&lt;void (WebCore::AnimationControllerPrivate::*)()&gt; (WebCore::AnimationControllerPrivate*)&gt; &gt;::_M_invoke(std::_Any_data const&amp;) (__functor=...) at /usr/include/c++/4.8/functional:2071
#10 0x00007ffff279f32a in std::function&lt;void ()&gt;::operator()() const (this=0x83cc28) at /usr/include/c++/4.8/functional:2464
#11 0x00007ffff279cca0 in WebCore::Timer::fired (this=0x83cbf0) at ../../Source/WebCore/platform/Timer.h:132
#12 0x00007ffff37f11eb in WebCore::ThreadTimers::sharedTimerFiredInternal (this=0x64d0d0) at ../../Source/WebCore/platform/ThreadTimers.cpp:132
#13 0x00007ffff37f1099 in WebCore::ThreadTimers::sharedTimerFired () at ../../Source/WebCore/platform/ThreadTimers.cpp:107
#14 0x00007ffff31640d0 in std::_Function_handler&lt;void (), void (*)()&gt;::_M_invoke(std::_Any_data const&amp;) (__functor=...) at /usr/include/c++/4.8/functional:2071
#15 0x00007ffff279f32a in std::function&lt;void ()&gt;::operator()() const (this=0x7fffffffd558) at /usr/include/c++/4.8/functional:2464
#16 0x00007fffedcc82f6 in WTF::GMainLoopSource::voidCallback (this=0x7ffff7dd39a0 &lt;WebCore::gSharedTimer&gt;) at ../../Source/WTF/wtf/gobject/GMainLoopSource.cpp:365
#17 0x00007fffedcc8a67 in WTF::GMainLoopSource::voidSourceCallback (source=0x7ffff7dd39a0 &lt;WebCore::gSharedTimer&gt;) at ../../Source/WTF/wtf/gobject/GMainLoopSource.cpp:456
#18 0x00007fffedcc7473 in WTF::__lambda0::operator() (__closure=0x0, source=0x58a180, callback=0x7fffedcc8a44 &lt;WTF::GMainLoopSource::voidSourceCallback(WTF::GMainLoopSource*)&gt;, userData=0x7ffff7dd39a0 &lt;WebCore::gSharedTimer&gt;) at ../../Source/WTF/wtf/gobject/GMainLoopSource.cpp:248
#19 0x00007fffedcc74e1 in WTF::__lambda0::_FUN (source=0x58a180, callback=0x7fffedcc8a44 &lt;WTF::GMainLoopSource::voidSourceCallback(WTF::GMainLoopSource*)&gt;, userData=0x7ffff7dd39a0 &lt;WebCore::gSharedTimer&gt;) at ../../Source/WTF/wtf/gobject/GMainLoopSource.cpp:252
#20 0x00007fffeaafea2d in g_main_dispatch (context=0x478020) at gmain.c:3064
#21 g_main_context_dispatch (context=context@entry=0x478020) at gmain.c:3663
#22 0x00007fffeaafed98 in g_main_context_iterate (context=0x478020, block=block@entry=1, dispatch=dispatch@entry=1, self=&lt;optimized out&gt;) at gmain.c:3734
#23 0x00007fffeaaff05a in g_main_loop_run (loop=0x9015f0) at gmain.c:3928
#24 0x00007ffff464b42e in WTF::RunLoop::run () at ../../Source/WTF/wtf/gtk/RunLoopGtk.cpp:59
#25 0x00007ffff2bb8250 in WebKit::ChildProcessMain&lt;WebKit::WebProcess, WebKit::WebProcessMain&gt; (argc=2, argv=0x7fffffffd968) at ../../Source/WebKit2/Shared/unix/ChildProcessMain.h:61
#26 0x00007ffff2bb80b5 in WebKit::WebProcessMainUnix (argc=2, argv=0x7fffffffd968) at ../../Source/WebKit2/WebProcess/gtk/WebProcessMainGtk.cpp:73
#27 0x0000000000400891 in main (argc=2, argv=0x7fffffffd968) at ../../Source/WebKit2/WebProcess/EntryPoint/unix/WebProcessMain.cpp:44</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1217467</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2016-08-04 10:43:00 -0700</bug_when>
    <thetext>This issue no longer happens in r204037 under GuardMalloc or ASAN. If you believe there is still an issue, please reopen this bug with a revised test case.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>242207</attachid>
            <date>2014-11-25 12:04:26 -0800</date>
            <delta_ts>2014-11-25 12:04:26 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>crash.html</filename>
            <type>text/html</type>
            <size>384</size>
            <attacher name="Renata Hodovan">rhodovan.u-szeged</attacher>
            
              <data encoding="base64">PHE+PC9xPgoKPG9iamVjdD48L29iamVjdD4KPGJvZHk+CiAgICA8bGk+PC9saT4KICAgIDxhdWRp
byBjb250cm9scz4KICAgICAgICA8c291cmNlIHR5cGU9InZuZC5tdXNpYy1uaWZmIj48L3NvdXJj
ZT4KICAgIDwvYXVkaW8+CjwvYm9keT4KPHN0eWxlPgo6YmVmb3JlIHsKICAgIHRyYW5zaXRpb24t
ZHVyYXRpb246MW1zOwp9CiogewogICAgYm9yZGVyLXNwYWNpbmc6IDE7Cn0KPC9zdHlsZT4KPHNj
cmlwdD4KICAgIGRvY3VtZW50LmRlc2lnbk1vZGUgPSAnb24nOwogICAgZG9jdW1lbnQuZXhlY0Nv
bW1hbmQoInNlbGVjdEFsbCIsIGZhbHNlLCBudWxsKTsKICAgIGRvY3VtZW50LmV4ZWNDb21tYW5k
KCJyZW1vdmVGb3JtYXQiICwgZmFsc2UgLCBudWxsKTsKPC9zY3JpcHQ+
</data>

          </attachment>
      

    </bug>

</bugzilla>