'apropos' maxes out CPU when run with '/bin/*' as argument
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
man-db (Ubuntu) |
Fix Released
|
Medium
|
Colin Watson |
Bug Description
When 'apropos' is executed with an argument containing a list of files in a directory (e.g., '/bin/*'), it maxes out the CPU for a good long while (~40 seconds for /bin/*, about 9.5 minutes for /usr/bin/[a-z]*).
-------
ben@feynman:~$ apropos ~/bin/* & sleep 2; top -b -p $! -d 1 -n 3
[2] 9671
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
9671 ben 20 0 7080 2224 928 R 100 0.2 0:02.46 apropos
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
9671 ben 20 0 7012 2160 928 R 101 0.2 0:03.45 apropos
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
9671 ben 20 0 7012 2164 928 R 100 0.2 0:04.44 apropos
-------
ben@feynman:~$ dpkg -S /usr/bin/apropos
man-db: /usr/bin/apropos
ben@feynman:~$ lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10
ben@feynman:~$ apt-cache policy man-db
man-db:
Installed: 2.6.0.2-2
Candidate: 2.6.0.2-2
Version table:
*** 2.6.0.2-2 0
500 http://
100 /var/lib/
Related branches
affects: | ubuntu → man-db (Ubuntu) |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/927028/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]