On Thu, Sep 15, 2011 at 10:31:06PM +0200, Marc Haber wrote:
On one of my systems, aptitude dist-upgrade -d (which is the operation
used by cron-apt) runs around in circles. The attachment contains a
session of reproducing this under gdb with a couple of backtraces. I
hope this helps.
Here is the promised attachment.
Greetings
Marc
--
-
Marc Haber | I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things.Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190
[54/213]root@scys90295:/root$ gdb --args /usr/bin/aptitude dist-upgrade -d
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type show copying
and show warranty for details.
This GDB was configured as x86_64-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/bin/aptitude...Reading symbols from
/usr/lib/debug/usr/bin/aptitude-curses...done.
(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/bin/aptitude dist-upgrade -d
[Thread debugging using libthread_db enabled]
[New Thread 0x728a5700 (LWP 19128)]
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
[Thread 0x728a5700 (LWP 19128) exited]
[New Thread 0x728a5700 (LWP 19130)]
[Thread 0x728a5700 (LWP 19130) exited]
Program exited normally.
(gdb) r
Starting program: /usr/bin/aptitude dist-upgrade -d
[Thread debugging using libthread_db enabled]
[New Thread 0x728a5700 (LWP 19132)]
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
[Thread 0x728a5700 (LWP 19132) exited]
[New Thread 0x728a5700 (LWP 19133)]
[Thread 0x728a5700 (LWP 19133) exited]
Program exited normally.
(gdb) r
Starting program: /usr/bin/aptitude dist-upgrade -d
[Thread debugging using libthread_db enabled]
[New Thread 0x728a5700 (LWP 19135)]
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
[Thread 0x728a5700 (LWP 19135) exited]
[New Thread 0x728a5700 (LWP 19136)]
[Thread 0x728a5700 (LWP 19136) exited]
Program exited normally.
(gdb) r
Starting program: /usr/bin/aptitude dist-upgrade -d
[Thread debugging using libthread_db enabled]
[New Thread 0x728a5700 (LWP 19138)]
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
[Thread 0x728a5700 (LWP 19138) exited]
[New Thread 0x728a5700 (LWP 19139)]
[Thread 0x728a5700 (LWP 19139) exited]
Program exited normally.
(gdb) r
Starting program: /usr/bin/aptitude dist-upgrade -d
[Thread debugging using libthread_db enabled]
[New Thread 0x728a5700 (LWP 19141)]
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
^C
Program received signal SIGINT, Interrupt.
0x77ba32ce in pkgDPkgPM::OpenLog() () from /usr/lib/libapt-pkg.so.4.10
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) n
Program not restarted.
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) n
Program not restarted.
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x77b26bb6 in pkgCache::SingleArchFindPkg(std::string const) ()
from /usr/lib/libapt-pkg.so.4.10
(gdb) bt
#0 0x77b26bb6 in pkgCache::SingleArchFindPkg(std::string const) ()
from /usr/lib/libapt-pkg.so.4.10
#1 0x77b28787 in pkgCache::FindPkg(std::string const, std::string
const) () from /usr/lib/libapt-pkg.so.4.10
#2 0x77b305d2 in pkgDepCache::writeStateFile(OpProgress*, bool) ()
from /usr/lib/libapt-pkg.so.4.10
#3 0x77ba6b3e in pkgDPkgPM::Go(int) ()
from /usr/lib/libapt-pkg.so.4.10
#4 0x77b3f4f5 in pkgPackageManager::DoInstallPostFork(int) ()
from /usr/lib/libapt-pkg.so.4.10
#5 0x0058adcc in download_install_manager::run_dpkg (
this=0x7fffd6f0, status_fd=-1)
at ../../../../src/generic/apt/download_install_manager.cc:161
#6 0x004fce17 in sigc::slot1pkgPackageManager::OrderResult,
int::operator() (f=DWARF-2 expression