Bug 68585 - Recent Mesa git make Kwin crash with AMD R300g driver
Summary: Recent Mesa git make Kwin crash with AMD R300g driver
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r300 (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-26 20:34 UTC by Richard Van Den Boom
Modified: 2013-09-01 16:39 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Kwin backtrace (3.10 KB, text/plain)
2013-08-26 20:34 UTC, Richard Van Den Boom
Details
Startx output (149.97 KB, text/plain)
2013-08-26 20:34 UTC, Richard Van Den Boom
Details
Git bisect log output (1.55 KB, text/plain)
2013-08-27 11:04 UTC, Richard Van Den Boom
Details
possible fix (1.28 KB, patch)
2013-08-27 20:17 UTC, Marek Olšák
Details | Splinter Review

Description Richard Van Den Boom 2013-08-26 20:34:08 UTC
Created attachment 84671 [details]
Kwin backtrace

I run Slackware64-current systems on several workstations using AMD processors and graphic cards. I usually compile my own very recent kernels (currently 3.11-rc*) and I regularly (about once every two weeks) compile git version of libdrm, mesa and xf86-video-ati.
I noticed that with recent versions of mesa, kwin, KDE's compositor and windows manager, crashed immediately at boot and only worked when I disabled the OpenGL effects. The last version of mesa that worked was of the 2013/08/08. By just changing mesa to a more recent version, kwin would segfault, for the first time in years, with KDE 4.10.5 as well as 4.11.
My other systems, which have a fairly similar OS settings, do not have these issues but they use the r600g driver while my old laptop, the one which crash, still use r300g.
I've attached to this kwin backtrace which clearly shows that kwin crash while working with r300_dri.so, as well as the startx output.
I don't have debug binaries unfortunately.
Comment 1 Richard Van Den Boom 2013-08-26 20:34:45 UTC
Created attachment 84672 [details]
Startx output
Comment 2 Alex Deucher 2013-08-26 21:30:07 UTC
Can you bisect?
Comment 3 Richard Van Den Boom 2013-08-27 05:28:32 UTC
I'm no git expert but this seems simple enough.
It may take a bit of time though as this is a slow laptop (8 years old).
Comment 4 Richard Van Den Boom 2013-08-27 11:04:18 UTC
According to bisect, the commit that cause the crashes is this one :

git bisect good 98d2498404ba69a3efc1c765b1a1885d151181ed
# first bad commit: [a3ae5dc7dd5c2f8893f86a920247e690e550ebd4] draw: make sure that the stages setup outputs

I've attached the full git bisect log output.
Whatever Kwin does in the R300 driver, the above commit seems to trigger an issue.
Comment 5 Richard Van Den Boom 2013-08-27 11:04:59 UTC
Created attachment 84696 [details]
Git bisect log output
Comment 6 Marek Olšák 2013-08-27 20:17:50 UTC
Created attachment 84748 [details] [review]
possible fix

Could you please test this patch?
Comment 7 Richard Van Den Boom 2013-08-27 20:43:14 UTC
I'll see what I can do.
Comment 8 Richard Van Den Boom 2013-08-27 21:35:49 UTC
I did a git pull to be as possible up to date and applied the patch.
It does indeed seem to fix Kwin crash at startup.
Congratulations!
Comment 9 Richard Van Den Boom 2013-08-31 13:02:07 UTC
As far as I'm conceredn this bug can be closed as fixed.


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.