Bug 104382

Summary: SIGSEGV in KPowersave
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Alexander Schaefer <aschaefer>
Component: KDEAssignee: Danny Kukawka <dkukawka>
Status: VERIFIED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: kde-maintainers
Version: Beta 1   
Target Milestone: ---   
Hardware: i386   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Backtrace of SEGV

Description Alexander Schaefer 2005-08-12 12:57:10 UTC
When "YaST2 Power-Management-Modul starten" from the context menu of
KPowersave's tray icon is selected, the application exits with a SEGV. Selecting
YaST2 Power management from the YaST menu works as expected.

The backtrace will be attached.

Test System: FSC AMILO Pro8010, Intel Centrino 915 chipset (Pentium M 1.73GHz)
Comment 1 Alexander Schaefer 2005-08-12 12:58:24 UTC
Created attachment 45898 [details]
Backtrace of SEGV
Comment 2 Dirk Mueller 2005-08-12 18:12:18 UTC
hmm, introduced by seife. fix is:  
 
--- src/kpowersave.cpp 
+++ src/kpowersave.cpp 
@@ -60,6 +60,7 @@ 
 kpowersave::kpowersave() : KSystemTray(0, "kpowersave"), 
DCOPObject("KPowersaveIface") { 
        myDebug ("kpowersave::kpowersave"); 
  
+       yast2 = 0L; 
        new_screen = new screen(); 
        pdaemon = new pDaemon(); 
        current_settings = new settings(); 
 
Comment 3 Forgotten User ZhJd0F0L3x 2005-08-12 20:06:18 UTC
i'm on vacation, Danny will fix this.

Thanks for spotting the bug.
Comment 4 Danny Al-Gaaf 2005-08-15 10:06:06 UTC
fixed usage off KProcess within kpowersave and closed some related memoryleaks. 
Please test again in beta2.
Comment 5 Alexander Schaefer 2005-08-19 14:26:23 UTC
Works perfectly with beta2. Thanks for fixing...