Bug#308362: gnome-cpufreq-applet: cpufreq-selector segfaults due
to missing scaling_available_frequencies file
Johannes Berg
Johannes Berg <johannes@sipsolutions.net>, 308362@bugs.debian.org
Mon, 09 May 2005 20:48:40 +0200
--=-XSDqySyx3dtqYC97Zgx9
Content-Type: multipart/mixed; boundary="=-D2PHdGpMsjwkfjhqxR9s"
--=-D2PHdGpMsjwkfjhqxR9s
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Subject: gnome-cpufreq-applet: cpufreq-selector segfaults due to missing sc=
aling_available_frequencies file
Package: gnome-cpufreq-applet
Version: 0.3.1-4
Severity: important
Tags: patch
On my system (PowerBook5,6) the cpufreq-selector segfaults because there's
no scaling_available_frequencies file.
Please consider attached patch to make it use cpu_min/cpu_max as the only
available frequencies if the file is not found.
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.11.7
Locale: LANG=3Den_US.UTF-8, LC_CTYPE=3Den_US.UTF-8 (charmap=3DUTF-8)
Versions of packages gnome-cpufreq-applet depends on:
ii debconf [debconf-2.0] 1.4.49 Debian configuration managemen=
t sy
ii gconf2 2.8.1-5 GNOME configuration database s=
yste
ii libart-2.0-2 2.3.17-1 Library of functions for 2D gr=
aphi
ii libatk1.0-0 1.9.1-0ubuntu1 The ATK accessibility toolkit
ii libbonobo2-0 2.8.1-2 Bonobo CORBA interfaces librar=
y
ii libbonoboui2-0 2.8.1-2 The Bonobo UI library
ii libc6 2.3.5-1 GNU C Library: Shared librarie=
s an
ii libgconf2-4 2.8.1-5 GNOME configuration database s=
yste
ii libglade2-0 1:2.4.2-2 library to load .glade files a=
t ru
ii libglib2.0-0 2.6.4-1 The GLib library of C routines
ii libgnome2-0 2.8.1-2 The GNOME 2 library - runtime =
file
ii libgnomecanvas2-0 2.8.0-1 A powerful object-oriented dis=
play
ii libgnomeui-0 2.8.1-3 The GNOME 2 libraries (User In=
terf
ii libgnomevfs2-0 2.8.4-3 The GNOME virtual file-system =
libr
ii libgtk2.0-0 2.6.4-1 The GTK+ graphical user interf=
ace=20
ii libice6 6.8.2-mea1 Inter-Client Exchange library
ii liborbit2 1:2.12.2-1 libraries for ORBit2 - a CORBA=
ORB
ii libpanel-applet2-0 2.8.3-1 library for GNOME 2 panel appl=
ets
ii libpango1.0-0 1.8.1-1 Layout and rendering of intern=
atio
ii libpopt0 1.7-5 lib for parsing cmdline parame=
ters
ii libsm6 6.8.2-mea1 X Window System Session Manage=
ment
ii libxml2 2.6.16-7 GNOME XML library
ii xlibs 6.8.2-mea1 X Window System client librari=
es m
ii zlib1g 1:1.2.2-4 compression library - runtime
-- debconf information:
* gnome-cpufreq-applet/SUID_bit: true
--=-D2PHdGpMsjwkfjhqxR9s
Content-Disposition: attachment; filename=patch
Content-Type: text/plain; name=patch; charset=UTF-8
Content-Transfer-Encoding: base64
LS0tIGdub21lLWNwdWZyZXEtYXBwbGV0LTAuMy4xL3NyYy9jcHVmcmVxLXNlbGVjdG9yL2NwdWZy
ZXEtc3lzZnMuYwkyMDA0LTEwLTA1IDIwOjEwOjQyLjAwMDAwMDAwMCArMDIwMA0KKysrIGdub21l
LWNwdWZyZXEtYXBwbGV0LTAuMy4xLm1vZC9zcmMvY3B1ZnJlcS1zZWxlY3Rvci9jcHVmcmVxLXN5
c2ZzLmMJMjAwNS0wNS0wOSAyMDozNzoyMS45MzgyMTg3MDYgKzAyMDANCkBAIC0zMTAsMTcgKzMx
MCwyMiBAQA0KIAkgICB9DQogDQogCSAgIGdfZnJlZSAocGF0aCk7DQorCSAgIA0KKwkgICBpZiAo
IWZyZXF1ZW5jaWVzKSB7DQorCQkgICBsaXN0ID0gZ19saXN0X2FwcGVuZCAobGlzdCwgZ19zdHJk
dXBfcHJpbnRmKCIlZCIsIHByaXZhdGUtPmNwdV9taW4pKTsNCisJCSAgIGxpc3QgPSBnX2xpc3Rf
YXBwZW5kIChsaXN0LCBnX3N0cmR1cF9wcmludGYoIiVkIiwgcHJpdmF0ZS0+Y3B1X21heCkpOw0K
KwkgICB9IGVsc2Ugew0KKwkJICAgaSA9IDA7DQorCQkgICB3aGlsZSAoZnJlcXVlbmNpZXNbaV0g
IT0gTlVMTCkgew0KKwkJCQkgaWYgKCFnX2xpc3RfZmluZF9jdXN0b20gKGxpc3QsIGZyZXF1ZW5j
aWVzW2ldLCBjb21wYXJlX2ludCkpDQorCQkJCQkgICAgbGlzdCA9IGdfbGlzdF9wcmVwZW5kIChs
aXN0LCBnX3N0cmR1cCAoZnJlcXVlbmNpZXNbaV0pKTsNCisJCQkJIGkrKzsNCisJCSAgIH0NCiAN
Ci0JICAgaSA9IDA7DQotCSAgIHdoaWxlIChmcmVxdWVuY2llc1tpXSAhPSBOVUxMKSB7DQotCQkJ
IGlmICghZ19saXN0X2ZpbmRfY3VzdG9tIChsaXN0LCBmcmVxdWVuY2llc1tpXSwgY29tcGFyZV9p
bnQpKQ0KLQkJCQkgICAgbGlzdCA9IGdfbGlzdF9wcmVwZW5kIChsaXN0LCBnX3N0cmR1cCAoZnJl
cXVlbmNpZXNbaV0pKTsNCi0JCQkgaSsrOw0KKwkJICAgZ19zdHJmcmVldiAoZnJlcXVlbmNpZXMp
Ow0KKwkgICANCisJCSAgIGxpc3QgPSBnX2xpc3Rfc29ydCAobGlzdCwgY29tcGFyZV9pbnQpOw0K
IAkgICB9DQotDQotCSAgIGdfc3RyZnJlZXYgKGZyZXF1ZW5jaWVzKTsNCi0NCi0JICAgbGlzdCA9
IGdfbGlzdF9zb3J0IChsaXN0LCBjb21wYXJlX2ludCk7DQogCSAgIA0KIAkgICByZXR1cm4gbGlz
dDsNCiB9DQo=
--=-D2PHdGpMsjwkfjhqxR9s--
--=-XSDqySyx3dtqYC97Zgx9
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Comment: Johannes Berg (SIP Solutions)
iQIVAwUAQn+whqVg1VMiehFYAQLl1RAAv6l3gCWfbpxLzceFPAhsvZxtP3LXDTDX
bsva8fbI5YOeTNFFFqyRBkQ3XxCOh9YJfzTiBnMJWBhLsrsuCDtsd7YCFN0xLBLj
4qnDxMDX/9McrInelIqynimJkY8L4fongATcAKyis7nAtk2uxkwoKL/M2em8lSLw
pg+dncvjASS+fOWi5WM2wrhfFyTG349h3dQ2AjjuwiL8/y+dm1AvFvw9zt5ALPzR
dpA3xnbgChBzu8v7Fy1y9Jg+f4uJcViujqkYekn6v5UrxbSU6mPs23V5n8Ziod8z
Y9BVB1GVkhgRG+gM70owYKfaBT9Meu/ymfxNAdI/Plp422wWnwhnP4S/nnb0sPxQ
bhoP28KpUUPir+HAMiczI0g7HfjXI5fKrDfNQf9DD+eh/J1u469zvS5yk+Yv1vsq
yEpopbfM2tmjGYTLq3tlsnxaw65vZ//4J3mzCeDkCuILKxj/ipEdJr6nABGJguVK
iI5rrjif3Xpt29upY9hW1d+UuSGDt4WCuhK38oXokEcZlZ6k/oIBehgfUGZqfKzC
afi3lO00z+AKQhvFfftefSWb+PTomNAf+dJz/9VdiGnYTv20WiZ2wuddr7XIr3Zi
zPrce0yFjGGruQy4wBDsiUQVET8SszY59ltv85sfjbojTehFhKYY9ElsnFqqnE8l
z7f9/jgpoKE=
=3ZSu
-----END PGP SIGNATURE-----
--=-XSDqySyx3dtqYC97Zgx9--