Bug 681285

Summary: i965: crash in brw_wm_surface_state.c::prepare_wm_surfaces() where intelObj->mt == NULL
Product: [Fedora] Fedora Reporter: Kjartan Maraas <kmaraas>
Component: mesaAssignee: Dave Airlie <airlied>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 15CC: ajax, dcbw, drago01, hendrikr, ipilcher, kmcmartin, maxamillion, otaylor, walters
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:c9a58ddbdff98a7f0af6cf7f4a5a4a29427a3d42
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 14:36:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
firefox crash when browsing none

Description Kjartan Maraas 2011-03-01 16:52:56 UTC
abrt version: 1.1.17
architecture: i686
Attached file: backtrace, 69192 bytes
cmdline: mutter --mutter-plugins=libgnome-shell
component: mutter
Attached file: coredump, 173178880 bytes
crash_function: prepare_wm_surfaces
executable: /usr/bin/mutter
kernel: 2.6.38-0.rc6.git6.1.fc15.i686.PAE
package: mutter-2.91.90-2.fc15
rating: 4
reason: Process /usr/bin/mutter was killed by signal 11 (SIGSEGV)
release: Fedora release 15 (Lovelock)
time: 1298997402
uid: 500

How to reproduce
-----
1.Logged in and started a few apps from favourites and clicked on Activities / used the Windows key on the keyboard to show the favourites again after starting one app.
2.
3.

Comment 1 Kjartan Maraas 2011-03-01 16:52:59 UTC
Created attachment 481683 [details]
File: backtrace

Comment 2 Kjartan Maraas 2011-03-02 14:44:54 UTC
Package: mutter-2.91.90-2.fc15
Architecture: i686
OS Release: Fedora release 15 (Lovelock)


How to reproduce
-----
1. Happens sporadically...
2.
3.

Comment 3 Hendrik Richter 2011-03-02 17:12:02 UTC
Package: mutter-2.91.90-2.fc15
Architecture: i686
OS Release: Fedora release 15 (Lovelock)


How to reproduce
-----
Surfing with firefox, and its auto-completion kicked in, than Mutter carshes (reproducable)

Comment 4 Dan Williams 2011-03-03 21:55:29 UTC
Same crash consistently with Firefox in latest F15; seems to be a general mesa thing.

Comment 5 Dan Williams 2011-03-03 21:56:06 UTC
Created attachment 482166 [details]
firefox crash when browsing

Comment 6 Dan Williams 2011-03-03 22:07:47 UTC
It started happening after updating to these packages:

