Bug 49619

Summary: kwin segfaults with xf86-video-intel-2.19.0
Product: Mesa Reporter: Franz Fellner <alpine.art.de>
Component: Drivers/DRI/i965Assignee: Chad Versace <chadversary>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: 8.0   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: backtrace

Description Franz Fellner 2012-05-08 00:58:41 UTC
Created attachment 61202 [details]
backtrace

After a short time using kwins cover switch-effect, kwin crahes in i965_dri.so (backtrace attached). The crash is reproducable and only happens with 2.19.0 - 2.18.0 works fine.

Here is the output of lspci -nn | grep 8086:

00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Family DRAM Controller [8086:0100] (rev 09)
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0122] (rev 09)
00:16.0 Communication controller [0780]: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 [8086:1c3a] (rev 04)
00:1a.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 [8086:1c2d] (rev 05)
00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 05)
00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 [8086:1c10] (rev b5)
00:1c.3 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 [8086:1c16] (rev b5)
00:1c.5 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 [8086:1c1a] (rev b5)
00:1d.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 [8086:1c26] (rev 05)
00:1f.0 ISA bridge [0601]: Intel Corporation Z68 Express Chipset Family LPC Controller [8086:1c44] (rev 05)
00:1f.2 SATA controller [0106]: Intel Corporation 6 Series/C200 Series Chipset Family SATA AHCI Controller [8086:1c02] (rev 05)
00:1f.3 SMBus [0c05]: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller [8086:1c22] (rev 05)
Comment 1 Chad Versace 2012-05-16 11:03:01 UTC
Franz, I believe this bug was fixed by
   89e796aef5ca1b35ca4ff6fce9231b4125e07037 on 8.0
   8d9decb75f0df564abaf9888d9fc5c77de8059cd on master

Please pull from
   git://anongit.freedesktop.org/mesa/mesa.git; branch 8.0
and check if you can still reproduce the bug.
Comment 2 Franz Fellner 2012-05-16 22:42:46 UTC
There only is an ebuild for master. I tried to install it, but it fails:

gbm.c: In function 'gallium_screen_create':
gbm.c:54:4: error: implicit declaration of function 'pipe_loader_drm_probe_fd' [-Werror=implicit-function-declaration]

The build-system only sets -DHAVE_PIPE_LOADER_SW, so pipe_loader_drm_probe_fd will never be declared. As there is no equivalent like "pipe_loader_sw_probe_fd", I don't know how to properly patch this.
Comment 3 Franz Fellner 2012-05-17 01:02:24 UTC
I now simply downloaded the patch from commit 89e796aef5ca1b35ca4ff6fce9231b4125e07037 and applied it to mesa-8.0.2. Until now I did not get this crash again, so I think this commit really fixed it.
Comment 4 Chad Versace 2012-05-17 10:09:43 UTC
I suspect that the ebuild is using overly generic autoconf options. If you want to try master again, these are the configure options that I use on ArchLinux.

./autogen.sh \
    --disable-debug \
    --disable-glu \
    --enable-egl \
    --enable-gles1 \
    --enable-gles2 \
    --enable-glx \
    --enable-glx-tls \
    --enable-shared-glapi \
    --enable-texture-float \
    --with-dri-drivers=i965 \
    --with-egl-platforms=x11,drm,wayland \
    --with-gallium-drivers= \

This configuration will build only the driver for recent Intel GPU's (Broadwater/Ironlake/Sandybridge/Ivybridge). Other drivers, such as for Intel Atom GPU's and Nvidia chipsets, are not built.

Anyway, I'm closing the bug since it's fixed on 8.0 and master. Thanks.

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.