Debian Bug report logs - #255855
upgrade from 1.1.1-1 to 1.1.2-1 blanks config file

version graph

Package: cpufreqd; Maintainer for cpufreqd is Mattia Dongili <malattia@debian.org>; Source for cpufreqd is src:cpufreqd (PTS, buildd, popcon).

Reported by: Edgar Seemann <uhme@rz.uni-karlsruhe.de>

Date: Wed, 14 Apr 2004 06:33:04 UTC

Severity: grave

Tags: patch

Found in version 1.1.2-1

Fixed in version cpufreqd/1.1.2-3

Done: dongili@supereva.it (Mattia Dongili (ma.d.))

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#243649; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Edgar Seemann <uhme@rz.uni-karlsruhe.de>:
New Bug report received and forwarded. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Edgar Seemann <uhme@rz.uni-karlsruhe.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: cpufreqd: setting up package fails
Date: Wed, 14 Apr 2004 08:27:06 +0200
Package: cpufreqd
Version: 1.1.2-1
Severity: grave
Tags: sid
Justification: renders package unusable



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.2
Locale: LANG=C, LC_CTYPE=C

Versions of packages cpufreqd depends on:
ii  debconf                     1.4.22       Debian configuration management sy
ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared libraries an

-- debconf information:
* cpufreqd/no_procfs_sysfs: 
  cpufreqd/no_pm:


Error Description:

Setting up cpufreqd (1.1.2-1) ...
Starting CPU Frequency daemon: cpufreqdinvoke-rc.d: initscript
cpufreqd, action "start" failed.
dpkg: error processing cpufreqd (--configure):
subprocess post-installation script returned error exit status 255
Errors were encountered while processing:
  cpufreqd
E: Sub-process /usr/bin/dpkg returned an error code (1)
    



Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#243649; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Mattia Dongili <dongili@supereva.it>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #10 received at 243649@bugs.debian.org (full text, mbox, reply):

From: Mattia Dongili <dongili@supereva.it>
To: Edgar Seemann <uhme@rz.uni-karlsruhe.de>, 243649@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: Bug#243649: cpufreqd: setting up package fails
Date: Wed, 14 Apr 2004 10:39:49 +0200
tags 243649 + unreproducible
thank

On Wed, Apr 14, 2004 at 08:27:06AM +0200, Edgar Seemann wrote:
[...]
> -- debconf information:
> * cpufreqd/no_procfs_sysfs: 
>   cpufreqd/no_pm:

Hi,
I can't reproduce the error here, even umounting /sys in order to fail
cpufreq kernel interface detection, installation is still ok (that seems
to be the same install path you had). Installing without a CPUFreq
kernel interface shouldn't even try to start the daemon.

A couple of questions:
1- did you upgrade from any older version?
2- are you using ACPI?
3- if so do you have /proc/acpi/battery/*/{state,info} and
/proc/acpi/ac_adapter/*/state (kernel modules ac and battery loaded or
compiled in)

would you send me the output of the following script (it tries to answer
some of the questions above):

-------------8<-----------
#!/bin/sh

echo '************'

if [ -f /proc/pmu ]; then
  echo 'pmu found'
elif [ -f /proc/apm ]; then
  echo 'apm found'
