Bug 33496 - Segfault when some window is appearing while running full-screen application.
Summary: Segfault when some window is appearing while running full-screen application.
Status: RESOLVED DUPLICATE of bug 30509
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Eric Anholt
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-25 12:22 UTC by bay
Modified: 2011-01-25 13:00 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Backtrace of crash. (17.13 KB, text/plain)
2011-01-25 12:22 UTC, bay
Details

Description bay 2011-01-25 12:22:10 UTC
Created attachment 42484 [details]
Backtrace of crash.

When full-screen application is running and I am changing volume from keyboard, kwin(KDE's window manager) is crashing. Usually, when one changes a volume in KDE, a progress-window appears. Full screen application in my case - Angry Birds game(Wine).

Bug appears only when I am using a OpenGL compositing, with XRender compositing all is OK.

Bug is quite reproductable. I tested it with mesa from git and with mesa 7.10. I have a Intel Corporation Mobile GM965 Graphics Controller.

I think there is a problem with prepare_wm_surfaces(..) in mesa/drivers/dri/i965/brw_wm_surface_state.c :
   if (ctx->DrawBuffer->_NumColorDrawBuffers >= 1) {
      for (i = 0; i < ctx->DrawBuffer->_NumColorDrawBuffers; i++) {

        struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[i];
        struct intel_renderbuffer *irb = intel_renderbuffer(rb);
        struct intel_region *region = irb ? irb->region : NULL;
        brw_add_validated_bo(brw, region->buffer);
        ........

When irb is NULL, region is NULL too, and region->buffer causes a segfault.
Comment 1 Chris Wilson 2011-01-25 13:00:51 UTC

*** This bug has been marked as a duplicate of bug 30509 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.