<?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>39970</bug_id>
          
          <creation_ts>2010-05-31 14:57:44 -0700</creation_ts>
          <short_desc>[Qt] Platform plugin crashes on exit.</short_desc>
          <delta_ts>2010-06-03 18:33:54 -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>WebKit Qt</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>39968</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yael">yael</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hausmann</cc>
    
    <cc>luiz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>232521</commentid>
    <comment_count>0</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2010-05-31 14:57:44 -0700</bug_when>
    <thetext>Using r60414, QtTestBrowser crashes on exit if the platform plugin is used in a page that contains a &lt;select&gt; element.


Here is gdb stack trace:

#1  0x005934d1 in *__GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0x00596932 in *__GI_abort () at abort.c:92
#3  0x005c9ee5 in __libc_message (do_abort=2, 
    fmt=0x68d578 &quot;*** glibc detected *** %s: %s: 0x%s ***\n&quot;)
    at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#4  0x005d3ff1 in malloc_printerr (action=&lt;value optimized out&gt;, 
    str=0x6 &lt;Address 0x6 out of bounds&gt;, ptr=0x86dda50) at malloc.c:6217
#5  0x005d56f2 in _int_free (av=&lt;value optimized out&gt;, p=&lt;value optimized out&gt;)
    at malloc.c:4750
#6  0x005d87cd in *__GI___libc_free (mem=0x86dda50) at malloc.c:3716
#7  0x004eb6f1 in operator delete(void*) () from /usr/lib/libstdc++.so.6
#8  0x0250adb9 in ~QtPlatformPlugin (this=0xb75014b8, 
    __in_chrg=&lt;value optimized out&gt;)
    at ../../../WebKit/qt/WebCoreSupport/QtPlatformPlugin.cpp:117
#9  0x024ee36e in ~ChromeClientQt (this=0xb7501470, 
    __in_chrg=&lt;value optimized out&gt;)
    at ../../../WebKit/qt/WebCoreSupport/ChromeClientQt.cpp:82
#10 0x024eee26 in WebCore::ChromeClientQt::chromeDestroyed (this=0xb7501470)
    at ../../../WebKit/qt/WebCoreSupport/ChromeClientQt.cpp:271
#11 0x022424c1 in ~Chrome (this=0xb7501240, __in_chrg=&lt;value optimized out&gt;)
    at ../../../WebCore/page/Chrome.cpp:67
---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---
#12 0x02296e35 in WTF::deleteOwnedPtr&lt;WebCore::Chrome&gt; (ptr=0xb7501240)
    at ../../../JavaScriptCore/wtf/OwnPtrCommon.h:55
#13 0x02295971 in ~OwnPtr (this=0xb7500a34, __in_chrg=&lt;value optimized out&gt;)
    at ../../../JavaScriptCore/wtf/OwnPtr.h:52
#14 0x02292a27 in ~Page (this=0xb7500a30, __in_chrg=&lt;value optimized out&gt;)
    at ../../../WebCore/page/Page.cpp:216
#15 0x02517a2e in ~QWebPagePrivate (this=0x81a3430, 
    __in_chrg=&lt;value optimized out&gt;) at ../../../WebKit/qt/Api/qwebpage.cpp:315
#16 0x0251c7f6 in ~QWebPage (this=0x81a33c0, __in_chrg=&lt;value optimized out&gt;)
    at ../../../WebKit/qt/Api/qwebpage.cpp:1707
#17 0x08077b56 in ~WebPage (this=0x81a33c0, __in_chrg=&lt;value optimized out&gt;)
    at ../../../../WebKitTools/QtTestBrowser/webpage.h:39
#18 0x002ca098 in QObjectPrivate::deleteChildren (this=0xb7501fa8)
    at kernel/qobject.cpp:1990
#19 0x03393bb5 in ~QWidget (this=0xb7501148, __in_chrg=&lt;value optimized out&gt;)
    at kernel/qwidget.cpp:1459
#20 0x03831b89 in ~QMainWindow (this=0xb7501148, 
    __in_chrg=&lt;value optimized out&gt;) at widgets/qmainwindow.cpp:342
#21 0x0806f7de in ~MainWindow (this=0xb7501148, 
    __in_chrg=&lt;value optimized out&gt;)
    at ../../../../WebKitTools/QtTestBrowser/mainwindow.h:41
#22 0x080666fb in ~LauncherWindow (this=0xb7501148, 
    __in_chrg=&lt;value optimized out&gt;)
---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---
    at ../../../../WebKitTools/QtTestBrowser/main.cpp:218
#23 0x002ce366 in qDeleteInEventHandler (o=0xb7501148)
    at kernel/qobject.cpp:4013
#24 0x002c8de8 in QObject::event (this=0xb7501148, e=0x81ca930)
    at kernel/qobject.cpp:1235
#25 0x033a65d1 in QWidget::event (this=0xb7501148, event=0x81ca930)
    at kernel/qwidget.cpp:8428
#26 0x03833dae in QMainWindow::event (this=0xb7501148, event=0x81ca930)
    at widgets/qmainwindow.cpp:1434
#27 0x0333ae2c in QApplicationPrivate::notify_helper (this=0x8134d68, 
    receiver=0xb7501148, e=0x81ca930) at kernel/qapplication.cpp:4242
#28 0x0333ac97 in QApplication::notify (this=0xbffff304, receiver=0xb7501148, 
    e=0x81ca930) at kernel/qapplication.cpp:4207
#29 0x002b140b in QCoreApplication::notifyInternal (this=0xbffff304, 
    receiver=0xb7501148, event=0x81ca930) at kernel/qcoreapplication.cpp:704
#30 0x0806f213 in QCoreApplication::sendEvent (receiver=0xb7501148, 
    event=0x81ca930)
    at /usr/local/Trolltech/Qt-4.6.0/include/QtCore/qcoreapplication.h:215
#31 0x002b24bf in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, 
    event_type=0, data=0x8134e50) at kernel/qcoreapplication.cpp:1345
#32 0x002b2177 in QCoreApplication::sendPostedEvents (receiver=0x0, 
    event_type=0) at kernel/qcoreapplication.cpp:1238
#33 0x0340c148 in QCoreApplication::sendPostedEvents ()
---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>232522</commentid>
    <comment_count>1</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2010-05-31 14:59:02 -0700</bug_when>
    <thetext>Please note that the crash is in webkit, not in the sample plugin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>232525</commentid>
    <comment_count>2</comment_count>
    <who name="Luiz Agostini">luiz</who>
    <bug_when>2010-05-31 15:23:36 -0700</bug_when>
    <thetext>It does not crashes in MacOS and that is why I did not notice the bug before releasing.

Kenneth has verified that the crashes does not appear with the patch in bug 39968 applied.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>232551</commentid>
    <comment_count>3</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2010-05-31 17:45:35 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; It does not crashes in MacOS and that is why I did not notice the bug before releasing.
&gt; 
&gt; Kenneth has verified that the crashes does not appear with the patch in bug 39968 applied.

Great! Looking forward for that patch to land.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>234026</commentid>
    <comment_count>4</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2010-06-03 18:33:54 -0700</bug_when>
    <thetext>Verified that this was fixed with r60593.
thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>