[Reportbug-maint] Bug#564112: Checking status of source packages with many binaries takes ~forever

Ben Hutchings ben at decadent.org.uk
Thu Jan 7 19:05:24 UTC 2010


Package: reportbug
Version: 4.9
Severity: important

$ reportbug linux-2.6
*** Welcome to reportbug.  Use ? for help at prompts. ***
Detected character set: UTF-8
Please change your locale if this is incorrect.

Using 'Ben Hutchings <ben at decadent.org.uk>' as your from address.
Getting status for linux-2.6...
[nothing happens for a minute or so]
^C

$ strace -t -f -e execve reportbug linux-2.6
8715  18:36:51 execve("/usr/bin/reportbug", ["reportbug", "linux-2.6"], [/* 43 vars */]) = 0
8716  18:36:52 execve("/bin/sh", ["sh", "-c", "gconftool-2 -g /desktop/gnome/ur"...], [/* 43 vars */]) = 0
8717  18:36:52 execve("/usr/bin/gconftool-2", ["gconftool-2", "-g", "/desktop/gnome/url-handlers/http"...], [/* 43 
vars */]) = 0
8716  18:36:52 --- SIGCHLD (Child exited) @ 0 (0) ---
8715  18:36:52 --- SIGCHLD (Child exited) @ 0 (0) ---
8718  18:36:52 execve("/bin/sh", ["sh", "-c", "{ stty size; } 2>&1"], [/* 45 vars */]) = 0
8719  18:36:52 execve("/bin/stty", ["stty", "size"], [/* 45 vars */]) = 0
8718  18:36:52 --- SIGCHLD (Child exited) @ 0 (0) ---
8715  18:36:52 --- SIGCHLD (Child exited) @ 0 (0) ---
*** Welcome to reportbug.  Use ? for help at prompts. ***
Detected character set: UTF-8
Please change your locale if this is incorrect.

Using 'Ben Hutchings <ben at decadent.org.uk>' as your from address.
Getting status for linux-2.6...
8720  18:36:52 execve("/bin/sh", ["sh", "-c", "{ COLUMNS=79 dpkg --status  'lin"...], [/* 46 vars */]) = 0
8721  18:36:52 execve("/usr/bin/dpkg", ["dpkg", "--status", "linux-2.6"], [/* 46 vars */]) = 0
8721  18:36:52 execve("/home/womble/bin/dpkg-query", ["dpkg-query", "--status", "--", "linux-2.6"], [/* 46 vars */]
) = -1 ENOENT (No such file or directory)
8721  18:36:52 execve("/home/womble/bin/dpkg-query", ["dpkg-query", "--status", "--", "linux-2.6"], [/* 46 vars */]
) = -1 ENOENT (No such file or directory)
8721  18:36:52 execve("/usr/local/bin/dpkg-query", ["dpkg-query", "--status", "--", "linux-2.6"], [/* 46 vars */]) 
= -1 ENOENT (No such file or directory)
8721  18:36:52 execve("/usr/bin/dpkg-query", ["dpkg-query", "--status", "--", "linux-2.6"], [/* 46 vars */]) = 0
8720  18:36:53 --- SIGCHLD (Child exited) @ 0 (0) ---
8715  18:36:53 --- SIGCHLD (Child exited) @ 0 (0) ---
8722  18:36:53 execve("/bin/sh", ["sh", "-c", "{ apt-cache showsrc 'linux-2.6';"...], [/* 46 vars */]) = 0
8723  18:36:53 execve("/usr/bin/apt-cache", ["apt-cache", "showsrc", "linux-2.6"], [/* 46 vars */]) = 0
8722  18:36:53 --- SIGCHLD (Child exited) @ 0 (0) ---
8715  18:36:53 --- SIGCHLD (Child exited) @ 0 (0) ---
8724  18:36:53 execve("/bin/sh", ["sh", "-c", "{ apt-cache show 'linux-source-2"...], [/* 46 vars */]) = 0
8725  18:36:53 execve("/usr/bin/apt-cache", ["apt-cache", "show", "linux-source-2.6.26"], [/* 46 vars */]) = 0
8724  18:36:56 --- SIGCHLD (Child exited) @ 0 (0) ---
8715  18:36:56 --- SIGCHLD (Child exited) @ 0 (0) ---
8737  18:36:56 execve("/bin/sh", ["sh", "-c", "{ apt-cache show 'linux-doc-2.6."...], [/* 46 vars */]) = 0
8738  18:36:56 execve("/usr/bin/apt-cache", ["apt-cache", "show", "linux-doc-2.6.26"], [/* 46 vars */]) = 0
8737  18:36:59 --- SIGCHLD (Child exited) @ 0 (0) ---
8715  18:36:59 --- SIGCHLD (Child exited) @ 0 (0) ---
[...]
9696  18:57:09 execve("/bin/sh", ["sh", "-c", "{ apt-cache show 'linux-image-2."...], [/* 46 vars */]) = 0
9697  18:57:09 execve("/usr/bin/apt-cache", ["apt-cache", "show", "linux-image-2.6.32-trunk-orion5x"], [/* 46 vars 
*/]) = 0
9696  18:57:12 --- SIGCHLD (Child exited) @ 0 (0) ---
8715  18:57:12 --- SIGCHLD (Child exited) @ 0 (0) ---
9698  18:57:12 execve("/bin/sh", ["sh", "-c", "{ apt-cache show ''; } 2>&1"], [/* 46 vars */]) = 0
9699  18:57:12 execve("/usr/bin/apt-cache", ["apt-cache", "show", ""], [/* 46 vars */]) = 0
9698  18:57:16 --- SIGCHLD (Child exited) @ 0 (0) ---
8715  18:57:16 --- SIGCHLD (Child exited) @ 0 (0) ---
Which of the following packages is the bug in?
Just press ENTER to exit reportbug.
[...]

This can probably be fixed by passing multiple package names to
apt-cache once.  You should probably filter out those empty package
names too.

Ben.

-- Package-specific info:
** Environment settings:
EDITOR="/home/womble/bin/editor"
VISUAL="/home/womble/bin/editor"
EMAIL="ben at decadent.org.uk"
INTERFACE="text"

** /home/womble/.reportbugrc:
reportbug_version "3.48"
mode expert
ui text
realname "Ben Hutchings"
email "ben at decadent.org.uk"
no-query-bts

-- System Information:
Debian Release: squeeze/sid
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages reportbug depends on:
ii  apt                           0.7.25     Advanced front-end for dpkg
ii  python                        2.5.4-5    An interactive high-level object-o
ii  python-reportbug              4.9        Python modules for interacting wit

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  debconf-utils                 <none>     (no description available)
ii  debsums                       2.0.48     tool for verification of installed
ii  dlocate                       1.02       fast alternative to dpkg -L and dp
ii  exim4                         4.71-2     metapackage to ease Exim MTA (v4) 
ii  exim4-daemon-light [mail-tran 4.71-2     lightweight Exim MTA (v4) daemon
ii  file                          5.03-5     Determines file type using "magic"
ii  gnupg                         1.4.10-2   GNU privacy guard - a free PGP rep
ii  python-gtk2                   2.16.0-1   Python bindings for the GTK+ widge
pn  python-gtkspell               <none>     (no description available)
pn  python-urwid                  <none>     (no description available)
pn  python-vte                    <none>     (no description available)
pn  xdg-utils                     <none>     (no description available)

-- no debconf information





More information about the Reportbug-maint mailing list