Bug 323832 - kded crashes when XRANDR extension is missing
Summary: kded crashes when XRANDR extension is missing
Status: RESOLVED DUPLICATE of bug 323778
Alias: None
Product: KScreen
Classification: Plasma
Component: kded (show other bugs)
Version: 1.0.1
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Alex Fiestas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-21 12:16 UTC by Martin Herkt
Modified: 2013-08-21 13:07 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Herkt 2013-08-21 12:16:26 UTC
…or at least that’s what I think is happening. The only hint I have is strace output, since I couldn’t get gdb to attach properly (--nofork didn’t help), and the fact that removing $libdir/kde4/plugins/kscreen made it work.

Reproducible: Always

Steps to Reproduce:
1. Start kded4 on a system without XRANDR.
Actual Results:  
kded4 crashed.

Expected Results:  
It should have made me a sandwich.

The XRANDR extension is missing on my system because I’m using two NVIDIA GPUs with Xinerama to drive four monitors.

strace output: http://p.srsfckn.biz/show/7/
Comment 1 Daniel Vrátil 2013-08-21 13:00:56 UTC

*** This bug has been marked as a duplicate of bug 323778 ***
Comment 2 Daniel Vrátil 2013-08-21 13:07:31 UTC
Git commit 06f1bf76f6f932b9b99cca990ed6d4e661d42740 by Dan Vrátil.
Committed on 21/08/2013 at 12:29.
Pushed by dvratil into branch 'master'.

Initialize member variables in XRandrX11Helper

Prevents showing bogus XRandR version in debug output when XRandR is
not available and fixes a crash when unloading an invalid backend

M  +6    -1    backends/xrandr/xrandrx11helper.cpp
M  +0    -1    backends/xrandr/xrandrx11helper.h

http://commits.kde.org/libkscreen/06f1bf76f6f932b9b99cca990ed6d4e661d42740