Bug 115314

Summary: kpowersave crashes instantly on login
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Dirk Mueller <dmueller>
Component: Mobile DevicesAssignee: Danny Kukawka <dkukawka>
Status: VERIFIED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: cs, stefan.bruens
Version: Beta 4 Plus   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: crash log
Logfile from KDE crashhandler

Description Dirk Mueller 2005-09-05 15:12:12 UTC
logging in as root, kpowersave crashes.
Comment 1 Dirk Mueller 2005-09-05 15:12:50 UTC
Created attachment 48818 [details]
crash log
Comment 2 Thomas Renninger 2005-09-05 15:27:31 UTC
Maybe that was aj's last minute fix?
No idea -> Danny?
Comment 3 Dirk Mueller 2005-09-05 15:37:01 UTC
I installed beta4plus, whatever it is.. 
 
last changelog entry:  
 
* Mon Aug 29 2005 - dkukawka@suse.de 
 
- fixed bug #106177: use now scaling_cur_freq 
- fixed activaton of widgets in configure dialog 
- added and changed english helpfile (from srhoades@novell.com) 
- fixes to prevent crash of kpowersave if connection to D-BUS lost 
- fixed bug #113559 for autosuspend after a resume 
- fixed store changes of time for autosuspend in the configure 
  dialog 
- changed configure: detection of distributions and changed to 
  pkg-config to find the includes and libs for dbus 
- translation updates 
 
 
Comment 4 Dirk Mueller 2005-09-05 15:37:19 UTC
its oldboy.suse.de if you want to look.. 
Comment 5 Danny Al-Gaaf 2005-09-05 15:46:41 UTC
please try a newer package! This is IMO fixed.
Comment 6 Ulrich Lange 2005-09-10 08:54:47 UTC
Created attachment 49507 [details]
Logfile from KDE crashhandler

I installed RC1 and had the same problem. HW: HP Omnibook 6100, 1 GHz,
After the first login as root kpowersave crashed (see logfile).
Comment 7 Danny Al-Gaaf 2005-09-10 15:49:48 UTC
But crash it also after the first reboot after full installed or crashed it only 
after the installation finished?
Comment 8 Stefan Brüns 2005-09-10 20:39:27 UTC
Same here: 10.0-RC1, Inspriron 8200  
  
Unfortunately, the code in hal_battery.c is wrong. Have a look at  
libhal_get_string_array_from_iter(...) in libhal/libhal.c (package hal), which 
is called by libhal_find_device_by_capability(...):  
----  
buffer = (char **)malloc (sizeof (char *) * 8);  
...  
return buffer;  
----  
So under normal circumstances, ac_adapter in hal_battery.c is always != 0.  
Imho the correct code is:  
---  
if ( num > 0 ) ac_device = strdup(ac_adapter[0]);  
libhal_free_string_array(ac_adapter); 
--- 
Comment 9 Danny Al-Gaaf 2005-09-10 20:56:12 UTC
Again my question from #7: Crash this always? ...

IMO this is already fixed for the next version of powersave
Comment 10 Danny Al-Gaaf 2005-09-10 21:15:52 UTC

*** This bug has been marked as a duplicate of 115813 ***
Comment 11 Holger Macht 2005-09-10 22:10:32 UTC
comment #8: You are right. your code is the better one. It is the same used some
lines above getACAdapterStatus(...) ;-)

I will change this.

But please answer the question if it crashes on every login and not only
directly after installation.

Reopening until we'we got have an answer...
Comment 12 Stefan Brüns 2005-09-10 22:43:38 UTC
It crashes after login and after manual start   
kpowersave crashes, and powersave (-a|-b|-B) crashes, too   
  
As hal-find-by-capability --capability ac_adapter returns nothing, kpowersave  
_has_ to crash ...  
   
I dont know why, but hal thinks I have neither an ac_adapter nor a battery,   
until i run hald-addon-acpi manually - I think this is another bug?  
  
after hald-addon-acpi: 
$> hal-find-by-capability --capability ac_adapter 
/org/freedesktop/Hal/devices/acpi_AC 
  
Comment 13 Danny Al-Gaaf 2005-09-12 08:08:57 UTC
What is so problematic to answer the question?: " ... But crash it also after 
the first reboot after full installed or crashed it only after the installation 
finished? ..." ? 

We know that this crash directly after finish the installation because of a bug 
in the boot order during installation. Crash is still if you do this?:

rcacpid restart
rcpowersave restart
rchal restart
Comment 14 Marcel Hilzinger 2005-09-12 08:21:31 UTC
At my box (Inspiron 8600) it crashes only after the first login at 
installation. The first reboot resolves the problem.. 
Comment 15 Danny Al-Gaaf 2005-09-12 09:04:42 UTC
to #14: Thanks, for the information. This is fixed. I close the bug now
Comment 16 Danny Al-Gaaf 2005-09-16 09:19:35 UTC
*** Bug 117430 has been marked as a duplicate of this bug. ***