On 31/01/14 21:54, Nicolas Boulenguez wrote:
> No bug with a locally recompiled package.
> 
> # aptitude purge thermald
> # aptitude install thermald # 1.1~rc2-4
> ... thermald process uses 100% cpu
> # aptitude purge thermald
> # apt-get source thermald # 1.1~rc2-4
> # pdebuild
> # dpkg -i $localpackage
> ... no bug
> # debdiff $officialpackage $localpackage
> File lists identical (after any substitutions)
> No differences were encountered between the control files
> 
> 
> Just in case, a debug log *without* the bug is attached. I produced it
> by recompiling the package with "DEB_BUILD_OPTIONS=noopt pdebuild" and
> modifying the start command in the init script.
> # start-stop-daemon --start --quiet --oknodo \
>   --background --no-close \
>   --exec /usr/sbin/thermald -- \
>   --no-daemon --loglevel=debug > /tmp/debug.log 2>&1
> 
> Any idea to produce debug output right after installation of the
> official package?
> 

Probably the easiest way is to attach gdb to the daemon and see where it
is spinning in a loop, e.g. get the pid and attach gdb as follows:

$ pidof thermald
2055

$ su -c "gdb -ex 'attach 2055' -ex 'where'"

..where 2055 is the pid of thermad


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to