RESOLVED FIXED 100639
While Using WebGL, MiniBrowser segfaults on Refreshing the page.
https://bugs.webkit.org/show_bug.cgi?id=100639
Summary While Using WebGL, MiniBrowser segfaults on Refreshing the page.
Kalyan
Reported 2012-10-29 01:23:30 PDT
Open any site using WebGL with MiniBrowser. Refresh the Page.This results in a seg fault in MiniBrowser.
Attachments
fix-proposal (1.97 KB, patch)
2012-10-29 01:24 PDT, Kalyan
no flags
proposed-patch (1.96 KB, patch)
2012-10-29 02:22 PDT, Kalyan
no flags
patch (1.96 KB, patch)
2012-10-29 02:36 PDT, Kalyan
no flags
proposed-patch (1.93 KB, patch)
2012-10-29 03:29 PDT, Kalyan
kenneth: review+
patch (1.88 KB, patch)
2012-10-30 05:23 PDT, Kalyan
no flags
Kalyan
Comment 1 2012-10-29 01:24:53 PDT
Created attachment 171173 [details] fix-proposal TextureMapperSurfaceBackingStore can import texture's from a GraphicSurface. In such cases GraphicsSurfaceGLX creates an XPixmap to read texture content from a given WindowId but doesn't create any new window.However, OffScreenRootWindow always tries to unmap window(in it's destruction) resulting in segfault.Now,We try to check for a valid Window before trying to unmap the window.
Kalyan
Comment 2 2012-10-29 02:22:06 PDT
Created attachment 171181 [details] proposed-patch
Kalyan
Comment 3 2012-10-29 02:36:31 PDT
Kalyan
Comment 4 2012-10-29 03:29:35 PDT
Created attachment 171191 [details] proposed-patch rebased
Kenneth Rohde Christiansen
Comment 5 2012-10-30 02:53:45 PDT
Comment on attachment 171191 [details] proposed-patch View in context: https://bugs.webkit.org/attachment.cgi?id=171191&action=review > Source/WebCore/ChangeLog:12 > + TextureMapperSurfaceBackingStore can import texture's from a GraphicSurface. > + In such cases GraphicsSurfaceGLX creates an XPixmap to read texture content > + from a given WindowId but doesn't create any new window.However, OffScreenRootWindow > + always tries to unmap window(in it's destruction) resulting in segfault.Now,We check > + if the window is valid before trying to unmap it. Could you add some spaces after . and start of new sentences > Source/WebCore/platform/graphics/surfaces/qt/GraphicsSurfaceGLX.cpp:96 > ~OffScreenRootWindow() > { > if (!--m_refCount) { > - XUnmapWindow(m_display, m_window); > - XDestroyWindow(m_display, m_window); > - if (m_display) > + if (m_display) { > + if (m_window) { > + XUnmapWindow(m_display, m_window); > + XDestroyWindow(m_display, m_window); > + m_window = 0; > + } > XCloseDisplay(m_display); > - m_display = 0; > + m_display = 0; > + } > } > } I would try avoiding indentating tha much like if (--m_refCount) return; ... That is like the webkit way
Kalyan
Comment 6 2012-10-30 05:23:42 PDT
Created attachment 171425 [details] patch review-changes
WebKit Review Bot
Comment 7 2012-10-30 06:44:01 PDT
Comment on attachment 171425 [details] patch Clearing flags on attachment: 171425 Committed r132906: <http://trac.webkit.org/changeset/132906>
WebKit Review Bot
Comment 8 2012-10-30 06:44:04 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.