elif [ -d /proc/acpi ]; then
  echo 'acpi found:'
  ls -lR /proc/acpi/{ac_adapter,battery}/*
else
  echo 'no PowerManagement'
fi

echo '************'

if [ -d /sys/devices/system/cpu/cpu0/cpufreq ] ; then
  echo 'sysfs cpufreq interface found:'
  ls -lR /sys/devices/system/cpu/cpu0/cpufreq
elif [ -f /proc/cpufreq ] ; then
  echo 'proc cpufreq interface found'
else
  echo 'No CPUFreq'
fi

echo '************'
-------------8<-----------

thanks a lot
-- 
mattia
:wq!
Hodie postridie Idus Apriles MMDCCLVII ab urbe condita est



Tags added: unreproducible Request was from Mattia Dongili <dongili@supereva.it> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#243649; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Mattia Dongili <dongili@supereva.it>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #17 received at 243649@bugs.debian.org (full text, mbox, reply):

From: Mattia Dongili <dongili@supereva.it>
To: Edgar Seemann <uhme@rz.uni-karlsruhe.de>, 243649@bugs.debian.org
Subject: Re: Bug#243649: cpufreqd: setting up package fails
Date: Wed, 14 Apr 2004 14:25:55 +0200
[Please, keep 243649@bugs.debian.org in the Cc-list, otherwise these
informations won't be archived in the debian bug tracking system]

On Wed, Apr 14, 2004 at 01:16:51PM +0200, Edgar Seemann wrote:
> Hello Mattia,
> 
> yes, i did upgrade from an older version.
> I just made an "apt-get dist-upgrade" and got the error with your new 
> cpufreqd package.

...I'm a little stuck here...
So you already have a working cpufreqd installed (which version? `dpkg -l
cpufreqd`). Did it came from sourceforge or from the debian archive?

One more test that might be useful is:
- increase cpufreqd verbosity (in /etc/cpufreqd.conf 
  set verbosity at least 5 or 6)
- restart your old cpufreqd 
- try again to upgrade to the new one. 
Then send me the linse regarding cpufreqd in your /var/log/daemon.log

(be careful, verbosity=6 or 7 outputs a lot of stuff so be sure to lower
the verbosity value again after the test)

I'm also preparing some test packages trying to fix your problem, would
you mind testing before I upload them to the debian repository?

thanks a lot
-- 
mattia
:wq!
Hodie postridie Idus Apriles MMDCCLVII ab urbe condita est



Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#243649; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Mattia Dongili <dongili@supereva.it>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #22 received at 243649@bugs.debian.org (full text, mbox, reply):

From: Mattia Dongili <dongili@supereva.it>
To: Edgar Seemann <mail@edgar-seemann.de>, 243649@bugs.debian.org
Subject: Re: Bug#243649: cpufreqd: setting up package fails
Date: Wed, 14 Apr 2004 16:13:00 +0200
On Wed, Apr 14, 2004 at 03:37:05PM +0200, Edgar Seemann wrote:
> >...I'm a little stuck here...
> >So you already have a working cpufreqd installed (which version? `dpkg -l
> >cpufreqd`). Did it came from sourceforge or from the debian archive?
> 
> I had the old debian sid version installed.
> And i cannot start the old version any more. Because apt-get already 
> unpacked and replaced the files. Only the "Setting up..." part of the 
> installation went wrong. (now dpkg is reporting version 1.1.2-1)
> 
> If I manually start cpufreqd (/etc/init.d/cpufreqd start)
> Everything seems to work.
> 
> Are there any other people experiencing the same problem?

no. well... not yet at least :)

> >One more test that might be useful is:
> >- increase cpufreqd verbosity (in /etc/cpufreqd.conf 
> >  set verbosity at least 5 or 6)
> >- restart your old cpufreqd 
> >- try again to upgrade to the new one. 
> >Then send me the linse regarding cpufreqd in your /var/log/daemon.log
> >(be careful, verbosity=6 or 7 outputs a lot of stuff so be sure to lower
> >the verbosity value again after the test)
> 
> ok, I'll do that this evening or tomorrow morning.

I think that if you can start cpufreqd by `/etc/init.d/cpufreqd start`
re-installation will probably work since exactely such command failed
during installation...

I can't understand what went wrong...

> >thanks a lot
> 
> I thank you!!! It's really great of you to take care of my problem so 
> quickly.

well such a bug must be dealt quickly :)

bye
-- 
mattia
:wq!
Hodie postridie Idus Apriles MMDCCLVII ab urbe condita est



Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#243649; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Mattia Dongili <dongili@supereva.it>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #27 received at 243649@bugs.debian.org (full text, mbox, reply):

From: Mattia Dongili <dongili@supereva.it>
To: Edgar Seemann <mail@edgar-seemann.de>, 243649@bugs.debian.org
Subject: Re: Bug#243649: cpufreqd: setting up package fails
Date: Wed, 14 Apr 2004 21:20:57 +0200
On Wed, Apr 14, 2004 at 04:31:37PM +0200, Edgar Seemann wrote:
> >I think that if you can start cpufreqd by `/etc/init.d/cpufreqd start`
> >re-installation will probably work since exactely such command failed
> >during installation...
> >
> >I can't understand what went wrong...
> 
> me neither.
> And even though I can start cpufreqd manually, I still get the
> error message when issuing "apt-get dist-upgrade"

Please keep 243649@bugs.debian.org otherwise your messages won't be
archived in the debian bug tracking system

[...]
> Starting CPU Frequency daemon: cpufreqdinvoke-rc.d: initscript cpufreqd, 
> action "start" failed.
> dpkg: error processing cpufreqd (--configure):
>  subprocess post-installation script returned error exit status 255
> Errors were encountered while processing:
>  cpufreqd
> E: Sub-process /usr/bin/dpkg returned an error code (1)

what does /var/log/daemon.log says?

bye
-- 
mattia
:wq!
Hodie postridie Idus Apriles MMDCCLVII ab urbe condita est



Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#243649; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Edgar Seemann <mail@edgar-seemann.de>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #32 received at 243649@bugs.debian.org (full text, mbox, reply):

From: Edgar Seemann <mail@edgar-seemann.de>
To: Mattia Dongili <dongili@supereva.it>
Cc: 243649@bugs.debian.org
Subject: Re: Bug#243649: cpufreqd: setting up package fails
Date: Thu, 15 Apr 2004 08:04:05 +0200
Hello Mattia,

Obviously, cpufreqd can't find libsys_.so

My /var/log/daemon.log output:

Apr 15 08:01:34 i5100 cpufreqd: load_libraries(): 
/usr/lib/cpufreqd/libsys_.so: cannot open shared object file: No such 
file or directory
Apr 15 08:01:34 i5100 cpufreqd: Cannot open shared libraries. Exiting.



Mattia Dongili wrote:
> On Wed, Apr 14, 2004 at 04:31:37PM +0200, Edgar Seemann wrote:
> 
>>>I think that if you can start cpufreqd by `/etc/init.d/cpufreqd start`
>>>re-installation will probably work since exactely such command failed
>>>during installation...
>>>
>>>I can't understand what went wrong...
>>
>>me neither.
>>And even though I can start cpufreqd manually, I still get the
>>error message when issuing "apt-get dist-upgrade"
> 
> 
> Please keep 243649@bugs.debian.org otherwise your messages won't be
> archived in the debian bug tracking system
> 
> [...]
> 
>>Starting CPU Frequency daemon: cpufreqdinvoke-rc.d: initscript cpufreqd, 
>>action "start" failed.
>>dpkg: error processing cpufreqd (--configure):
>> subprocess post-installation script returned error exit status 255
>>Errors were encountered while processing:
>> cpufreqd
>>E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> 
> what does /var/log/daemon.log says?
> 
> bye



Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#243649; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Mattia Dongili <dongili@supereva.it>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #37 received at 243649@bugs.debian.org (full text, mbox, reply):

From: Mattia Dongili <dongili@supereva.it>
To: Edgar Seemann <mail@edgar-seemann.de>, 243649@bugs.debian.org
Subject: Re: Bug#243649: cpufreqd: setting up package fails
Date: Thu, 15 Apr 2004 12:45:21 +0200
On Thu, Apr 15, 2004 at 08:04:05AM +0200, Edgar Seemann wrote:
> Hello Mattia,
> 
> Obviously, cpufreqd can't find libsys_.so
> 
> My /var/log/daemon.log output:
> 
> Apr 15 08:01:34 i5100 cpufreqd: load_libraries(): 
> /usr/lib/cpufreqd/libsys_.so: cannot open shared object file: No such 
> file or directory
> Apr 15 08:01:34 i5100 cpufreqd: Cannot open shared libraries. Exiting.

ok, so the install script is failing auto-configuration.
Have you ever modified the original configuration?
could you send me your /etc/cpufreqd.conf?

It seems that the pm_type option has been left blank, but cpufreqd
should use the acpi plugin by default.

thanks
-- 
mattia
:wq!
Hodie decimo septimo Kalendas Maias MMDCCLVII ab urbe condita est



Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#243649; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Mattia Dongili <dongili@supereva.it>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #42 received at 243649@bugs.debian.org (full text, mbox, reply):

From: Mattia Dongili <dongili@supereva.it>
To: Edgar Seemann <mail@edgar-seemann.de>, 243649@bugs.debian.org
Subject: Re: Bug#243649: cpufreqd: setting up package fails
Date: Thu, 15 Apr 2004 14:50:27 +0200
On Thu, Apr 15, 2004 at 01:17:13PM +0200, Edgar Seemann wrote:
> yes, I modified the /etc/cpufreqd.conf.
> But obviously something deleted the /etc/cpufreqd.conf, becuase now the 
> file is empty.
> 
> I just replaced /etc/cpufreqd.conf with the original version and now 
> everything works fine.
> So ultimately it has been the empty cpufreqd.conf file causing problems.
> I'm not sure what exactly led to the deletion of the file contents.
> Could it be your new package?

hummm... I don't think so. The configuration script hasn't changed. Can
you reproduce the same behaviour by downgrading to cpufreqd-1.1.1-1
(it's in testing) and re-upgrading to sid's version?

thanks
-- 
mattia
:wq!
Hodie decimo septimo Kalendas Maias MMDCCLVII ab urbe condita est



Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#243649; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Mattia Dongili <dongili@supereva.it>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #47 received at 243649@bugs.debian.org (full text, mbox, reply):

From: Mattia Dongili <dongili@supereva.it>
To: Edgar Seemann <mail@edgar-seemann.de>, 243649@bugs.debian.org
Subject: Re: Bug#243649: cpufreqd: setting up package fails
Date: Thu, 15 Apr 2004 15:58:15 +0200
On Thu, Apr 15, 2004 at 03:13:06PM +0200, Edgar Seemann wrote:
> >hummm... I don't think so. The configuration script hasn't changed. Can
> >you reproduce the same behaviour by downgrading to cpufreqd-1.1.1-1
> >(it's in testing) and re-upgrading to sid's version?
> 
> I uninstalled and reinstalled cpufreqd 1.1.2-1.
> The error didn't occur any more.

did you also purged config files? (apt-get remove --purge cpufreqd or
dpkg --purge cpufreqd)
to reproduce the same situation you should reinstall the previous
version (1.1.1-1 available in testing[1]), restore your original config
file and then upgrade to 1.1.2-1.

Otherwise can you send me you orginal config file? I'll try to reproduce
it here.

[1]:
http://ftp.it.debian.org/debian/pool/main/c/cpufreqd/cpufreqd_1.1.1-1_i386.deb

> So, it might have been just a coincidence that you're package failed.

Coincidences in computer programming are quite rare ;)

> Sorry, for the trouble I caused.

No problem :)

-- 
mattia
:wq!
Hodie decimo septimo Kalendas Maias MMDCCLVII ab urbe condita est



Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#243649; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Mattia Dongili <dongili@supereva.it>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #52 received at 243649@bugs.debian.org (full text, mbox, reply):

From: Mattia Dongili <dongili@supereva.it>
To: Edgar Seemann <mail@edgar-seemann.de>, 243649@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: Bug#243649: cpufreqd: setting up package fails
Date: Thu, 15 Apr 2004 20:10:16 +0200
retitle 243649 cpufreqd fails to start with empty config file
tags 243649 - unreproducible
tags 243649 + upstream
severity 243649 normal
thank

On Thu, Apr 15, 2004 at 04:17:51PM +0200, Edgar Seemann wrote:
> Hello Mattia,
> 
> I installed cpufreqd-1.1.1-1.
> Unfortunately I don't have my original cpufreqd.conf any more. But 
> actually it was pretty close to the default examples 
> (/usr/share/doc/cpufreqd/examples)
> So now i used one of the example files. Upgrading to 1.1.2-1 didn't 
> produce any errors. Consequently, it has probably been my fault somehow.

aha! I reproduced the bug with an empty cpufreqd.conf :) silly! cpufreqd
doesn't stop with an error saying that no profiles/rules/anything is
defined...

I'm thus retitling the bug and lowering its severity

thanks, it will be fixed soon (still to understand why you config file
was empty but this is a different story)
-- 
mattia
:wq!
Hodie decimo septimo Kalendas Maias MMDCCLVII ab urbe condita est



Changed Bug title. Request was from Mattia Dongili <dongili@supereva.it> to control@bugs.debian.org. (full text, mbox, link).


Tags removed: unreproducible Request was from Mattia Dongili <dongili@supereva.it> to control@bugs.debian.org. (full text, mbox, link).


Tags added: upstream Request was from Mattia Dongili <dongili@supereva.it> to control@bugs.debian.org. (full text, mbox, link).


Severity set to `normal'. Request was from Mattia Dongili <dongili@supereva.it> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#243649; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Milan Jurik <M.Jurik@sh.cvut.cz>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #65 received at 243649@bugs.debian.org (full text, mbox, reply):

From: Milan Jurik <M.Jurik@sh.cvut.cz>
To: 243649@bugs.debian.org
Subject: Re: Bug#243649: cpufreqd: setting up package fails
Date: Tue, 27 Apr 2004 06:35:56 +0200 (CEST)
Hi,

> thanks, it will be fixed soon (still to understand why you config file
> was empty but this is a different story)

  The same problem here after upgrade from previous Sarge version
(1.1.1?) to 1.1.2-1. Conf is empty now.
  Best regards,

      Milan Jurik



Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#243649; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Mattia Dongili <dongili@supereva.it>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #70 received at 243649@bugs.debian.org (full text, mbox, reply):

From: Mattia Dongili <dongili@supereva.it>
To: Milan Jurik <M.Jurik@sh.cvut.cz>, 243649@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: Bug#243649: cpufreqd: setting up package fails
Date: Tue, 27 Apr 2004 09:52:59 +0200
severity 243649 serious
tags 243649 + unreproducible
retitle 243649 cpufreqd setup blanks the existing config file and fails to start
thank

On Tue, Apr 27, 2004 at 06:35:56AM +0200, Milan Jurik wrote:
> Hi,
> 
> > thanks, it will be fixed soon (still to understand why you config file
> > was empty but this is a different story)
> 
>   The same problem here after upgrade from previous Sarge version
> (1.1.1?) to 1.1.2-1. Conf is empty now.

can you reproduce it easily? Was your config file the default one or did
you changed it?

I can't understand how it happens since the install/setup scripts
haven't changed since 1.1.*

thanks
PS: I'm raising again severity
-- 
mattia
:wq!
Hodie quinto Kalendas Maias MMDCCLVII ab urbe condita est



Severity set to `serious'. Request was from Mattia Dongili <dongili@supereva.it> to control@bugs.debian.org. (full text, mbox, link).


Tags added: unreproducible Request was from Mattia Dongili <dongili@supereva.it> to control@bugs.debian.org. (full text, mbox, link).


Changed Bug title. Request was from Mattia Dongili <dongili@supereva.it> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#243649; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Milan Jurik <M.Jurik@sh.cvut.cz>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #81 received at 243649@bugs.debian.org (full text, mbox, reply):

From: Milan Jurik <M.Jurik@sh.cvut.cz>
To: 243649@bugs.debian.org
Subject: Re: Bug#243649: cpufreqd: setting up package fails
Date: Tue, 27 Apr 2004 10:38:44 +0200 (CEST)
Hi,

On Tue, 27 Apr 2004, Mattia Dongili wrote:

> On Tue, Apr 27, 2004 at 06:35:56AM +0200, Milan Jurik wrote:
> > Hi,
> >
> > > thanks, it will be fixed soon (still to understand why you config file
> > > was empty but this is a different story)
> >
> >   The same problem here after upgrade from previous Sarge version
> > (1.1.1?) to 1.1.2-1. Conf is empty now.
>
> can you reproduce it easily? Was your config file the default one or did
> you changed it?
>

  I'm not sure how to reproduce it. It was standard dselect update of
testing.
  Hmm, I downgraded to package 1.1.1 and then upgraded to version 1.1.2
again. Now without any problem.
  In previous (1.1.1) version, I used default conf, in the updated one I
must used my own.
  Hmmm, I purged cpufreqd and install 1.1.1 and than upgraded to 1.1.2.,
no problem now. So I cannot reproduce it now.

> I can't understand how it happens since the install/setup scripts
> haven't changed since 1.1.*
>
> thanks
> PS: I'm raising again severity
> --
> mattia
> :wq!
> Hodie quinto Kalendas Maias MMDCCLVII ab urbe condita est
>

Best regards,

        Milan Jurik



Tags removed: sid Request was from Steve Langasek <vorlon@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#243649; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Mattia Dongili <dongili@supereva.it>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #88 received at 243649@bugs.debian.org (full text, mbox, reply):

From: Mattia Dongili <dongili@supereva.it>
To: Steve Langasek <vorlon@debian.org>, 243649@bugs.debian.org
Subject: about #243649 [was: not just sid]
Date: Sun, 2 May 2004 23:41:44 +0200
Hi Steve,

so can you reproduce that[1] problem on cpufreqd?

(this bug is problably what can make me finally decide to remove
autoconfiguration from the install scripts...)

[1]
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=243649

thanks a lot
-- 
mattia
:wq!



Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#243649; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Steve Langasek <vorlon@debian.org>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #93 received at 243649@bugs.debian.org (full text, mbox, reply):

From: Steve Langasek <vorlon@debian.org>
To: Mattia Dongili <dongili@supereva.it>
Cc: 243649@bugs.debian.org
Subject: Re: about #243649 [was: not just sid]
Date: Sun, 2 May 2004 16:47:08 -0500
[Message part 1 (text/plain, inline)]
Hi Mattia,

On Sun, May 02, 2004 at 11:41:44PM +0200, Mattia Dongili wrote:
> so can you reproduce that[1] problem on cpufreqd?

> (this bug is problably what can make me finally decide to remove
> autoconfiguration from the install scripts...)

> [1]
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=243649

I'm sorry, I don't use cpufreqd, but I do see that the version of
cpufreqd in testing matches the version in unstable; so the "sid" tag
was inappropriate, unless you have reason to believe it was caused by a
difference in the testing/unstable versions of another package.

As such, it means that this bug must be fixed or downgraded before
sarge's release, or cpufreqd package will need to be removed.

Cheers,
-- 
Steve Langasek
postmodern programmer
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#243649; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Mattia Dongili <dongili@supereva.it>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #98 received at 243649@bugs.debian.org (full text, mbox, reply):

From: Mattia Dongili <dongili@supereva.it>
To: Milan Jurik <M.Jurik@sh.cvut.cz>, 243649@bugs.debian.org
Subject: Re: Bug#243649: cpufreqd: setting up package fails
Date: Wed, 5 May 2004 14:05:00 +0200
On Wed, May 05, 2004 at 11:44:18AM +0200, Milan Jurik wrote:
> Hi,
> 
>   do you have any idea? You can make e.g. a small test on the size of conf
> file.  If it will be zero, you can display warning :-)

no... I'm really wondering what happened.
do you have a backup copy of the erased config file? if so could you
send it to me?
also could you show me the output of 
tail /sys/devices/system/cpu/cpu0/cpufreq/*

I'd like to try to reproduce the problem here.
Also, do you remember if dpkg asked to install the new config file
during upgrade and what you answered?

the solution I'm thinking of is to completely remove autoconfiguration
from the install script and let the user do the work (based on provided
examples).

thanks
-- 
mattia
:wq!



Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#243649; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Mattia Dongili <dongili@supereva.it>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #103 received at 243649@bugs.debian.org (full text, mbox, reply):

From: Mattia Dongili <dongili@supereva.it>
To: Milan Jurik <M.Jurik@sh.cvut.cz>, 243649@bugs.debian.org, 243649-submitter@bugs.debian.org
Subject: Re: Bug#243649: cpufreqd: setting up package fails
Date: Sun, 20 Jun 2004 19:29:05 +0200
Hi,

did any of you had this problem again upgrading to cpufreqd-1.1.2-2 ?

If not I'll lower the bug seriousness as it is still impossible to me to
reproduce the bug and I only received 2 complaints :)

thanks (please keep the 243649@bugs.debian.org address in the cc-list)
-- 
mattia
:wq!



Message sent on to Edgar Seemann <uhme@rz.uni-karlsruhe.de>:
Bug#243649. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#243649; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Mattia Dongili <dongili@supereva.it>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #111 received at 243649@bugs.debian.org (full text, mbox, reply):

From: Mattia Dongili <dongili@supereva.it>
To: Milan Jurik <M.Jurik@sh.cvut.cz>, Edgar Seemann <mail@edgar-seemann.de>
Cc: 243649@bugs.debian.org, control@bugs.debian.org
Subject: Re: Bug#243649: cpufreqd: setting up package fails
Date: Wed, 23 Jun 2004 14:47:09 +0200
clone 243649 -1
retitle -1 upgrade from 1.1.1-1 to 1.1.2-1 blanks config file
severity -1 normal
retitle 243649 cpufreqd segfaults if its config file is empty
severity 243649 important
thank

On Sun, Jun 20, 2004 at 08:59:27PM +0200, Milan Jurik wrote:
> Hi,
> 
>   no problem with newer version.
>   Best regards,
> 
>              Milan Jurik
> 

On Wed, Jun 23, 2004 at 01:51:00PM +0200, Edgar Seemann wrote:
> >did any of you had this problem again upgrading to cpufreqd-1.1.2-2 ?
> 
> for me everything works just fine, right now.
> So no objection from my side.
> 
> thanks again for solving the problem so quickly.
> 
> -edgar

I'm lowering severity then to a non RC. Also: I'm splitting the bug as 2
different issues are present:
1. config file blanking during upgrade
2. cpufreqd segfaults if its config file is empty

thanks
-- 
mattia
:wq!



Bug 243649 cloned as bug 255855. Request was from Mattia Dongili <dongili@supereva.it> to control@bugs.debian.org. (full text, mbox, link).


Changed Bug title. Request was from Mattia Dongili <dongili@supereva.it> to control@bugs.debian.org. (full text, mbox, link).


Severity set to `normal'. Request was from Mattia Dongili <dongili@supereva.it> to control@bugs.debian.org. (full text, mbox, link).


Tags removed: Request was from Mattia Dongili <dongili@supereva.it> to control@bugs.debian.org. (full text, mbox, link).


Tags removed: upstream Request was from Mattia Dongili <dongili@supereva.it> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#255855; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Andrew Ross <andrewr@chiark.greenend.org.uk>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #126 received at 255855@bugs.debian.org (full text, mbox, reply):

From: Andrew Ross <andrewr@chiark.greenend.org.uk>
To: 255855@bugs.debian.org
Subject: Re: Bug#255855: cpufreqd: setting up package fails
Date: Wed, 21 Jul 2004 09:23:52 +0100
This bug is release critical for me. It's impossible to install the
package at all as the autoconfiguration fails and leaves a blank
/etc/cpufreqd.conf file which then triggers bug where cpufreqd crashes 
on a blank config file.

The problem is a race condition in the postinst script. Lines like
cat /etc/cpufreqd.conf |sed -e 's/foo/bar/' > /etc/cpufreqd.conf
fail for me and leave a blank file 

I'd propose something like 
cat /etc/cpufreqd.conf |sed -e 's/foo/bar/' > /etc/cpufreqd.conf.new
mv /etc/cpufreqd.conf.new /etc/cpufreqd.conf

How you want to do the temporary file name is up to you...

This fixes the problem for me.

Cheers

Andrew Ross



Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#255855; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Mattia Dongili <dongili@supereva.it>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #131 received at 255855@bugs.debian.org (full text, mbox, reply):

From: Mattia Dongili <dongili@supereva.it>
To: Andrew Ross <andrewr@chiark.greenend.org.uk>, 255855@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: Bug#255855: cpufreqd: setting up package fails
Date: Wed, 21 Jul 2004 11:22:16 +0200
tags 255855 + patch
tags 255855 + pending
tags 255855 - unreproducible
severity 255855 grave
thank

On Wed, Jul 21, 2004 at 09:23:52AM +0100, Andrew Ross wrote:
> 
> This bug is release critical for me. It's impossible to install the
> package at all as the autoconfiguration fails and leaves a blank
> /etc/cpufreqd.conf file which then triggers bug where cpufreqd crashes 
> on a blank config file.
> 
> The problem is a race condition in the postinst script. Lines like
> cat /etc/cpufreqd.conf |sed -e 's/foo/bar/' > /etc/cpufreqd.conf
> fail for me and leave a blank file 
> 
> I'd propose something like 
> cat /etc/cpufreqd.conf |sed -e 's/foo/bar/' > /etc/cpufreqd.conf.new
> mv /etc/cpufreqd.conf.new /etc/cpufreqd.conf

thanks, a new revision will be available shortly

-- 
mattia
:wq!



Tags added: patch Request was from Mattia Dongili <dongili@supereva.it> to control@bugs.debian.org. (full text, mbox, link).


Tags added: pending Request was from Mattia Dongili <dongili@supereva.it> to control@bugs.debian.org. (full text, mbox, link).


Tags removed: unreproducible Request was from Mattia Dongili <dongili@supereva.it> to control@bugs.debian.org. (full text, mbox, link).


Severity set to `grave'. Request was from Mattia Dongili <dongili@supereva.it> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#255855; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Matt Zimmerman <mdz@debian.org>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #144 received at 255855@bugs.debian.org (full text, mbox, reply):

From: Matt Zimmerman <mdz@debian.org>
To: 255855@bugs.debian.org
Subject: sed
Date: Wed, 21 Jul 2004 11:05:53 -0700
You might consider depending on a recent version of sed and using sed -i;
this makes it easy to do this correctly (preserving permissions, etc.).

-- 
 - mdz



Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#255855; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Mattia Dongili <dongili@supereva.it>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)). (full text, mbox, link).


Message #149 received at 255855@bugs.debian.org (full text, mbox, reply):

From: Mattia Dongili <dongili@supereva.it>
To: Matt Zimmerman <mdz@debian.org>, 255855@bugs.debian.org
Subject: Re: Bug#255855: sed
Date: Thu, 22 Jul 2004 09:36:31 +0200
On Wed, Jul 21, 2004 at 11:05:53AM -0700, Matt Zimmerman wrote:
> You might consider depending on a recent version of sed and using sed -i;
> this makes it easy to do this correctly (preserving permissions, etc.).

thanks I'll take a look at it

-- 
mattia
:wq!



Information forwarded to debian-bugs-dist@lists.debian.org, dongili@supereva.it (Mattia Dongili (ma.d.)):
Bug#255855; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Fabio Massimo Di Nitto <fabbione@fabbione.net>:
Extra info received and forwarded to list. Copy sent to dongili@supereva.it (Mattia Dongili (ma.d.)).

Your message did not contain a Subject field. They are recommended and useful because the title of a Bug is determined using this field. Please remember to include a Subject field in your messages in future.

(full text, mbox, link).


Message #154 received at 255855@bugs.debian.org (full text, mbox, reply):

From: Fabio Massimo Di Nitto <fabbione@fabbione.net>
To: 255855@bugs.debian.org
Date: Mon, 26 Jul 2004 14:31:06 +0200 (CEST)
hi,
	the patch to fix this bug can be found here:

http://we.give.back.to.debian.even.if.we.have.no-name-yet.com/patches/cpufreqd.255855.diff

Thanks
Fabio

-- 
<user> fajita: step one
<fajita> Whatever the problem, step one is always to look in the error log.
<user> fajita: step two
<fajita> When in danger or in doubt, step two is to scream and shout.



Reply sent to dongili@supereva.it (Mattia Dongili (ma.d.)):
You have taken responsibility. (full text, mbox, link).


Notification sent to Edgar Seemann <uhme@rz.uni-karlsruhe.de>:
Bug acknowledged by developer. (full text, mbox, link).


Message #159 received at 255855-close@bugs.debian.org (full text, mbox, reply):

From: dongili@supereva.it (Mattia Dongili (ma.d.))
To: 255855-close@bugs.debian.org
Subject: Bug#255855: fixed in cpufreqd 1.1.2-3
Date: Sat, 07 Aug 2004 14:47:05 -0400
Source: cpufreqd
Source-Version: 1.1.2-3

We believe that the bug you reported is fixed in the latest version of
cpufreqd, which is due to be installed in the Debian FTP archive:

cpufreqd_1.1.2-3.diff.gz
  to pool/main/c/cpufreqd/cpufreqd_1.1.2-3.diff.gz
cpufreqd_1.1.2-3.dsc
  to pool/main/c/cpufreqd/cpufreqd_1.1.2-3.dsc
cpufreqd_1.1.2-3_i386.deb
  to pool/main/c/cpufreqd/cpufreqd_1.1.2-3_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 255855@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mattia Dongili (ma.d.) <dongili@supereva.it> (supplier of updated cpufreqd package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 26 Jul 2004 21:08:37 +0200
Source: cpufreqd
Binary: cpufreqd
Architecture: source i386
Version: 1.1.2-3
Distribution: unstable
Urgency: low
Maintainer: Mattia Dongili (ma.d.) <dongili@supereva.it>
Changed-By: Mattia Dongili (ma.d.) <dongili@supereva.it>
Description: 
 cpufreqd   - A speedstep applet clone
Closes: 255855 258767
Changes: 
 cpufreqd (1.1.2-3) unstable; urgency=low
 .
   * Added Japanese debconf translation (closes: #258767)
   * Fixed a race condition due to unwise sed usage (closes: #255855)
Files: 
 175b81287d7c4c671b02921ca157a139 598 admin optional cpufreqd_1.1.2-3.dsc
 fc3d36ffd887c66b1539f27e5826ff76 13169 admin optional cpufreqd_1.1.2-3.diff.gz
 d87237bba01e916eda8eff72b9fae8f6 32882 admin optional cpufreqd_1.1.2-3_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBFR5x0U6FJtxHyhYRAlmkAJ0R07BL9gQa5KqiBBnP+1Gx8YWtHQCeOVXL
L3mBxxlPuFOTGlIpzMIsVdQ=
=UDAT
-----END PGP SIGNATURE-----




Bug unarchived. Request was from Stefano Zacchiroli <zack@debian.org> to control@bugs.debian.org. (Sun, 10 Apr 2011 08:43:15 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 09 May 2011 07:43:50 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Oct 11 12:05:40 2017; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.