Bug 31579 - [swrast] segfault when login with kdm
Summary: [swrast] segfault when login with kdm
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium blocker
Assignee: mesa-dev
QA Contact:
Depends on:
Reported: 2010-11-12 06:31 UTC by Thomas
Modified: 2018-03-07 09:50 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:

Xorg.0.log that show the segfault. (8.47 KB, text/plain)
2010-11-12 06:32 UTC, Thomas
Archlinux PKGBULD (for configure options). (6.55 KB, text/plain)
2010-11-12 06:33 UTC, Thomas
Biesceted commit that cause the issue. (797 bytes, text/plain)
2010-11-12 06:34 UTC, Thomas

Description Thomas 2010-11-12 06:31:30 UTC
I tried to upgrade my mesa package to 7.9, upon rebooting I wasn't able to log into my KDE session, each time I typed my password the login prompt was displayed again after a short time and some flicker. This happened every reboot. I downgraded packages and narrowed the problem as part of the libgl 7.8.2 -> 7.9 upgrade.

The problem is still present with git version. I bisected the issue to the following commit :
commit 8d789be03430b80e0ba2fef19d56dd0b8e699ea2
Author: Dave Airlie <airlied@redhat.com>
Date:   Sun May 23 22:10:04 2010 +1000

Archlinux PKGBULD, Xorg.0.log and commit attached.

My system run a HD5770 graphics card and swrast is used (I was trying to make the radeon driver to work when I came accross the issue) :

[thomas@sherwood ~]$ glxinfo | grep -i opengl
OpenGL vendor string: Mesa Project
OpenGL renderer string: Software Rasterizer
OpenGL version string: 2.1 Mesa 7.8.3
OpenGL shading language version string: 1.20
Comment 1 Thomas 2010-11-12 06:32:20 UTC
Created attachment 40234 [details]
Xorg.0.log that show the segfault.
Comment 2 Thomas 2010-11-12 06:33:06 UTC
Created attachment 40235 [details]
Archlinux PKGBULD (for configure options).
Comment 3 Thomas 2010-11-12 06:34:27 UTC
Created attachment 40236 [details]
Biesceted commit that cause the issue.
Comment 4 Thomas 2010-11-24 01:45:42 UTC
I tried to debug libgl during the kde's loading but I failed.

During my attempts I manage to load the kde desktop with the faulty version of libgl installed this way :
* boot in runlevel 3 (console)
* log in
* startx
* startkde in one of the xterms displayed
* you get a desktop but without the window decoration.

So my guess is that it's that the segfault occurs when Kwin is launched.
Comment 5 Dmitry Morozhnikov 2010-11-28 04:35:10 UTC
Same here. HD5770 512M, mesa 7.9, arch & kde. My logged backtrace looks like this:

0: /usr/bin/X (xorg_backtrace+0x28) [0x49f1a8]
1: /usr/bin/X (0x400000+0x60239) [0x460239]
2: /lib/libpthread.so.0 (0x7fe849b9a000+0xf1c0) [0x7fe849ba91c0]
3: /lib/libc.so.6 (memcpy+0x15b) [0x7fe848b80c9b]
4: /usr/lib/xorg/modules/libfb.so (fbBlt+0xf8) [0x7fe84625d0a8]
5: /usr/lib/xorg/modules/libfb.so (fbBltStip+0x40) [0x7fe84625de50]
6: /usr/lib/xorg/modules/libfb.so (fbGetImage+0x206) [0x7fe8462635a6]
7: /usr/bin/X (0x400000+0x155478) [0x555478]
8: /usr/lib/xorg/modules/libshadow.so (0x7fe846047000+0x1329) [0x7fe846048329]
9: /usr/lib/xorg/modules/extensions/libglx.so (0x7fe8479a6000+0x390ea) [0x7fe8479df0ea]
10: /usr/lib/xorg/modules/dri/swrast_dri.so (0x7fe84515a000+0x2527b) [0x7fe84517f27b]
11: /usr/lib/xorg/modules/extensions/libglx.so (0x7fe8479a6000+0x39088) [0x7fe8479df088]
12: /usr/lib/xorg/modules/extensions/libglx.so (0x7fe8479a6000+0x35cae) [0x7fe8479dbcae]
13: /usr/lib/xorg/modules/extensions/libglx.so (0x7fe8479a6000+0x36af2) [0x7fe8479dcaf2]
14: /usr/lib/xorg/modules/extensions/libglx.so (0x7fe8479a6000+0x38703) [0x7fe8479de703]
15: /usr/bin/X (0x400000+0x2d1b1) [0x42d1b1]
16: /usr/bin/X (0x400000+0x212ce) [0x4212ce]
17: /lib/libc.so.6 (__libc_start_main+0xfd) [0x7fe848b1fc4d]
18: /usr/bin/X (0x400000+0x20e79) [0x420e79]
Segmentation fault at address (nil)

Disabling glx in xorg.conf allow environment to load.
Comment 6 Timothy Arceri 2018-03-07 09:50:35 UTC
llvmpipe should be used in place of swrast these days. Marking as won't fix.

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.