Bug 73963 - Crash in intel_query_dri2_buffers when quitting Cairo-Dock with Mesa 10.0.1
Summary: Crash in intel_query_dri2_buffers when quitting Cairo-Dock with Mesa 10.0.1
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: 10.0
Hardware: Other Linux (All)
: medium normal
Assignee: Ian Romanick
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-23 09:16 UTC by Matthieu Baerts
Modified: 2014-02-13 07:00 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
GDB: bt full (2.76 KB, text/plain)
2014-01-23 09:18 UTC, Matthieu Baerts
Details
GDB: info registers (740 bytes, text/plain)
2014-01-23 09:18 UTC, Matthieu Baerts
Details
GDB: x/16i $pc (1.32 KB, text/plain)
2014-01-23 09:19 UTC, Matthieu Baerts
Details

Description Matthieu Baerts 2014-01-23 09:16:49 UTC
Hello,

I didn't have this bug before (with Mesa < 10) but now, when quitting Cairo-Dock, I have a crash in intel_query_dri2_buffers.

I'm joining some useful informations from GDB.

Regards,

Matt


DistroRelease: Ubuntu 14.04
Package: libgl1-mesa-dri 10.0.1-1ubuntu2
Uname: Linux 3.13.0-3-generic x86_64
Comment 1 Matthieu Baerts 2014-01-23 09:18:06 UTC
Created attachment 92648 [details]
GDB: bt full

For more details about '_container_finish' (the last function used by Cairo-Dock before the crash): https://bazaar.launchpad.net/~cairo-dock-team/cairo-dock-core/cairo-dock/view/head:/src/implementations/cairo-dock-glx.c#L410
Comment 2 Matthieu Baerts 2014-01-23 09:18:40 UTC
Created attachment 92649 [details]
GDB: info registers
Comment 3 Matthieu Baerts 2014-01-23 09:19:05 UTC
Created attachment 92650 [details]
GDB: x/16i $pc
Comment 4 Matthieu Baerts 2014-02-07 22:03:04 UTC
This bug has also been reported on Launchpad before: https://bugs.launchpad.net/bugs/1270491

Other useful informations from GDB are also available there: https://bugs.launchpad.net/bugs/1275064

* Disassembly: https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1275064/+attachment/3964620/+files/Disassembly.txt
* ProcMaps: https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1275064/+attachment/3964622/+files/ProcMaps.txt
* ProcStatus: https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1275064/+attachment/3964623/+files/ProcStatus.txt
* Registers: https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1275064/+attachment/3964624/+files/Registers.txt
* Stacktrace:
 * https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1275064/+attachment/3964625/+files/Stacktrace.txt
 * https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1275064/+attachment/3972873/+files/Stacktrace.txt
* ThreadStacktrace:
 * https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1275064/+attachment/3964626/+files/ThreadStacktrace.txt
 * https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1275064/+attachment/3972875/+files/ThreadStacktrace.txt
* StacktraceSource: https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1275064/+attachment/3972874/+files/StacktraceSource.txt

StacktraceTop:
 intel_get_renderbuffer (attIndex=<optimized out>, fb=<optimized out>) at ../../../../../../../src/mesa/drivers/dri/i965/intel_fbo.h:115
 intel_query_dri2_buffers (buffer_count=0xbff76e8c, buffers=<synthetic pointer>, drawable=0x9e6fd50, brw=0xb420a020) at ../../../../../../../src/mesa/drivers/dri/i965/brw_context.c:1190
 intel_update_dri2_buffers (drawable=0x9e6fd50, brw=0xb420a020) at ../../../../../../../src/mesa/drivers/dri/i965/brw_context.c:1044
 intel_update_renderbuffers (context=context@entry=0x90a0a50, drawable=drawable@entry=0x9e6fd50) at ../../../../../../../src/mesa/drivers/dri/i965/brw_context.c:1099
 intel_prepare_render (brw=brw@entry=0xb420a020) at ../../../../../../../src/mesa/drivers/dri/i965/brw_context.c:1117
Comment 5 Tapani Pälli 2014-02-13 07:00:15 UTC
I can reproduce this with origin/10.0, however it seems fixed in origin/10.1 and master. It crashes because fb is 0x0, bisected that following commit fixes this:

--- 8< ----
commit 70e8ec38b55e71144ce3ed055e7da30c330c716b
Author: Kristian Høgsberg <krh@bitplanet.net>
Date:   Wed Feb 5 11:43:58 2014 -0800

    glx: Pass NULL DRI drawables into the DRI driver for None GLX drawables
--- 8< ----


as a sidenote to developers, this is not related to the crash but there's following errors happening now and then from cairo-dock:

Mesa: User error: GL_INVALID_OPERATION in glFramebufferTexture2DEXT

This happens because glFramebufferTexture2DEXT is called with texture 0 bound.


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.