<?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>21390</bug_id>
          
          <creation_ts>2008-10-05 13:44:13 -0700</creation_ts>
          <short_desc>[Gtk] Linux/Gtk: GtkLauncher crashes on Acid3 (but after test 80 this time)</short_desc>
          <delta_ts>2008-10-14 07:33:50 -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>PC</rep_platform>
          <op_sys>Linux</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="Clemmitt Sigler">cmsigler</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>alp</cc>
    
    <cc>camaradetux</cc>
    
    <cc>jmalonzo</cc>
    
    <cc>riccardo.magliocchetti</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>94167</commentid>
    <comment_count>0</comment_count>
    <who name="Clemmitt Sigler">cmsigler</who>
    <bug_when>2008-10-05 13:44:13 -0700</bug_when>
    <thetext>Hi,

I feel like a persistent bearer of bad news :^(  Thanks to Dave Hyatt, a previous Acid3 crash was fixed under Linux/Gtk.  But now Acid3 crashes again, later on, around test 80 out of 100.  This is running trunk r37317.

This time I&apos;ve actually got a backtrace! --&gt;

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb58db8e0 (LWP 21108)]
0xb7b53abc in WebCore::ScrollView::platformRemoveChild ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
(gdb) backtrace
#0  0xb7b53abc in WebCore::ScrollView::platformRemoveChild ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#1  0xb78ef707 in WebCore::ScrollView::removeChild ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#2  0xb78f00bd in WebCore::ScrollView::setHasHorizontalScrollbar ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#3  0xb78c65bf in WebCore::FrameView::~FrameView ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#4  0xb799c9ad in WebCore::RenderPart::~RenderPart ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#5  0xb799cf40 in WebCore::RenderPartObject::~RenderPartObject ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#6  0xb799648c in WebCore::RenderObject::arenaDelete ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#7  0xb79c3199 in WebCore::RenderWidget::deref ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#8  0xb79c3a16 in WebCore::RenderWidget::destroy ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#9  0xb7727dd9 in WebCore::Node::detach ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#10 0xb76f2eae in WebCore::ContainerNode::detach ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#11 0xb771886b in WebCore::Element::detach ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#12 0xb76f2e9b in WebCore::ContainerNode::detach ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#13 0xb771886b in WebCore::Element::detach ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#14 0xb76f4d19 in WebCore::ContainerNode::removeChild ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#15 0xb7662a87 in WebCore::JSNode::removeChild ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#16 0xb7c3ae03 in WebCore::jsNodePrototypeFunctionRemoveChild ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#17 0xb7e503e6 in JSC::Machine::privateExecute ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#18 0xb7e54ead in JSC::Machine::execute ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#19 0xb7d9919f in JSC::call ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#20 0xb766b0e7 in WebCore::ScheduledAction::execute ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#21 0xb7644dae in WebCore::JSDOMWindowBase::timerFired ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#22 0xb7644f3d in WebCore::DOMWindowTimer::fired ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#23 0xb78f3bcb in WebCore::TimerBase::fireTimers ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#24 0xb78f3f07 in WebCore::TimerBase::sharedTimerFired ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#25 0xb7b54f5e in WebCore::timeout_cb ()
   from /opt/siglercm/webkit/WebKit/.libs/libwebkit-1.0.so.1
#26 0xb5b72441 in ?? () from /usr/lib/libglib-2.0.so.0
#27 0x00000000 in ?? ()

HTH.

Clemmitt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94169</commentid>
    <comment_count>1</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2008-10-05 13:53:02 -0700</bug_when>
    <thetext>Can you tell what is returning null?  Is it hostWindow()?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94171</commentid>
    <comment_count>2</comment_count>
    <who name="Jan Alonzo">jmalonzo</who>
    <bug_when>2008-10-05 14:22:21 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Can you tell what is returning null?  Is it hostWindow()?
&gt; 