Updated: 1:dbus-libs-1.4.6-1.fc15.x86_64
Updated: libjpeg-turbo-1.1.0-1.fc15.x86_64
Updated: gobject-introspection-0.10.3-1.fc15.x86_64
Updated: upower-0.9.8-3.fc15.x86_64
Updated: boost-system-1.46.0-0.4.fc15.x86_64
Updated: boost-filesystem-1.46.0-0.4.fc15.x86_64
Updated: boost-regex-1.46.0-0.4.fc15.x86_64
Updated: boost-date-time-1.46.0-0.4.fc15.x86_64
Updated: boost-thread-1.46.0-0.4.fc15.x86_64
Updated: boost-wave-1.46.0-0.4.fc15.x86_64
Updated: boost-graph-1.46.0-0.4.fc15.x86_64
Updated: gobject-introspection-devel-0.10.3-1.fc15.x86_64
Updated: boost-serialization-1.46.0-0.4.fc15.x86_64
Updated: boost-iostreams-1.46.0-0.4.fc15.x86_64
Updated: boost-test-1.46.0-0.4.fc15.x86_64
Updated: boost-signals-1.46.0-0.4.fc15.x86_64
Updated: nss-softokn-freebl-3.12.9-7.fc15.x86_64
Updated: boost-random-1.46.0-0.4.fc15.x86_64
Updated: boost-python-1.46.0-0.4.fc15.x86_64
Updated: boost-program-options-1.46.0-0.4.fc15.x86_64
Updated: 1:control-center-filesystem-2.91.90-2.fc15.x86_64
Updated: spice-glib-0.5-6.fc15.x86_64
Updated: 12:dhcp-libs-4.2.1-1.fc15.x86_64
Updated: pygobject2-2.27.91-1.fc15.x86_64
Updated: libtiff-3.9.4-3.fc15.x86_64
Updated: attica-0.2.0-1.fc15.x86_64
Updated: 12:dhcp-common-4.2.1-1.fc15.x86_64
Updated: spice-gtk-0.5-6.fc15.x86_64
Updated: boost-1.46.0-0.4.fc15.x86_64
Installed: nss-softokn-freebl-devel-3.12.9-7.fc15.x86_64
Updated: libjpeg-turbo-devel-1.1.0-1.fc15.x86_64
Updated: ncurses-base-5.8-1.fc15.x86_64
Updated: ncurses-libs-5.8-1.fc15.x86_64
Updated: bash-4.2.6-1.fc15.x86_64
Updated: rpm-4.9.0-1.fc15.x86_64
Updated: rpm-libs-4.9.0-1.fc15.x86_64
Updated: rpm-build-libs-4.9.0-1.fc15.x86_64
Updated: systemd-units-19-1.fc15.x86_64
Updated: libcanberra-0.28-2.fc15.x86_64
Updated: libcanberra-gtk3-0.28-2.fc15.x86_64
Updated: 1:dbus-1.4.6-1.fc15.x86_64
Updated: 1:dbus-x11-1.4.6-1.fc15.x86_64
Updated: xulrunner-2.0-0.25.b12.fc15.x86_64
Updated: libcanberra-gtk2-0.28-2.fc15.x86_64
Updated: gnome-settings-daemon-2.91.90-4.fc15.x86_64
Updated: 1:control-center-2.91.90-2.fc15.x86_64
Updated: xulrunner-devel-2.0-0.25.b12.fc15.x86_64
Updated: gjs-0.7.11-2.fc15.x86_64
Updated: mutter-2.91.90-2.fc15.x86_64
Updated: readline-6.2-2.fc15.x86_64
Updated: nss-softokn-3.12.9-7.fc15.x86_64
Updated: 1:dbus-devel-1.4.6-1.fc15.x86_64
Updated: gsettings-desktop-schemas-0.1.7-2.fc15.noarch
Updated: gnome-session-2.91.90-5.fc15.x86_64
Updated: pygobject2-codegen-2.27.91-1.fc15.x86_64
Updated: ncurses-devel-5.8-1.fc15.x86_64
Updated: pygobject2-doc-2.27.91-1.fc15.x86_64
Updated: mutter-devel-2.91.90-2.fc15.x86_64
Updated: metacity-2.32.0-1.git20110228.fc15.x86_64
Updated: firefox-4.0-0.18.b12.fc15.x86_64
Updated: rpm-build-4.9.0-1.fc15.x86_64
Updated: rpm-python-4.9.0-1.fc15.x86_64
Updated: rpm-devel-4.9.0-1.fc15.x86_64
Updated: genisoimage-1.1.11-4.fc15.x86_64
Updated: wodim-1.1.11-4.fc15.x86_64
Updated: icedax-1.1.11-4.fc15.x86_64
Updated: procps-3.2.8-18.20110302git.fc15.x86_64
 Updated: ncurses-5.8-1.fc15.x86_64
