Bug#422420: kpowersave: crash when started
tag 422420 + patch thanks On Sat, May 05, 2007 at 09:38:10PM +0200, Michael Biebl wrote: Pierre Habouzit wrote: Package: kpowersave Version: 0.7.2-2 Severity: grave Justification: renders package unusable When kpowersave is launched, it just crash. 0.6 works correctly. Hi Pierre, could you please send me a backtrace? Okay, I have a debug build now, here is the useful backtrace: (gdb) r --nofork --nocrashhandler Starting program: /usr/bin/kpowersave --nofork --nocrashhandler [Thread debugging using libthread_db enabled] [New Thread 47593028352624 (LWP 9927)] Qt: gdb: -nograb added to command-line options. Use the -dograb option to enforce grabbing. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 47593028352624 (LWP 9927)] 0x2b49187e0430 in strcmp () from /lib/libc.so.6 (gdb) bt #0 0x2b49187e0430 in strcmp () from /lib/libc.so.6 #1 0x2b4917d9fe97 in kpowersave::setSchemeSettings (this=0x669690) at /tmp/buildd/kpowersave-0.7.2/./src/kpowersave.cpp:1607 #2 0x2b4917da6109 in kpowersave (this=0x669690, force_acpi_check=false) at /tmp/buildd/kpowersave-0.7.2/./src/kpowersave.cpp:138 #3 0x2b4917da70a2 in kdemain (argc=value optimized out, argv=value optimized out) at /tmp/buildd/kpowersave-0.7.2/./src/main.cpp:84 #4 0x2b49187878e4 in __libc_start_main () from /lib/libc.so.6 #5 0x00400519 in _start () And obviously this is wrong: } else if ((!strcmp(getenv(DESKTOP_SESSION), gnome)) (display-checkScreenSaverStatus() == 11)) { I wonder how this can ever work for anybody :) Maybe that's because I'm a ion3 user and that it does not defines DESKTOP_SESSION :) attached is a patch. -- ·O· Pierre Habouzit ··O[EMAIL PROTECTED] OOOhttp://www.madism.org diff -Nur kpowersave-0.7.2/src/kpowersave.cpp kpowersave-0.7.2.new/src/kpowersave.cpp --- kpowersave-0.7.2/src/kpowersave.cpp 2007-05-08 16:03:01.0 +0200 +++ kpowersave-0.7.2.new/src/kpowersave.cpp 2007-05-08 16:03:53.0 +0200 @@ -1604,7 +1604,7 @@ // Maybe nothing ?! } } - } else if ((!strcmp(getenv(DESKTOP_SESSION), gnome)) (display-checkScreenSaverStatus() == 11)) { + } else if ((getenv(DESKTOP_SESSION) !strcmp(getenv(DESKTOP_SESSION), gnome)) (display-checkScreenSaverStatus() == 11)) { // use this to set XScreensaver back to default settings this should // also cover the DPMS settings for GNOME/XScreensaver pgpiGgDKIyFon.pgp Description: PGP signature
Processed: Re: Bug#422420: kpowersave: crash when started
Processing commands for [EMAIL PROTECTED]: tag 422420 + patch Bug#422420: kpowersave: crash when started There were no tags set. Tags added: patch thanks Stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#422420: kpowersave: crash when started
Pierre Habouzit wrote: On Sat, May 05, 2007 at 09:38:10PM +0200, Michael Biebl wrote: When kpowersave is launched, it just crash. 0.6 works correctly. Hi Pierre, could you please send me a backtrace? [Thread debugging using libthread_db enabled] [New Thread 47449177901680 (LWP 14032)] [KCrash handler] #5 0x2b2799cc8795 in kpowersave::setSchemeSettings () Does it help to delete ~/.kde/share/config/kpowersaverc? If so, please send me the old config file from 0.6. Unfortunately I can't provide you a debug build as I don't have a amd64 machine. Cheers, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? signature.asc Description: OpenPGP digital signature
Bug#422420: kpowersave: crash when started
On Sun, May 06, 2007 at 02:22:22PM +0200, Michael Biebl wrote: Pierre Habouzit wrote: On Sat, May 05, 2007 at 09:38:10PM +0200, Michael Biebl wrote: When kpowersave is launched, it just crash. 0.6 works correctly. Hi Pierre, could you please send me a backtrace? [Thread debugging using libthread_db enabled] [New Thread 47449177901680 (LWP 14032)] [KCrash handler] #5 0x2b2799cc8795 in kpowersave::setSchemeSettings () Does it help to delete ~/.kde/share/config/kpowersaverc? If so, please send me the old config file from 0.6. No it does not. Unfortunately I can't provide you a debug build as I don't have a amd64 machine. Okway, I'll try to make myself violence and do one, I don't know when though :\ -- ·O· Pierre Habouzit ··O[EMAIL PROTECTED] OOOhttp://www.madism.org pgpCrFnaB5ufj.pgp Description: PGP signature
Bug#422420: kpowersave: crash when started
Package: kpowersave Version: 0.7.2-2 Severity: grave Justification: renders package unusable When kpowersave is launched, it just crash. 0.6 works correctly. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.20-1-amd64 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages kpowersave depends on: ii hal 0.5.8.1-9 Hardware Abstraction Layer ii kdelibs4c2a 4:3.5.6.r1.dfsg.1-4 core libraries and binaries for al ii libc62.5-5 GNU C Library: Shared libraries ii libdbus-1-3 1.0.2-4 simple interprocess messaging syst ii libdbus-qt-1-1c2 0.62.git.20060814-2 simple interprocess messaging syst ii libgcc1 1:4.1.2-5 GCC support library ii libhal1 0.5.8.1-9 Hardware Abstraction Layer - share ii libstdc++6 4.1.2-5 The GNU Standard C++ Library v3 ii libxext6 1:1.0.3-2 X11 miscellaneous extension librar ii libxss1 1:1.1.2-1 X11 Screen Saver extension library ii libxtst6 1:1.0.1-5 X11 Testing -- Resource extension Versions of packages kpowersave recommends: ii acpi-support 0.90-4 scripts for handling many ACPI eve ii hibernate 1.94-2 smartly puts your computer to slee ii powersaved0.14.0-7 power management daemon -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#422420: kpowersave: crash when started
Pierre Habouzit wrote: Package: kpowersave Version: 0.7.2-2 Severity: grave Justification: renders package unusable When kpowersave is launched, it just crash. 0.6 works correctly. Hi Pierre, could you please send me a backtrace? Cheers, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? signature.asc Description: OpenPGP digital signature
Bug#422420: kpowersave: crash when started
On Sat, May 05, 2007 at 09:38:10PM +0200, Michael Biebl wrote: Pierre Habouzit wrote: Package: kpowersave Version: 0.7.2-2 Severity: grave Justification: renders package unusable When kpowersave is launched, it just crash. 0.6 works correctly. Hi Pierre, could you please send me a backtrace? damn, sorry I forgot to mention it, I must have forgotten to paste. I fear it's not very useful though, but don't have currently enough time to do a debug build to have a more interesting one. If you can provide one, I'd be glad to report it. Note that I'm on amd64, could be $arch dependant. (no debugging symbols found) Using host libthread_db library /lib/libthread_db.so.1. (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread 47449177901680 (LWP 14032)] [KCrash handler] #5 0x2b2799cc8795 in kpowersave::setSchemeSettings () from /usr/lib/libkdeinit_kpowersave.so #6 0x2b2799ccaf1e in kpowersave::kpowersave () from /usr/lib/libkdeinit_kpowersave.so #7 0x2b2799ccf437 in kdemain () from /usr/lib/libkdeinit_kpowersave.so #8 0x2b279a60e8e4 in __libc_start_main () from /lib/libc.so.6 #9 0x00400519 in ?? () #10 0x7fff10e5e758 in ?? () #11 0x in ?? () -- ·O· Pierre Habouzit ··O[EMAIL PROTECTED] OOOhttp://www.madism.org pgpI48wLEAzbo.pgp Description: PGP signature