Hi Dave, Yes it&apos;s hostWindow that&apos;s returning NULL. Is it possible not to have a hostWindow before remove the child? Should we check if this is the case?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94191</commentid>
    <comment_count>3</comment_count>
      <attachid>24106</attachid>
    <who name="Jan Alonzo">jmalonzo</who>
    <bug_when>2008-10-05 18:21:22 -0700</bug_when>
    <thetext>Created attachment 24106
patch to use the child&apos;s parent if HostWindow is null

Remove the child from its parent if HostWindow is null. This makes Gtk pass acid3 again. But is it possible to have a null HostWindow when removing a child?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94197</commentid>
    <comment_count>4</comment_count>
    <who name="Clemmitt Sigler">cmsigler</who>
    <bug_when>2008-10-05 19:36:48 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Remove the child from its parent if HostWindow is null. This makes Gtk pass
&gt; acid3 again.

Yup, looooking goooood.  Applied to r37322 and the problem is fixed.  Webkit, the little browser engine that could :^)  Thanks very much.

Clemmitt
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94201</commentid>
    <comment_count>5</comment_count>
    <who name="Alp Toker">alp</who>
    <bug_when>2008-10-05 20:53:54 -0700</bug_when>
    <thetext>I&apos;m not too sure that making platformAddChild()/platformRemoveChild() asymmetric is a good idea. Hyatt would know better, but maybe it&apos;s best to add a null check for hostWindow() in both and to leave it at that.

Either way, looks like this is exposing a bug elsewhere, possibly the new platform scrollbar code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94215</commentid>
    <comment_count>6</comment_count>
    <who name="Adrien Nader">camaradetux</who>
    <bug_when>2008-10-06 01:23:16 -0700</bug_when>
    <thetext>Just for the record, gmail&apos;s standard ui (so the heavy one) triggers the same crash when opening a mail conversation. The backtrace is the same up to 20.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94742</commentid>
    <comment_count>7</comment_count>
    <who name="Adrien Nader">camaradetux</who>
    <bug_when>2008-10-09 09:07:38 -0700</bug_when>
    <thetext>And mininova too suffer from this, and apple.com (or store.apple.com), and google video, and ... and ... and ...
In fact 75% of the websites can probably crash webkit provided the window is small enough (look at the backtraces : &quot;Scrollbar&quot;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94743</commentid>
    <comment_count>8</comment_count>
    <who name="Alp Toker">alp</who>
    <bug_when>2008-10-09 09:15:12 -0700</bug_when>
    <thetext>Landed in r37447. Think we&apos;ll need to look closely at the recent changes some time to make sure they&apos;re doing the right thing following the introduction of HostWindow etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94990</commentid>
    <comment_count>9</comment_count>
    <who name="Jan Alonzo">jmalonzo</who>
    <bug_when>2008-10-11 13:42:01 -0700</bug_when>
    <thetext>*** Bug 21240 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95289</commentid>
    <comment_count>10</comment_count>
      <attachid>24106</attachid>
    <who name="Jan Alonzo">jmalonzo</who>
    <bug_when>2008-10-14 07:33:50 -0700</bug_when>
    <thetext>Comment on attachment 24106
patch to use the child&apos;s parent if HostWindow is null

Setting to r+ as Alp already r+&apos;d it and patch already landed.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>24106</attachid>
            <date>2008-10-05 18:21:22 -0700</date>
            <delta_ts>2008-10-14 07:33:50 -0700</delta_ts>
            <desc>patch to use the child&apos;s parent if HostWindow is null</desc>
            <filename>acid3-test80-gtk.patch</filename>
            <type>text/plain</type>
            <size>1649</size>
            <attacher name="Jan Alonzo">jmalonzo</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dl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SG9yaXpvbnRhbEFkanVzdG1lbnQoY29uc3QgSW50U2l6ZSYgc2Nyb2xsKQo=
</data>
<flag name="review"
          id="10935"
          type_id="1"
          status="+"
          setter="jmalonzo"
    />
          </attachment>
      

    </bug>

</bugzilla>