Bug 260334

Summary: Kwin causes segfault crash of X-server while compositing mode is set.
Product: [Plasma] kwin Reporter: Alex <alex.n.sidorov>
Component: compositingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: crash    
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: x-server log
info about my system, compiler, libc, binutils and cxx flags
versions of packages
X-org config file

Description Alex 2010-12-17 00:44:45 UTC
Created attachment 54841 [details]
x-server log

Version:           SVN (using KDE 4.5.4) 
OS:                Linux

When I swith on desktop effects in Settings —> Desktop effects, the new xorg-server crashes after some different actions. For example, when I click on the address line in Chromium the dropdown list must appear but X-server crashes. When I minimize any window and then restore it — the X-server crashes in the same way.

Here is a small bunch of trace messages in Xorg.0.log:
Backtrace:
[  2066.627] 0: /usr/bin/X (xorg_backtrace+0x35) [0x484dd5]
[  2066.627] 1: /usr/bin/X (0x400000+0x5569e) [0x45569e]
[  2066.627] 2: /lib/libpthread.so.0 (0x7f1bfdcdc000+0xf470) [0x7f1bfdceb470]
[  2066.627] 3: /usr/lib64/xorg/modules/extensions/libglx.so (0x7f1bfb552000+0x308a1) [0x7f1bfb5828a1]
[  2066.627] 4: /usr/lib64/xorg/modules/extensions/libglx.so (0x7f1bfb552000+0x36915) [0x7f1bfb588915]
[  2066.627] 5: /usr/lib64/xorg/modules/extensions/libglx.so (0x7f1bfb552000+0x2d85b) [0x7f1bfb57f85b]
[  2066.627] 6: /usr/lib64/xorg/modules/extensions/libglx.so (0x7f1bfb552000+0x2e30b) [0x7f1bfb58030b]
[  2066.627] 7: /usr/lib64/xorg/modules/extensions/libglx.so (0x7f1bfb552000+0x2fc6e) [0x7f1bfb581c6e]
[  2066.627] 8: /usr/bin/X (0x400000+0x2e232) [0x42e232]
[  2066.627] 9: /usr/bin/X (0x400000+0x2489a) [0x42489a]
[  2066.627] 10: /lib/libc.so.6 (__libc_start_main+0xfd) [0x7f1bfcec4cdd]
[  2066.627] 11: /usr/bin/X (0x400000+0x24369) [0x424369]
[  2066.627] Segmentation fault at address 0x290
[  2066.627] 
Fatal server error:
[  2066.627] Caught signal 11 (Segmentation fault). Server aborting
[  2066.627] 
[  2066.627]

If I switch off these effects at all (by clearing checkbox «Enable desktop effects» in Desktop Effects main page) — everything starts working well.

You can learn more about my system and versions of packages in the attached files.

I used these settings for Desktop effects:
[General]
* Improved window management
* Shadows
* Various animations
[Advanced]
* Compositing style: OpenGL
* Keep window thumbnails: Only for Shown Windows
* Disable functionality checks = False
* OpenGL mode: Texture from Pixmap
* Texture filter: Nearest(fastest)
* Enable direct rendering: True
* Use VSync: True

Thanks, Alex.

Reproducible: Always

Steps to Reproduce:
Just run the system and put it into described conditions. Run KDE with graphic effects + the latest xorg-server, then minimize and maximize any window.

Actual Results:  
X-server crashes with segfault
Comment 1 Alex 2010-12-17 00:46:22 UTC
Created attachment 54842 [details]
info about my system, compiler, libc, binutils and cxx flags
Comment 2 Alex 2010-12-17 00:47:36 UTC
Created attachment 54843 [details]
versions of packages
Comment 3 Alex 2010-12-17 00:48:01 UTC
Created attachment 54844 [details]
X-org config file
Comment 4 Thomas Lübking 2010-12-17 00:54:03 UTC
X11 uses an (expensive) client/server approach which on the other hand
(theoretically) gurantees that clients (like kwin) cannot crash the server -
ever.

So this is a bug in X11, sorry.

Consider to upgrade mesa (7.9-rc1 is known to have bugs anyway) and/or (for the
moment) disable KMS by passing "nomodeset radeon.modeset=0" to the kernel (at
GRUB)
Comment 5 Alex 2010-12-17 01:01:47 UTC
Eh.
That's a pity. Sincerely speaking, Xorg team don't pay attention on this bug.

What about KMS:
alex@bio ~ $ zcat /proc/config.gz | grep KMS
CONFIG_DRM_KMS_HELPER=y
# CONFIG_DRM_RADEON_KMS is not set

doesn't this mean that there is no KMS for Radeon in my kernel?
Comment 6 Thomas Lübking 2010-12-17 01:17:45 UTC
(In reply to comment #5)
> That's a pity. Sincerely speaking, Xorg team don't pay attention on this bug.
Rationale?
"We crash on OpenGL" doesn't sound much like a promotable feature...

> doesn't this mean that there is no KMS for Radeon in my kernel?
'x11-libs/libdrm-2.4.23  USE="libkms -static-libs" VIDEO_CARDS="radeon -intel -nouveau -vmware" 0 kB'
sounds like it does ("not set" doesn't mean "false" and it's "yes" by default since kernel "iforgottheversion" ;-)
Comment 7 Martin Flöser 2010-12-18 11:25:19 UTC
sorry, we cannot do anything when X crashes