Bug 61376 - [Qt] plugin-document-has-focus.html crashes since r86870
Summary: [Qt] plugin-document-has-focus.html crashes since r86870
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Plug-ins (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Robert Hogan
URL:
Keywords: Qt, QtTriaged, Regression
Depends on:
Blocks: 60722
  Show dependency treegraph
 
Reported: 2011-05-24 11:08 PDT by Robert Hogan
Modified: 2012-12-26 07:13 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Hogan 2011-05-24 11:08:45 PDT
http://trac.webkit.org/changeset/86870

Note: This is with the patch at https://bugs.webkit.org/show_bug.cgi?id=60722 applied. I haven't confirmed if it crashes without it yet.

$ WebKitBuild/plugindocument-new/Release/bin/DumpRenderTree -v http://127.0.0.1:8000/plugins/plugin-document-has-focus.html
127.0.0.1 - - [24/May/2011:18:52:19 +0100] "GET /plugins/plugin-document-has-focus.html HTTP/1.1" 200 457
127.0.0.1 - - [24/May/2011:18:52:19 +0100] "GET /plugins/resources/plugin-document-has-focus.pl HTTP/1.1" 200 3
The program '<unknown>' received an X Window System error.
This probably reflects a bug in the program.                                                                                                 
The error was 'BadValue (integer parameter out of range for operation)'.                                                                     
  (Details: serial 236 error_code 2 request_code 53 minor_code 0)                                                                            
  (Note to programmers: normally, X errors are reported asynchronously;                                                                      
   that is, you will receive the error a while after causing it.                                                                             
   To debug your program, run it with the --sync command line                                                                                
   option to change this behavior. You can then get a meaningful                                                                             
   backtrace from your debugger if you break on the gdk_x_error() function.)    

This isn't reproducable in QtTestBrowser so must be specific to DRT.
Comment 1 Robert Hogan 2011-05-24 12:02:33 PDT
It doesn't happen in trunk - the test just times out. So likely a product of something happening in the patch at bug 60722.
Comment 2 Robert Hogan 2011-05-30 11:47:38 PDT
Got a bt:


(gdb) b gdk_x_error
Function "gdk_x_error" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (gdk_x_error) pending.
(gdb) run --sync -v -v http://127.0.0.1:8000/plugins/plugin-document-has-focus.html
Starting program: /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/bin/DumpRenderTree --sync -v -v http://127.0.0.1:8000/plugins/plugin-document-has-focus.html
[Thread debugging using libthread_db enabled]
Qt: gdb: -nograb added to command-line options.
         Use the -dograb option to enforce grabbing.
[New Thread 0xb6e27b70 (LWP 9350)]
[New Thread 0xb64feb70 (LWP 9351)]
[Thread 0xb64feb70 (LWP 9351) exited]
[New Thread 0xb64feb70 (LWP 9352)]
127.0.0.1 - - [30/May/2011:19:46:21 +0100] "GET /plugins/plugin-document-has-focus.html HTTP/1.1" 200 457
127.0.0.1 - - [30/May/2011:19:46:22 +0100] "GET /plugins/resources/plugin-document-has-focus.pl HTTP/1.1" 200 3

Breakpoint 1, gdk_x_error (display=0x8162680, error=0xbfffd5ec) at /build/buildd/gtk+2.0-2.22.0/gdk/x11/gdkmain-x11.c:439
439     /build/buildd/gtk+2.0-2.22.0/gdk/x11/gdkmain-x11.c: No such file or directory.
        in /build/buildd/gtk+2.0-2.22.0/gdk/x11/gdkmain-x11.c
(gdb) bt
#0  gdk_x_error (display=0x8162680, error=0xbfffd5ec) at /build/buildd/gtk+2.0-2.22.0/gdk/x11/gdkmain-x11.c:439
#1  0x0306a2c9 in _XError (dpy=0x8162680, rep=0x82806d0) at ../../src/XlibInt.c:3103
#2  0x0307099f in process_responses (dpy=0x8162680, wait_for_first_event=<value optimized out>, current_error=0xbfffd71c, 
    current_request=237) at ../../src/xcb_io.c:214
#3  0x03071036 in _XReply (dpy=0x8162680, rep=0xbfffd750, extra=0, discard=1) at ../../src/xcb_io.c:464
#4  0x03064867 in XSync (dpy=0x8162680, discard=0) at ../../src/Sync.c:46
#5  0x01a69092 in QApplication::syncX () at kernel/qapplication_x11.cpp:3004
#6  0x00de2ce5 in WebCore::PluginView::updatePluginWidget() ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#7  0x00de3bd3 in WebCore::PluginView::platformStart() ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#8  0x00c97909 in WebCore::PluginView::start() ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#9  0x00c97bb8 in WebCore::PluginView::startOrAddToUnstartedList() ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#10 0x00c97c18 in WebCore::PluginView::init() ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#11 0x00de2698 in WebCore::PluginView::setParent(WebCore::ScrollView*) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#12 0x00c73bdd in WebCore::ScrollView::addChild(WTF::PassRefPtr<WebCore::Widget>) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#13 0x00d88812 in WebCore::moveWidgetToParentSoon(WebCore::Widget*, WebCore::FrameView*) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#14 0x00d88a8a in WebCore::RenderWidget::setWidget(WTF::PassRefPtr<WebCore::Widget>) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#15 0x00d49bcc in WebCore::RenderPart::setWidget(WTF::PassRefPtr<WebCore::Widget>) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#16 0x00b97218 in WebCore::SubframeLoader::loadPlugin(WebCore::HTMLPlugInImageElement*, WebCore::KURL const&, WTF::String const&, WTF::Vector<WTF::String, 0u> const&, WTF::Vector<WTF::String, 0u> const&, bool) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#17 0x00b9741c in WebCore::SubframeLoader::requestPlugin(WebCore::HTMLPlugInImageElement*, WebCore::KURL const&, WTF::String const&, WTF::Vector<WTF::String, 0u> const&, WTF::Vector<WTF::String, 0u> const&, bool) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#18 0x00b98919 in WebCore::SubframeLoader::requestObject(WebCore::HTMLPlugInImageElement*, WTF::String const&, WTF::AtomicString const&, WTF::String const&, WTF::Vector<WTF::String, 0u> const&, WTF::Vector<WTF::String, 0u> const&) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#19 0x00a51ded in WebCore::HTMLEmbedElement::updateWidget(WebCore::PluginCreationOption) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#20 0x00bead3b in WebCore::FrameView::updateWidget(WebCore::RenderEmbeddedObject*) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#21 0x00becda3 in WebCore::FrameView::updateWidgets() ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#22 0x00bef2eb in WebCore::FrameView::performPostLayoutTasks() ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#23 0x00befe51 in WebCore::FrameView::layout(bool) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#24 0x0091ad40 in WebCore::Document::updateLayout() ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4