Updated: exiv2-libs-0.21.1-1.fc15.x86_64
Updated: libisofs-1.0.2-1.fc15.x86_64
Updated: libconfig-1.4.6-1.fc15.x86_64
Updated: squashfs-tools-4.2-1.fc15.x86_64
Updated: libburn-1.0.2-1.fc15.x86_64
Updated: pygobject2-devel-2.27.91-1.fc15.x86_64
Updated: readline-devel-6.2-2.fc15.x86_64
Updated: gnome-session-xsession-2.91.90-5.fc15.x86_64
Updated: gsettings-desktop-schemas-devel-0.1.7-2.fc15.noarch
Updated: gjs-devel-0.7.11-2.fc15.x86_64
Updated: gnome-settings-daemon-devel-2.91.90-4.fc15.x86_64
Updated: upower-devel-0.9.8-3.fc15.x86_64
Updated: nss-softokn-devel-3.12.9-7.fc15.x86_64
Updated: 1:control-center-devel-2.91.90-2.fc15.x86_64
Updated: libcanberra-devel-0.28-2.fc15.x86_64
Updated: 12:dhclient-4.2.1-1.fc15.x86_64
Installed: kernel-devel-2.6.38-0.rc6.git6.1.fc15.x86_64
Updated: logwatch-7.3.6-66.20110203svn25.fc15.noarch
Updated: thunderbird-3.1.8-3.fc15.x86_64
Updated: boost-devel-1.46.0-0.4.fc15.x86_64
Updated: spice-gtk-python-0.5-6.fc15.x86_64
Updated: attica-devel-0.2.0-1.fc15.x86_64
Updated: libtiff-devel-3.9.4-3.fc15.x86_64
Updated: kernel-headers-2.6.38-0.rc6.git6.1.fc15.x86_64
Updated: gobject-introspection-debuginfo-0.10.3-1.fc15.x86_64
Updated: boost-math-1.46.0-0.4.fc15.x86_64
Updated: gjs-debuginfo-0.7.11-2.fc15.x86_64
Updated: 1:dbus-debuginfo-1.4.6-1.fc15.x86_64
Updated: gnome-settings-daemon-debuginfo-2.91.90-4.fc15.x86_64
Updated: xorg-x11-proto-devel-7.6-5.fc15.noarch
Updated: gnome-session-debuginfo-2.91.90-5.fc15.x86_64
Updated: iwl5000-firmware-8.83.5.1-2.fc15.noarch
Updated: 1:control-center-debuginfo-2.91.90-2.fc15.x86_64
Updated: mutter-debuginfo-2.91.90-2.fc15.x86_64
Updated: pygobject2-debuginfo-2.27.91-1.fc15.x86_64
Installed: kernel-2.6.38-0.rc6.git6.1.fc15.x86_64
Updated: systemd-19-1.fc15.x86_64

Comment 7 Dan Williams 2011-03-03 22:37:15 UTC
The only relevant change appears to be the kernel:

2.6.38-0.rc6.git4.1.fc15.x86_64
2.6.38-0.rc6.git6.1.fc15.x86_64

the executive summary of the crash is:

0x00007f41f5cdbd8c in prepare_wm_surfaces (brw=0x7f41f48c0000) at brw_wm_surface_state.c:618
618		 brw_add_validated_bo(brw, intelObj->mt->region->buffer);
(gdb) p intelObj->mt
$5 = (struct intel_mipmap_tree *) 0x0

fail.

Comment 8 Dan Williams 2011-03-03 23:32:41 UTC
(05:31:06 PM) Sarvatt: dcbw: reverting c2e0eb167070a6e9dcb49c84c13c79a30d672431 (drm/i915: fix corruptions on i8xx due to relaxed fencing) from 2.6.38-rc7 unbreaks it

Comment 9 Dan Williams 2011-03-03 23:42:47 UTC
(05:38:12 PM) ickle: [snip] it's a bug in the kernel patch for gen4+ strides

Comment 10 Dan Williams 2011-03-04 00:05:52 UTC
(05:51:18 PM) ickle: dcbw, Sarvatt: bea96046b4245e9abd65ed7acfed9adfd5f6c639 on drm-intel-staging

Comment 12 Kyle McMartin 2011-03-04 21:09:48 UTC
I merged this patch to the F-15 kernel for testing, but it seems to have made the problem worse... On my Ironlake-M it's resulting in mutter crashing whenever I try to open a window.

I've put a scratch build up with the fix here, and reverted it in git for now.
http://koji.fedoraproject.org/koji/taskinfo?taskID=2885581

Comment 13 Ian Pilcher 2011-04-25 14:18:31 UTC
Does the patch in https://bugs.freedesktop.org/show_bug.cgi?id=35452 help?

Comment 14 Ian Pilcher 2011-05-07 19:27:05 UTC
(In reply to comment #13)
> Does the patch in https://bugs.freedesktop.org/show_bug.cgi?id=35452 help?

xorg-x11-server-1.10.1-14.fc15, which includes this patch, is now in the
fedora repo.  Does it help?

Comment 15 Kjartan Maraas 2011-11-11 16:49:52 UTC
I haven't seen this recently - though I'm on f16 now.

Comment 16 Kjartan Maraas 2011-12-12 19:44:14 UTC
And now it's back in rawhide it seems. Or something very similar at least.

Comment 17 Kjartan Maraas 2011-12-14 16:19:13 UTC
Forget that. I haven't seen any crashes in mutter in a long time.

Comment 18 abrt-bot 2012-03-20 18:30:44 UTC
*** Bug 682194 has been marked as a duplicate of this bug. ***

Comment 19 Fedora End Of Life 2012-08-07 14:36:58 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping