STR: 1. Open a new tab 2. In the new tab, load http://www.mozilla.org/ 3. In the same tab, load http://motionandcolor.com/wrapper/ 4. Click back. 5. Close the tab. Results: The program 'firefox-bin' received an X Window System error. This probably reflects a bug in the program. The error was 'RenderBadPicture (invalid Picture parameter)'. (Details: serial 118640 error_code 161 request_code 149 minor_code 7) (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.) #0 gdk_x_error (display=0x7f8fcd151000, error=0x7fffdd40cec0) at gdkmain-x11.c:614 #1 0x00007f8fd140af90 in _XError (dpy=0x7f8fcd151000, rep=) at XlibInt.c:2924 #2 0x00007f8fd1411f19 in process_responses (dpy=0x7f8fcd151000, wait_for_first_event=0, current_error=0x7fffdd40d038, current_request=118641) at xcb_io.c:207 #3 0x00007f8fd141253b in _XReply (dpy=0x7f8fcd151000, rep=0x7fffdd40d080, extra=0, discard=1) at xcb_io.c:457 #4 0x00007f8fd1406aba in XSync (dpy=0x7f8fcd151000, discard=0) at Sync.c:48 #5 0x00007f8fd1406c34 in _XSyncFunction (dpy=0x7f8fcd151000) at Synchro.c:37 #6 0x00007f8fc6d8a2c2 in _cairo_xlib_surface_finish ( abstract_surface=0x7f8f8ee56400) at /home/karl/moz/dev/gfx/cairo/cairo/src/cairo-xlib-surface.c:341 #7 0x00007f8fc6d6785e in *INT__moz_cairo_surface_finish ( surface=0x7f8f8ee56400) at /home/karl/moz/dev/gfx/cairo/cairo/src/cairo-surface.c:537 #8 0x00007f8fc6d676cf in *INT__moz_cairo_surface_destroy ( surface=0x7f8f8ee56400) at /home/karl/moz/dev/gfx/cairo/cairo/src/cairo-surface.c:440 #9 0x00007f8fc6d02ee3 in gfxASurface::Release (this=0x7f8f8eee6b40) at /home/karl/moz/dev/gfx/thebes/src/gfxASurface.cpp:106 #10 0x00007f8fc631516e in nsRefPtr::assign_assuming_AddRef ( this=0x7f8fa9cd2cb8, newPtr=0x0) at ../../../dist/include/nsAutoPtr.h:944 #11 0x00007f8fc631519d in nsRefPtr::assign_with_AddRef ( this=0x7f8fa9cd2cb8, rawPtr=0x0) at ../../../dist/include/nsAutoPtr.h:928 #12 0x00007f8fc63151bd in nsRefPtr::operator= ( this=0x7f8fa9cd2cb8, rhs=0x0) at ../../../dist/include/nsAutoPtr.h:1003 #13 0x00007f8fc6311441 in nsWindow::Destroy (this=0x7f8fa9cd2ba0) at /home/karl/moz/dev/widget/src/gtk2/nsWindow.cpp:790 #14 0x00007f8fc7b277dd in ~nsView (this=0x7f8fa86ce100) at /home/karl/moz/dev/view/src/nsView.cpp:253 #15 0x00007f8fc7b253ef in nsIView::Destroy (this=0x7f8fa86ce100) at /home/karl/moz/dev/view/src/nsView.cpp:294 #16 0x00007f8fc7663f8d in nsFrame::Destroy (this=0x7f8f8f0a10e8) at /home/karl/moz/dev/layout/generic/nsFrame.cpp:470 #17 0x00007f8fc76ce3c6 in nsSplittableFrame::Destroy (this=0x7f8f8f0a10e8) at /home/karl/moz/dev/layout/generic/nsSplittableFrame.cpp:73 #18 0x00007f8fc764d90b in nsContainerFrame::Destroy (this=0x7f8f8f0a10e8) at /home/karl/moz/dev/layout/generic/nsContainerFrame.cpp:308 #19 0x00007f8fc76ead38 in ViewportFrame::Destroy (this=0x7f8f8f0a10e8) at /home/karl/moz/dev/layout/generic/nsViewportFrame.cpp:68 #20 0x00007f8fc75e10a9 in nsFrameManager::Destroy (this=0x7f8f8ee5ac38) at /home/karl/moz/dev/layout/base/nsFrameManager.cpp:290 #21 0x00007f8fc76104db in PresShell::Destroy (this=0x7f8f8ee5ac00) at /home/karl/moz/dev/layout/base/nsPresShell.cpp:1904 #22 0x00007f8fc75c8195 in DocumentViewerImpl::DestroyPresShell ( this=0x7f8f8ee49c80) at /home/karl/moz/dev/layout/base/nsDocumentViewer.cpp:4350 #23 0x00007f8fc75cf23a in DocumentViewerImpl::Destroy (this=0x7f8f8ee49c80) at /home/karl/moz/dev/layout/base/nsDocumentViewer.cpp:1572 #24 0x00007f8fb2eb35ac in nsSHistory::EvictContentViewersInRange ( this=0x7f8faa674280, aStart=0, aEnd=2) at /home/karl/moz/dev/docshell/shistory/src/nsSHistory.cpp:881 #25 0x00007f8fb2eb3895 in nsSHistory::EvictAllContentViewers ( this=0x7f8faa674280) at /home/karl/moz/dev/docshell/shistory/src/nsSHistory.cpp:672 #26 0x00007f8fb2e44ca0 in nsDocShell::Destroy (this=0x7f8fc90ca400) at /home/karl/moz/dev/docshell/base/nsDocShell.cpp:4303 #27 0x00007f8fc78cf938 in nsFrameLoader::Finalize (this=0x7f8faa416bc0) at /home/karl/moz/dev/content/base/src/nsFrameLoader.cpp:302 #28 0x00007f8fc78a8f1c in nsDocument::MaybeInitializeFinalizeFrameLoaders ( this=0x7f8fad154000) at /home/karl/moz/dev/content/base/src/nsDocument.cpp:5228 #29 0x00007f8fc78acf89 in nsDocument::EndUpdate (this=0x7f8fad154000, aUpdateType=1) at /home/karl/moz/dev/content/base/src/nsDocument.cpp:3769 #30 0x00007f8fc7b10a51 in nsXULDocument::EndUpdate (this=0x7f8fad154000, aUpdateType=1) at /home/karl/moz/dev/content/xul/document/src/nsXULDocument.cpp:3358 #31 0x00007f8fc7673a5c in ~mozAutoDocUpdate (this=0x7fffdd40d8b0) at ../../../dist/include/mozAutoDocUpdate.h:66 #32 0x00007f8fc78e6283 in nsGenericElement::doRemoveChildAt (aIndex=1, aNotify=1, aKid=0x7f8faa59f1c0, aParent=0x7f8fabc81400, aDocument=0x7f8fad154000, aChildArray=@0x7f8fabc81438, aMutationEvent=1) at /home/karl/moz/dev/content/base/src/nsGenericElement.cpp:3398 #33 0x00007f8fc78e6366 in nsGenericElement::RemoveChildAt ( this=0x7f8fabc81400, aIndex=1, aNotify=1, aMutationEvent=1) at /home/karl/moz/dev/content/base/src/nsGenericElement.cpp:3321 #34 0x00007f8fc7d7b384 in nsXULElement::RemoveChildAt (this=0x7f8fabc81400, aIndex=1, aNotify=1, aMutationEvent=1) at /home/karl/moz/dev/content/xul/content/src/nsXULElement.cpp:984 #35 0x00007f8fc78dc305 in nsGenericElement::doRemoveChild ( aOldChild=0x7f8faa59f200, aParent=0x7f8fabc81400, aDocument=0x7f8fad154000, aReturn=0x7fffdd40dd00) at /home/karl/moz/dev/content/base/src/nsGenericElement.cpp:4039 #36 0x00007f8fc78dc371 in nsGenericElement::RemoveChild (this=0x7f8fabc81400, aOldChild=0x7f8faa59f200, aReturn=0x7fffdd40dd00) at /home/karl/moz/dev/content/base/src/nsGenericElement.cpp:3558 #37 0x00007f8fc7d7ea8f in nsXULElement::RemoveChild (this=0x7f8fabc81400, oldChild=0x7f8faa59f200, _retval=0x7fffdd40dd00) at /home/karl/moz/dev/content/xul/content/src/nsXULElement.h:571 #38 0x00007f8fc86d7163 in nsIDOMNode_RemoveChild (cx=0x7f8fb33b6000, argc=1, vp=0x7f8f8edf62a8) at dom_quickstubs.cpp:2943 #39 0x00007f8fd4a8c17d in js_Interpret (cx=0x7f8fb33b6000) at /home/karl/moz/dev/js/src/jsops.cpp:2166 #40 0x00007f8fd4a9e32d in js_Invoke (cx=0x7f8fb33b6000, argc=1, vp=0x7f8f8edf6040, flags=0) at /home/karl/moz/dev/js/src/jsinterp.cpp:1372 #41 0x00007f8fd4a9eb36 in js_InternalInvoke (cx=0x7f8fb33b6000, obj=0x7f8fc103e5c0, fval=140254774822720, flags=0, argc=1, argv=0x7f8f8edf6038, rval=0x7fffdd40ecb0) at /home/karl/moz/dev/js/src/jsinterp.cpp:1427 #42 0x00007f8fd4a0f320 in JS_CallFunctionValue (cx=0x7f8fb33b6000, obj=0x7f8fc103e5c0, fval=140254774822720, argc=1, argv=0x7f8f8edf6038, rval=0x7fffdd40ecb0) at /home/karl/moz/dev/js/src/jsapi.cpp:5131 #43 0x00007f8fc7b40f6c in nsJSContext::CallEventHandler (this=0x7f8fc107c8e0, aTarget=0x7f8faa494d00, aScope=0x7f8fb33a6cc0, aHandler=0x7f8f9c080740, aargv=0x7f8f8ec9c8b0, arv=0x7fffdd40eef0) at /home/karl/moz/dev/dom/base/nsJSEnvironment.cpp:2092 #44 0x00007f8fc7bbfeb1 in nsJSEventListener::HandleEvent ( this=0x7f8f8ec97fb0, aEvent=0x7f8f8ec84df8) at /home/karl/moz/dev/dom/src/events/nsJSEventListener.cpp:247 #45 0x00007f8fc7aee8fe in nsXBLPrototypeHandler::ExecuteHandler ( this=0x7f8fabbc5e80, aTarget=0x7f8faa494d00, aEvent=0x7f8f8ec84df8) at /home/karl/moz/dev/content/xbl/src/nsXBLPrototypeHandler.cpp:343 #46 0x00007f8fc7ae8362 in nsXBLEventHandler::HandleEvent ( this=0x7f8fabb0d900, aEvent=0x7f8f8ec84df8) at /home/karl/moz/dev/content/xbl/src/nsXBLEventHandler.cpp:88 #47 0x00007f8fc7958bac in nsEventListenerManager::HandleEventSubType ( this=0x7f8fab9c2ea0, aListenerStruct=0x7f8fb43c4ed8, aListener=0x7f8fabb0d900, aDOMEvent=0x7f8f8ec84df8, aCurrentTarget=0x7f8faa494d00, aPhaseFlags=6) at /home/karl/moz/dev/content/events/src/nsEventListenerManager.cpp:1034 #48 0x00007f8fc79590fa in nsEventListenerManager::HandleEvent ( this=0x7f8fab9c2ea0, aPresContext=0x7f8fad194000, aEvent=0x7fffdd40fb60, aDOMEvent=0x7fffdd40f850, aCurrentTarget=0x7f8faa494d00, aFlags=6, aEventStatus=0x7fffdd40f858) at /home/karl/moz/dev/content/events/src/nsEventListenerManager.cpp:1140 #49 0x00007f8fc7982c84 in nsEventTargetChainItem::HandleEvent ( this=0x7f8fad86aa80, aVisitor=@0x7fffdd40f840, aFlags=6, aMayHaveNewListenerManagers=1) at /home/karl/moz/dev/content/events/src/nsEventDispatcher.cpp:244 #50 0x00007f8fc7982fca in nsEventTargetChainItem::HandleEventTargetChain ( this=0x7f8fad86a578, aVisitor=@0x7fffdd40f840, aFlags=6, aCallback=0x7fffdd40f980, aMayHaveNewListenerManagers=1) at /home/karl/moz/dev/content/events/src/nsEventDispatcher.cpp:308 #51 0x00007f8fc798382d in nsEventDispatcher::Dispatch ( aTarget=0x7f8faa494d00, aPresContext=0x7f8fad194000, aEvent=0x7fffdd40fb60, aDOMEvent=0x0, aEventStatus=0x7fffdd41044c, aCallback=0x7fffdd40f980) at /home/karl/moz/dev/content/events/src/nsEventDispatcher.cpp:539 #52 0x00007f8fc76053c8 in PresShell::HandleEventInternal ( this=0x7f8fad194400, aEvent=0x7fffdd40fb60, aView=0x0, aStatus=0x7fffdd41044c) at /home/karl/moz/dev/layout/base/nsPresShell.cpp:6302 #53 0x00007f8fc7605c8b in PresShell::HandleEventWithTarget ( this=0x7f8fad194400, aEvent=0x7fffdd40fb60, aFrame=0x7f8fb437fa90, aContent=0x7f8faa494d00, aStatus=0x7fffdd41044c) at /home/karl/moz/dev/layout/base/nsPresShell.cpp:6177 #54 0x00007f8fc795fb1e in nsEventStateManager::CheckForAndDispatchClick ( this=0x7f8fad8259b0, aPresContext=0x7f8fad194000, aEvent=0x7fffdd4107a0, aStatus=0x7fffdd41044c) at /home/karl/moz/dev/content/events/src/nsEventStateManager.cpp:3881 #55 0x00007f8fc7968857 in nsEventStateManager::PostHandleEvent ( this=0x7f8fad8259b0, aPresContext=0x7f8fad194000, aEvent=0x7fffdd4107a0, aTargetFrame=0x7f8fb437fa90, aStatus=0x7fffdd41044c, aView=0x7f8fad141180) at /home/karl/moz/dev/content/events/src/nsEventStateManager.cpp:2859 #56 0x00007f8fc76055a0 in PresShell::HandleEventInternal ( this=0x7f8fad194400, aEvent=0x7fffdd4107a0, aView=0x7f8fad141180, aStatus=0x7fffdd41044c) at /home/karl/moz/dev/layout/base/nsPresShell.cpp:6323 #57 0x00007f8fc7605e65 in PresShell::HandlePositionedEvent ( this=0x7f8fad194400, aView=0x7f8fad141180, aTargetFrame=0x7f8fb437fa90, aEvent=0x7fffdd4107a0, aEventStatus=0x7fffdd41044c) at /home/karl/moz/dev/layout/base/nsPresShell.cpp:6160 #58 0x00007f8fc76069fb in PresShell::HandleEvent (this=0x7f8fad194400, aView=0x7f8fad141180, aEvent=0x7fffdd4107a0, aEventStatus=0x7fffdd41044c) at /home/karl/moz/dev/layout/base/nsPresShell.cpp:6024 #59 0x00007f8fc7b2c13c in nsViewManager::HandleEvent (this=0x7f8fad19a1a0, aView=0x7f8fad141180, aPoint={x = -582941168, y = 32767}, aEvent=0x7fffdd4107a0, aCaptured=0) at /home/karl/moz/dev/view/src/nsViewManager.cpp:1195 #60 0x00007f8fc7b308b3 in nsViewManager::DispatchEvent (this=0x7f8fad19a1a0, aEvent=0x7fffdd4107a0, aView=0x7f8fad141180, aStatus=0x7fffdd4106d4) at /home/karl/moz/dev/view/src/nsViewManager.cpp:1174 #61 0x00007f8fc7b25e56 in HandleEvent (aEvent=0x7fffdd4107a0) at /home/karl/moz/dev/view/src/nsView.cpp:167 #62 0x00007f8fc631182a in nsWindow::DispatchEvent (this=0x7f8fad89cd40, aEvent=0x7fffdd4107a0, aStatus=@0x7fffdd41081c) at /home/karl/moz/dev/widget/src/gtk2/nsWindow.cpp:584 #63 0x00007f8fc630d0af in nsWindow::OnButtonReleaseEvent ( this=0x7f8fad89cd40, aWidget=0x7f8fb3383e80, aEvent=0x7f8f9c07c2e0) at /home/karl/moz/dev/widget/src/gtk2/nsWindow.cpp:2840 I don't seem to be able reproduce with Firefox 3.5.3. Likely the same issue discussed here (in a bug report for a different bug): http://bugs.freedesktop.org/show_bug.cgi?id=21583#c16