Bug#641756: aptitude dist-upgrade -d runs around in circles

2011-09-15 Thread Marc Haber
Subject: aptitude dist-upgrade -d runs around in circles
Package: aptitude
Version: 0.6.3-3.2
Severity: normal

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.

Greetings
Marc


-- Package-specific info:
aptitude 0.6.3 compiled at Oct 16 2010 18:18:04
Compiler: g++ 4.4.5
Compiled against:
  apt version 4.10.1
  NCurses version 5.7
  libsigc++ version: 2.2.4.2
  Ept support enabled.
  Gtk+ support disabled.

Current library versions:
  NCurses version: ncurses 5.7.20100313
  cwidget version: 0.5.16
  Apt version: 4.10.1
linux-vdso.so.1 =  (0x7fff6da56000)
libapt-pkg.so.4.10 = /usr/lib/libapt-pkg.so.4.10 (0x7fd6e413)
libncursesw.so.5 = /lib/libncursesw.so.5 (0x7fd6e3edd000)
libsigc-2.0.so.0 = /usr/lib/libsigc-2.0.so.0 (0x7fd6e3cd7000)
libcwidget.so.3 = /usr/lib/libcwidget.so.3 (0x7fd6e3a0b000)
libept.so.1 = /usr/lib/libept.so.1 (0x7fd6e37b7000)
libxapian.so.22 = /usr/lib/libxapian.so.22 (0x7fd6e33d6000)
libz.so.1 = /usr/lib/libz.so.1 (0x7fd6e31bf000)
libsqlite3.so.0 = /usr/lib/libsqlite3.so.0 (0x7fd6e2f28000)
libboost_iostreams.so.1.42.0 = /usr/lib/libboost_iostreams.so.1.42.0 
(0x7fd6e2d0c000)
libpthread.so.0 = /lib/libpthread.so.0 (0x7fd6e2af)
libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x7fd6e27dc000)
libm.so.6 = /lib/libm.so.6 (0x7fd6e2559000)
libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x7fd6e2343000)
libc.so.6 = /lib/libc.so.6 (0x7fd6e1fe2000)
libutil.so.1 = /lib/libutil.so.1 (0x7fd6e1dde000)
libdl.so.2 = /lib/libdl.so.2 (0x7fd6e1bda000)
libuuid.so.1 = /lib/libuuid.so.1 (0x7fd6e19d5000)
libbz2.so.1.0 = /lib/libbz2.so.1.0 (0x7fd6e17c5000)
librt.so.1 = /lib/librt.so.1 (0x7fd6e15bd000)
/lib64/ld-linux-x86-64.so.2 (0x7fd6e443b000)
Terminal: xterm
$DISPLAY not set.
`which aptitude`: /usr/bin/aptitude
aptitude version information:

aptitude linkage:

-- System Information:
Debian Release: 6.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39.1-zgsrv20080 (SMP w/1 CPU core; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages aptitude depends on:
ii  apt [libapt-pkg4.10]   0.8.10.3+squeeze1 Advanced front-end for dpkg
ii  libboost-iostreams1.42 1.42.0-4  Boost.Iostreams Library
ii  libc6  2.11.2-10 Embedded GNU C Library: Shared lib
ii  libcwidget30.5.16-3  high-level terminal interface libr
ii  libept11.0.4 High-level library for managing De
ii  libgcc11:4.4.5-8 GCC support library
ii  libncursesw5   5.7+20100313-5shared libraries for terminal hand
ii  libsigc++-2.0-0c2a 2.2.4.2-1 type-safe Signal Framework for C++
ii  libsqlite3-0   3.7.3-1   SQLite 3 shared library
ii  libstdc++6 4.4.5-8   The GNU Standard C++ Library v3
ii  libxapian221.2.3-2   Search engine library
ii  zlib1g 1:1.2.3.4.dfsg-3  compression library - runtime

Versions of packages aptitude recommends:
pn  apt-xapian-index  none (no description available)
pn  aptitude-doc-en | aptitude-do none (no description available)
pn  libparse-debianchangelog-perl none (no description available)
ii  sensible-utils0.0.4  Utilities for sensible alternative

Versions of packages aptitude suggests:
pn  debtags   none (no description available)
pn  tasksel   none (no description available)

-- Configuration Files:
/etc/logrotate.d/aptitude changed:
/var/log/aptitude {
  rotate 999
  monthly
  compress
  missingok
  notifempty
}


-- no debconf information


-- 
-
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



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



Bug#641756: aptitude dist-upgrade -d runs around in circles

2011-09-15 Thread Marc Haber
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