Bug#688767: systemsettings: Crash in Display and Monitor

2012-11-11 Thread David Smith
tags 688767 patch
thanks

Hello! I can confirm that the patch that upstream made for KDE 4.10 applies to 
kgamma in KDE 4.8.4 and fixing the crash.
Please consider applying this patch to Wheezy.

Upstream patch is here:
https://projects.kde.org/projects/kde/kdegraphics/kgamma/repository/revisions/1918f145261a52a3b2a917c6784c2cebecbb4064/diff/kcmkgamma/kgamma.cpp

Or see attached.

Thanks for your time.

-David
commit 1918f145261a52a3b2a917c6784c2cebecbb4064
Author: Christoph Feck christ...@maxiom.de
Date:   Sun Nov 11 02:19:01 2012 +0100

Fix crash when XVidExtWrap is not available

This can happen when run as root
BUG: 292335
FIXED-IN: 4.10

diff --git a/kcmkgamma/kgamma.cpp b/kcmkgamma/kgamma.cpp
index ffe29ea..890ba99 100644
--- a/kcmkgamma/kgamma.cpp
+++ b/kcmkgamma/kgamma.cpp
@@ -70,7 +70,7 @@ KGamma::KGamma(QWidget* parent_P, const QVariantList )
 :KCModule(KGammaConfigFactory::componentData(), parent_P), rootProcess(0)
 {
   bool ok;
-  GammaCorrection = true;
+  GammaCorrection = false;
   xv = new XVidExtWrap(ok, NULL);
   if (ok) { /* KDE 4: Uneccessary test, when all KCM wrappers do conditional 
loading */
 xv-getGamma(XVidExtWrap::Red, ok);
@@ -94,6 +94,7 @@ KGamma::KGamma(QWidget* parent_P, const QVariantList )
   xv-setScreen(currentScreen);
 
   rootProcess = new KProcess;
+  GammaCorrection = true;
   setupUI();
   saved = false;
 
@@ -107,10 +108,9 @@ KGamma::KGamma(QWidget* parent_P, const QVariantList )
   }
   load();
 }
-else {  //something is wrong, show only error message
-  GammaCorrection = false;
-  setupUI();
-}
+  }
+  if (!GammaCorrection) { //something is wrong, show only error message
+setupUI();
   }
 }
 


Bug#688767: systemsettings: Crash in Display and Monitor

2012-09-25 Thread David Smith
Package: systemsettings
Version: 4:4.8.4-3
Severity: important

1. Edit your System Settings menu item: select run as different user
2. Start up System Settings, it prompts for root password, enter it.
3. Click on Display and Monitor
4. In the window that pops up, click on Gamma on the left.
5. Segfaults


Application: System Settings (systemsettings), signal: Segmentation fault
Using host libthread_db library /lib/i386-linux-
gnu/i686/cmov/libthread_db.so.1.
[KCrash Handler]
#7  0xb6cd91d7 in QAbstractButton::isChecked (this=0x9ec9948) at
widgets/qabstractbutton.cpp:774
#8  0xb131913c in ?? () from /usr/lib/kde4/kcm_kgamma.so
#9  0xb74fba07 in qt_static_metacall (_a=0x9ee3cc0, _id=3, _o=0x9ecb630,
_c=optimized out) at ./kcmodule.moc:66
#10 KCModule::qt_static_metacall (_o=0x9ecb630,
_c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x9ee3cc0) at ./kcmodule.moc:57
#11 0xb62b778a in QMetaCallEvent::placeMetaCall (this=0x9f13768,
object=0x9ecb630) at kernel/qobject.cpp:525
#12 0xb62bbccb in QObject::event (this=0x9ecb630, e=0x9f13768) at
kernel/qobject.cpp:1195
#13 0xb69134da in QWidget::event (this=0x9ecb630, event=0x9f13768) at
kernel/qwidget.cpp:8830
#14 0xb68ba47c in QApplicationPrivate::notify_helper (this=0x99a3898,
receiver=0x9ecb630, e=0x9f13768) at kernel/qapplication.cpp:4556
#15 0xb68bef24 in QApplication::notify (this=0x99a3898, receiver=0x9ecb630,
e=0x9f13768) at kernel/qapplication.cpp:4417
#16 0xb7455581 in KApplication::notify (this=0xbff72a9c, receiver=0x9ecb630,
event=0x9f13768) at ../../kdeui/kernel/kapplication.cpp:311
#17 0xb62a555e in QCoreApplication::notifyInternal (this=0xbff72a9c,
receiver=0x9ecb630, event=0x9f13768) at kernel/qcoreapplication.cpp:915
#18 0xb62a976d in sendEvent (event=optimized out, receiver=optimized out)
at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#19 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0,
data=0x9975c18) at kernel/qcoreapplication.cpp:1539
#20 0xb62a99ec in QCoreApplication::sendPostedEvents (receiver=0x0,
event_type=0) at kernel/qcoreapplication.cpp:1432
#21 0xb62d76c4 in sendPostedEvents () at
.../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#22 postEventSourceDispatch (s=0x9991d30) at
kernel/qeventdispatcher_glib.cpp:279
#23 0xb56d6633 in g_main_context_dispatch () from /lib/i386-linux-
gnu/libglib-2.0.so.0
#24 0xb56d69d0 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#25 0xb56d6ab1 in g_main_context_iteration () from /lib/i386-linux-
gnu/libglib-2.0.so.0
#26 0xb62d7841 in QEventDispatcherGlib::processEvents (this=0x9976780,
flags=...) at kernel/qeventdispatcher_glib.cpp:424
#27 0xb696d1fa in QGuiEventDispatcherGlib::processEvents (this=0x9976780,
flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#28 0xb62a402c in QEventLoop::processEvents (this=this@entry=0xbff729c8,
flags=...) at kernel/qeventloop.cpp:149
#29 0xb62a4321 in QEventLoop::exec (this=0xbff729c8, flags=...) at
kernel/qeventloop.cpp:204
#30 0xb62a9a9a in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#31 0xb68b82f4 in QApplication::exec () at kernel/qapplication.cpp:3817
#32 0x08050d32 in main (argc=5, argv=0xbff72b84) at
.../../../systemsettings/app/main.cpp:49



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-3-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages systemsettings depends on:
ii  kde-runtime  4:4.8.4-1
ii  libc62.13-35
ii  libfontconfig1   2.9.0-7
ii  libkcmutils4 4:4.8.4-3
ii  libkdecore5  4:4.8.4-3
ii  libkdeui54:4.8.4-3
ii  libkhtml54:4.8.4-3
ii  libkio5  4:4.8.4-3
ii  libknewstuff3-4  4:4.8.4-3
ii  libqt4-dbus  4:4.8.2+dfsg-2
ii  libqt4-xml   4:4.8.2+dfsg-2
ii  libqtcore4   4:4.8.2+dfsg-2
ii  libqtgui44:4.8.2+dfsg-2
ii  libstdc++6   4.7.1-7
ii  libx11-6 2:1.5.0-1

systemsettings recommends no packages.

systemsettings suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org