Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 297221

Summary: kde-base/solid-4.3.4-r2 crashes plasma-desktop-4.3.4 on hardened
Product: Gentoo Linux Reporter: Hugo Mildenberger <Hugo.Mildenberger>
Component: HardenedAssignee: The Gentoo Linux Hardened Team <hardened>
Status: RESOLVED FIXED    
Severity: normal CC: hijacker, phantom4
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: https://bugs.kde.org/show_bug.cgi?id=219333
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 281988    
Attachments: plasma-desktop backtrace with locals (scroll down for bt f)
output of emerge --info =kde-base/solid-4.3.4-r2

Description Hugo Mildenberger 2009-12-16 20:33:25 UTC
Now that solid-4.3.4-r2 is out, plasma-desktop gets signaled for a different reason from those mentioned in bug #281988.

#0  0x4e084919 in QtPrivate::QStringList_contains (that=0x5a9b9db8, 
    str=@0x4e2570a8, cs=Qt::CaseSensitive) at tools/qstringlist.cpp:318
#1  0x403d5207 in HalPower::brightness (this=0x1150d180, device=@0x4e2570a8)
    at /usr/include/qt4/QtCore/qstringlist.h:171
#2  0x40644a38 in Solid::Control::PowerManager::brightness (device=@0x5a9b9fe8)
    at /usr/src/debug/kde-base/solid-4.3.4-r2/solid-4.3.4/libs/solid/control/powermanager.cpp:198
#3  0x404b91bf in Battery::initExtenderItem (this=0x1142e058, item=0x1161c660)
    at /usr/src/debug/kde-base/plasma-workspace-4.3.4/plasma-workspace-4.3.4/plasma/applets/battery/battery.cpp:406
#4  0x4ee9d052 in Plasma::ExtenderPrivate::loadExtenderItems (this=0x11616fb8)
    at /usr/src/debug/kde-base/kdelibs-4.3.4/kdelibs-4.3.4/plasma/extender.cpp:659

Will attach a more complete stack dump. Here is a workaround, successfully tested with sys-apps/hal-5.4.14

--- solid/control/powermanager.cpp.orig 2009-12-16 20:58:25.000000000 +0100
+++ solid/control/powermanager.cpp      2009-12-16 21:02:14.000000000 +0100
@@ -195,8 +195,12 @@
         }
         else
         {
+#if 0
             return_SOLID_CALL(Ifaces::PowerManager *, globalPowerManager->managerBackend(),
                       false, brightness(controls.keys(Solid::Control::PowerManager::Screen).at(0)));
+#else
+               return false;
+#endif
Comment 1 Hugo Mildenberger 2009-12-16 20:41:15 UTC
Created attachment 213234 [details]
plasma-desktop backtrace with locals (scroll down for bt f)
Comment 2 Hugo Mildenberger 2009-12-16 20:45:52 UTC
Created attachment 213235 [details]
output of emerge --info =kde-base/solid-4.3.4-r2

Also using sys-apps/hal-0.5.14 and -fstack-protector-all in use flags.
Comment 3 Hugo Mildenberger 2009-12-19 17:01:40 UTC
I have been rightfully critized for not yet having filed a report to KDE's bugzilla too. Here it is: https://bugs.kde.org/show_bug.cgi?id=219333
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-01-10 09:37:02 UTC
Should be fixed with solid-4.3.4-r3.